Module Service
Description
Initialises the scene for the tool by loading and setting up a series of services and collecting data for repositories. This acts as a central hub which also allows for dependency injection for the system.
Interface
Type |
---|
IModuleService |
Inherits
Type |
---|
IMonoBehaviour |
Properties
Name | Type |
---|---|
settings | IModuleSettings |
timeService | ITimeService |
locateService | ILocateService |
populationRegionOrchestrator | IPopulationRegionOrchestrator |
workOrchestrator | IOrchestratorService<IAgentService> |
needOrchestrator | IOrchestratorService<IAgentService> |
characterSpawner | ICharacterSpawner |
spawnService | ISpawnService |
characterPoolService | ICharacterPoolService |
objectRepositoryServiceItem | IObjectRepositoryService<Item> |
objectRepositoryServiceAgent | IObjectRepositoryService<IAgentService> |
objectRepositoryServiceRegion | IObjectRepositoryService<IRegionService> |
actionService | IActionService |
lookingService | ILookingService |
iteratorFactory | IIteratorFactory |
requirementService | IRequirementService |
nodeGroupRepositories | Dictionary<BehaviourType, IBehaviourTreeRepository> |
Public Methods
Name | Parameters | Return Type | Description |
---|---|---|---|
Awake | N/A | void | Used to trigger the setup of the scene. |
Setup | N/A | boolean | Setup and load all services and data needed for the current scene. |
GetTimeService | N/A | ITimeService | Returns the timeService. |
GetIteratorFactory | N/A | IIteratorFactory | Returns the iteratorFactory. |
GetRequirementService | N/A | IRequirementService | Returns the requirementService. |
GetCharacterPoolService | N/A | ICharacterPoolService | Returns the characterPoolService. |
GetObjectRepositoryService | ObjectRepositoryType type | IObjectRepositoryService<T> | Returns the one of the IObjectRepositoryService. |