Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.LogicCoresRoot Class Reference

Detailed Description

Root node that manages logic cores of the AI. Executes child nodes in parallel way.

Inheritance diagram for Doloro.AI.LogicCoresRoot:
Collaboration diagram for Doloro.AI.LogicCoresRoot:

Public Member Functions

override void Init (Brain ai)
 Initializes base parameters. More...
 
override Result Pass (Brain ai)
 Calculation of inherited nodes More...
 
override void End (Brain ai)
 Finalizing entity. More...
 
void ClearSessionData ()
 Remove a temp data about child computing.
 
virtual Result GetCommonResult ()
 Return the common targetBuffer of all item calculation More...
 

Public Attributes

bool breakCalculated = false
 If true then will not add children that already has calculated targetBuffer.
 
float maxFrequencyPerSecondByChild = 30
 What a maximum count of per second calls of every child. Children will called only if average delta will passed.
 
bool recordLogs = false
 If true the will record log of its computing. More...
 
List< PipelineItemitems = new List<PipelineItem>()
 List of actions pipeline
 
int actionInProgress = 0
 

Properties

string Log [get]
 Log generated during last pass. More...
 
bool IsSessionComputed [get]
 Check does every node will be computed as minimum one time during item session.
 
Dictionary< int, bool > ComputeTable [get]
 Return the map of children' computing status. If child will be computed as minimum one time per session then it will be marked as true.
 
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()

override void Doloro.AI.LogicCoresRoot.End ( Brain  ai)
virtual

Finalizing entity.

Parameters
aiParent AI entity.

Reimplemented from Doloro.AI.Action.

◆ GetCommonResult()

virtual Result Doloro.AI.Order.GetCommonResult ( )
virtualinherited

Return the common targetBuffer of all item calculation

Returns

◆ Init()

override void Doloro.AI.LogicCoresRoot.Init ( Brain  ai)
virtual

Initializes base parameters.

Parameters
aiTarget AI.

Reimplemented from Doloro.AI.Action.

◆ Pass()

override Result Doloro.AI.LogicCoresRoot.Pass ( Brain  ai)
virtual

Calculation of inherited nodes

Parameters
aiSource AI entity.
Returns

Implements Doloro.AI.Action.

Member Data Documentation

◆ actionInProgress

int Doloro.AI.Order.actionInProgress = 0
inherited

Todo:
Number of action in progress

◆ recordLogs

bool Doloro.AI.LogicCoresRoot.recordLogs = false

If true the will record log of its computing.

Enable of this feature will lead to garbage leak. Not affects compiled game build.

Property Documentation

◆ Log

string Doloro.AI.LogicCoresRoot.Log
get

Log generated during last pass.

recordLogs must be true.

◆ 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: