Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.Sensors.Instance.DeclareDependentFilteredSensor Class Reference

Detailed Description

Declares new DependentFilteredSensor with Sphere collider via the AISensorsManager.

Inheritance diagram for Doloro.AI.Sensors.Instance.DeclareDependentFilteredSensor:
Collaboration diagram for Doloro.AI.Sensors.Instance.DeclareDependentFilteredSensor:

Public Member Functions

override void Init (Brain ai)
 Checks existence of the AISensorsManager at the AI game object. More...
 
override Result Pass (Brain ai)
 Manages sensor state. More...
 
virtual void End (Brain ai)
 Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail More...
 

Public Attributes

int sourceSensorID = 0
 Id of the sensor that will defined as source of the dependent sensor.
 
int sensorID = 0
 Sensor ID at the AISensorsManager.
 

Protected Attributes

Sensor sensor
 Instantiated sensor.
 
AISensorsManager manager
 Reference to the manager.
 

Properties

PipelineItem self [get, set]
 Reference to node that contains this action.
 
virtual DataManagement.DynamicResources.Version version [get]
 Source version. More...
 
virtual string author [get]
 Source author.
 

Member Function Documentation

◆ End()

virtual void Doloro.AI.Action.End ( Brain  ai)
virtualinherited

Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail

Parameters
aiSource AI entity.

Reimplemented in Doloro.AI.Parallel, and Doloro.AI.LogicCoresRoot.

◆ Init()

override void Doloro.AI.Sensors.Instance.DeclareDependentFilteredSensor.Init ( Brain  ai)
virtual

Checks existence of the AISensorsManager at the AI game object.

Parameters
ai

Reimplemented from Doloro.AI.Action.

◆ Pass()

override Result Doloro.AI.Sensors.Instance.DeclareDependentFilteredSensor.Pass ( Brain  ai)
virtual

Manages sensor state.

Parameters
aiSource AI instance.
Returns
Returns Result.Fail in case if source sensor with sourceSensorID not found among registered, or in case if the sensor by DeclareFilteredSphereSensor.sensorID is not the DependentFilteredSensor. Otherwise returns Result.Success.

Implements Doloro.AI.Action.

Property Documentation

◆ version

virtual DataManagement.DynamicResources.Version Doloro.AI.Action.version
getinherited
Initial value:
=
DataManagement.DynamicResources.Version._100

Source version.

Should be a constant value that defines what a version of relevant source is. Could be use for patching of the data according with version changes.


The documentation for this class was generated from the following file: