# OASIS API Contracts

## Overview

The OASIS API Contracts project contains shared interfaces, enums, and contracts that can be referenced by both OASIS.API.Core and Unity projects. This ensures a single source of truth for all OASIS contracts.

## Features

* **Unity Compatible**: Built with .NET Standard 2.1 for Unity compatibility
* **Single Source of Truth**: All interfaces defined once and shared
* **Clean Architecture**: Separates contracts from implementation
* **Cross-Platform**: Can be referenced by .NET 8/9 and Unity projects

## Contents

* **IOASISMapProvider**: Map provider interface for OASIS ecosystem
* **Future Interfaces**: Will contain all OASIS interfaces and enums
* **Shared Contracts**: Common data structures and enums

## Usage

```csharp
// Reference this project from OASIS.API.Core
using NextGenSoftware.OASIS.API.Contracts.Interfaces;

// Reference this project from Unity
using NextGenSoftware.OASIS.API.Contracts.Interfaces;

// Reference this project from Providers
using NextGenSoftware.OASIS.API.Contracts.Interfaces;
```

## Architecture Benefits

* ✅ **Single Source of Truth** for all interfaces
* ✅ **Unity Compatibility** without .NET version conflicts
* ✅ **Clean Separation** of contracts from implementation
* ✅ **Easy Maintenance** - update interface once, affects all projects
* ✅ **SOLID Principles** maintained

## Future Plans

This project will eventually contain:

* All OASIS interfaces (IHolon, IAvatar, etc.)
* All OASIS enums (MapProviderType, etc.)
* All OASIS contracts and data structures
* Shared utility classes

## License

MIT License - See LICENSE file for details


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oasis-web4.gitbook.io/oasis-web4-docs/oasis-architecture/nextgensoftware.oasis.api.contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
