Skip to main content
Version: 0.8.5

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

NameType
settingsIModuleSettings
timeServiceITimeService
locateServiceILocateService
populationRegionOrchestratorIPopulationRegionOrchestrator
workOrchestratorIOrchestratorService<IAgentService>
needOrchestratorIOrchestratorService<IAgentService>
characterSpawnerICharacterSpawner
spawnServiceISpawnService
characterPoolServiceICharacterPoolService
objectRepositoryServiceItemIObjectRepositoryService<Item>
objectRepositoryServiceAgentIObjectRepositoryService<IAgentService>
objectRepositoryServiceRegionIObjectRepositoryService<IRegionService>
actionServiceIActionService
lookingServiceILookingService
iteratorFactoryIIteratorFactory
requirementServiceIRequirementService
nodeGroupRepositoriesDictionary<BehaviourType, IBehaviourTreeRepository>

Public Methods

NameParametersReturn TypeDescription
AwakeN/AvoidUsed to trigger the setup of the scene.
SetupN/AbooleanSetup and load all services and data needed for the current scene.
GetTimeServiceN/AITimeServiceReturns the timeService.
GetIteratorFactoryN/AIIteratorFactoryReturns the iteratorFactory.
GetRequirementServiceN/AIRequirementServiceReturns the requirementService.
GetCharacterPoolServiceN/AICharacterPoolServiceReturns the characterPoolService.
GetObjectRepositoryServiceObjectRepositoryType typeIObjectRepositoryService<T>Returns the one of the IObjectRepositoryService.