Components
This page presents functionalities provided by Grail plugin’s components.
AI Manager Component
This component holds ownership of one instance of AIManager
component.
The user should make sure that at least one AIManagerComponent
is present on each scene in which they desire to place Grail controlled agents.
The default implementation of AIManagerComponent updates registered entities and their reasoners every frame. If the user requirements are different, they should inherit from AIManagerComponent and provide a different logic.
|
AI Entity Component
This component holds ownership of one instance of AIEntity
.
Every object that should be able to make decisions requires this component.
The user can define which entity from a given GrailConfigurationLoader
associated with a desired config file will be constructed in each instance of this component.
Additionally, it is possible for the created entity to be registered on scene startup.
Entity Group Component
This component holds ownership of one instance of groups of AIEntities
.
User should use this whenever object they want to use should be controlled by more than one "mind".
A user can define which group from given GrailConfigurationLoader
associated with desired config file will be constructed in each instance of this component.
Additionally, it is possible to order group to be registered on scene startup.
Blackboard Data Provider
Component which allows user to provide entity’s internal blackboard with custom data right when it’s ready to be used.
Should be attached to the object with AIEntityComponent
or EntityGroupComponent
.