Class EnvironmentAPIConfigAssetBase
Provides a base class for configuring and creating environment API instances within a Unity project.
Inheritance
Inherited Members
Namespace: Fwt.HexTerrains.Data
Assembly: fwt.hexterrains.dll
Syntax
public abstract class EnvironmentAPIConfigAssetBase : ScriptableObject
Remarks
This abstract class is intended to be inherited by assets that define configuration and instantiation logic for environment-related APIs. It enables integration with Unity's ScriptableObject system for asset-based configuration.
Methods
CreateAPI(EntityManager, Entity)
Creates and initializes a new instance of an environment API for the specified entity context.
Declaration
public virtual IEnvironmentAPI CreateAPI(EntityManager entityManager, Entity apiEntity)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityManager | entityManager | The entity manager used to access and manage entities within the environment. |
| Entity | apiEntity | The entity for which the environment API will be created. |
Returns
| Type | Description |
|---|---|
| IEnvironmentAPI | An initialized IEnvironmentAPI instance associated with the specified entity. |
GetUISystemAPI(EntityManager)
Gets an instance of the UI system API associated with the specified entity manager.
Declaration
public abstract IUISystemAPI GetUISystemAPI(EntityManager entityManager)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityManager | entityManager | The entity manager for which to retrieve the UI system API. Cannot be null. |
Returns
| Type | Description |
|---|---|
| IUISystemAPI | An object that provides access to UI system functionality for the specified entity manager. |