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

Detailed Description

Invokes Debug.Log(object) method with defined message.

Inheritance diagram for Doloro.AI.Primitive.Log:
Collaboration diagram for Doloro.AI.Primitive.Log:

Public Types

enum  LogType { Normal , Warrning , Error }
 defines message type. More...
 
enum  LogLevel { Normal , Deep }
 Defines profiling level. More...
 

Public Member Functions

override Result Pass (Brain ai)
 Send the message if passing profiling options. More...
 
virtual void Init (Brain ai)
 Calling one time when AI initializing. 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

string Message = ""
 Message for debug
 
bool AttachObjectName = true
 If true then attach to debug the name of object that contains AI.
 
LogType logType = LogType.Normal
 Type of message that will be shared to console.
 
LogLevel level = LogLevel.Normal
 Level of logging. More...
 

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 Enumeration Documentation

◆ LogLevel

Defines profiling level.

Enumerator
Normal 

Invokes message every call when debug is enabled.

Deep 

Invokes message only in deep profile mode.

◆ LogType

defines message type.

Enumerator
Normal 

Regular log message.

Warrning 

Warning message.

Error 

Error message.

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()

◆ Pass()

override Result Doloro.AI.Primitive.Log.Pass ( Brain  ai)
virtual

Send the message if passing profiling options.

Parameters
aiSource AI entity.
Returns
Always Result.Success

Implements Doloro.AI.Action.

Member Data Documentation

◆ level

LogLevel Doloro.AI.Primitive.Log.level = LogLevel.Normal

Level of logging.

Normal - will be showed in any mode. Deep - will be showed up only in case if selected deep logging for parent AI.

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: