Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
The class that add an ability to AI to member the references and values. Required to orientation in the world space.
Public Member Functions | |
bool | Write (object sender, ref AI.Variable variable, bool typeCheck=false) |
Write variable to variable list by name used as source. If variable already existCheck and has the save type, just rewrite the value. In other case return the false and spawn the warning. More... | |
AI.Variable | Read (string key) |
Returns the variable from list by the name as the source. More... | |
bool | Remove (PipelineItem sender, string key) |
Removes variable from AI's entity memory More... | |
bool | Exists (string key) |
Checks existing of the variable with the key in memory. More... | |
bool | CheckTypeEqual (string key, System.Type type) |
Returns true if type of variable equal requested More... | |
IEnumerator< AI.Variable > | GetEnumerator () |
Public Attributes | |
Brain | ai |
Reference to owner of memory. | |
Package Attributes | |
Dictionary< string, AI.Variable > | variables = new Dictionary<string, AI.Variable>() |
Dictionary of variables. | |
bool Doloro.AI.Core.Memory.CheckTypeEqual | ( | string | key, |
System.Type | type | ||
) |
bool Doloro.AI.Core.Memory.Exists | ( | string | key | ) |
Checks existing of the variable with the key in memory.
key | Key to search. |
AI.Variable Doloro.AI.Core.Memory.Read | ( | string | key | ) |
bool Doloro.AI.Core.Memory.Remove | ( | PipelineItem | sender, |
string | key | ||
) |
bool Doloro.AI.Core.Memory.Write | ( | object | sender, |
ref AI.Variable | variable, | ||
bool | typeCheck = false |
||
) |
Write variable to variable list by name used as source. If variable already existCheck and has the save type, just rewrite the value. In other case return the false and spawn the warning.
sender
not integrated withing the core yet. sender | Object that initiated the variable set. Using in tracking systems. |
variable | New variable |
typeCheck | If true then forces check of the variable type and allows override of an exist value only with a value of the same type. |