Class BehaviorKnowledgeSelectorAny
Behavior knowledge value selector that can reference blackboard item, behavior goal or sensor values.
Inheritance
Implements
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
[CustomEditor]
public sealed class BehaviorKnowledgeSelectorAny : ValueType, IComparable, IComparable<BehaviorKnowledgeSelectorAny>
Constructors
BehaviorKnowledgeSelectorAny(BehaviorKnowledgeSelectorAny)
Initializes a new instance of the BehaviorKnowledgeSelectorAny structure.
Declaration
public BehaviorKnowledgeSelectorAny(BehaviorKnowledgeSelectorAny other)
Parameters
BehaviorKnowledgeSelectorAny
other
The other selector. |
BehaviorKnowledgeSelectorAny(String)
Initializes a new instance of the BehaviorKnowledgeSelectorAny structure.
Declaration
public BehaviorKnowledgeSelectorAny(string path)
Parameters
System.String
path
The selector path. |
Fields
Path
Selector path that redirects to the specific knowledge value.
Declaration
public string Path
Field Value
System.String
|
Methods
CompareTo(BehaviorKnowledgeSelectorAny)
Declaration
public int CompareTo(BehaviorKnowledgeSelectorAny other)
Parameters
BehaviorKnowledgeSelectorAny
other
|
Returns
System.Int32
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
|
Returns
System.Int32
|
Get(BehaviorKnowledge)
Gets the selected knowledge value.
Declaration
public object Get(BehaviorKnowledge knowledge)
Parameters
BehaviorKnowledge
knowledge
The knowledge container to access. |
Returns
System.Object
The output value or null (if cannot read it - eg. missing goal or no blackboard entry of that name). |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Set(BehaviorKnowledge, Object)
Sets the selected knowledge value.
Declaration
public bool Set(BehaviorKnowledge knowledge, object value)
Parameters
BehaviorKnowledge
knowledge
The knowledge container to access. |
System.Object
value
The value to set. |
Returns
System.Boolean
True if set value value, otherwise false. |
ToString()
Declaration
public override string ToString()
Returns
System.String
|
TryGet(BehaviorKnowledge, out Object)
Tries to get the selected knowledge value. Returns true if got value, otherwise false.
Declaration
public bool TryGet(BehaviorKnowledge knowledge, out object value)
Parameters
BehaviorKnowledge
knowledge
The knowledge container to access. |
System.Object
value
The output value. |
Returns
System.Boolean
True if got value, otherwise false. |
Operators
Implicit(BehaviorKnowledgeSelectorAny to String)
Implicit cast operator from selector to string.
Declaration
public static implicit operator string (BehaviorKnowledgeSelectorAny value)
Parameters
BehaviorKnowledgeSelectorAny
value
Selector |
Returns
System.String
Path |
Implicit(String to BehaviorKnowledgeSelectorAny)
Implicit cast operator from string to selector.
Declaration
public static implicit operator BehaviorKnowledgeSelectorAny(string value)
Parameters
System.String
value
Path |
Returns
BehaviorKnowledgeSelectorAny
Selector |