Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.Operators.AOperatorActionEditor< T > Class Template Referenceabstract

Detailed Description

Base editor for actions derived from AMathAction<T> .

Template Parameters
TOperating type.
Inheritance diagram for Doloro.AI.Operators.AOperatorActionEditor< T >:
Collaboration diagram for Doloro.AI.Operators.AOperatorActionEditor< T >:

Public Member Functions

override void OnGUI (Action action, Brain ai)
 Draw the custom interface in editor More...
 
override void DebugGUI (Action action, Brain ai)
 Draws the custom interface in debug tab. More...
 

Protected Member Functions

override string[] GetVarKeysToLog (Action action, Brain ai)
 Handler that returns variable keys that should be logged in UI. More...
 
abstract T LayoutField (GUIContent content, T value)
 UI element using to display value. More...
 

Properties

virtual GUIContent[] operators [get]
 Operators displayed in options list. More...
 
bool IsDefaultEditor = false [get]
 Is the editor is not overridden.
 

Member Function Documentation

◆ DebugGUI()

override void Doloro.AI.Operators.AOperatorActionEditor< T >.DebugGUI ( Action  action,
Brain  ai 
)
virtual

Draws the custom interface in debug tab.

Reimplemented from Doloro.AI.ActionEditor.

◆ GetVarKeysToLog()

override string[] Doloro.AI.Operators.AOperatorActionEditor< T >.GetVarKeysToLog ( Action  action,
Brain  ai 
)
protectedvirtual

Handler that returns variable keys that should be logged in UI.

Parameters
actionSource action.
aiSource AI entity.
Returns
Array of variable keys.

Implements Doloro.AI.AVarLogActionEditor.

◆ LayoutField()

abstract T Doloro.AI.Operators.AOperatorActionEditor< T >.LayoutField ( GUIContent  content,
value 
)
protectedpure virtual

UI element using to display value.

Parameters
contentPrefix label content that should be displayed.
valueField's value.
Returns
Value updated with user input.

◆ OnGUI()

override void Doloro.AI.Operators.AOperatorActionEditor< T >.OnGUI ( Action  action,
Brain  ai 
)
virtual

Draw the custom interface in editor

Reimplemented from Doloro.AI.ActionEditor.

Property Documentation

◆ operators

virtual GUIContent [] Doloro.AI.Operators.AOperatorActionEditor< T >.operators
getprotected
Initial value:
= new GUIContent[] {
new GUIContent("+"),
new GUIContent("-"),
new GUIContent("*"),
new GUIContent("\\") }

Operators displayed in options list.


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