Class Blackboard
- Namespace
- Aarthificial.Typewriter.Blackboards
- Assembly
- Aarthificial.Typewriter.dll
[Serializable]
public class Blackboard : ISerializationCallbackReceiver, IBlackboard, IEnumerable<Blackboard.Pair>, IEnumerable
- Inheritance
-
Blackboard
- Implements
- Inherited Members
Methods
Add(int, int)
public void Add(int key, int value)
Parameters
Clear()
public void Clear()
Clone()
Create new blackboard containing the same facts as this instance.
public IBlackboard Clone()
Returns
- IBlackboard
Newly created blackboard instance.
CloneWith(IBlackboard)
Create new blackboard with facts from both this instance and another. blackboard.
public IBlackboard CloneWith(IBlackboard other)
Parameters
other
IBlackboardSource of additional facts
Returns
- IBlackboard
Newly created blackboard instance.
Get(int)
public int Get(int key)
Parameters
key
int
Returns
GetBool(int)
public bool GetBool(int key)
Parameters
key
int
Returns
GetEnumerator()
public IEnumerator<Blackboard.Pair> GetEnumerator()
Returns
GetFloat(int)
public float GetFloat(int key)
Parameters
key
int
Returns
MergeWith(IBlackboard)
Add facts from another blackboard to this instance.
public void MergeWith(IBlackboard other)
Parameters
other
IBlackboardSource of additional facts.
Modify(BlackboardModification)
public void Modify(BlackboardModification modification)
Parameters
modification
BlackboardModification
OnAfterDeserialize()
Implement this method to receive a callback after Unity deserializes your object.
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this method to receive a callback before Unity serializes your object.
public void OnBeforeSerialize()
ReplaceWith(IBlackboard)
Replace contents of this instance with facts from another blackboard.
public void ReplaceWith(IBlackboard other)
Parameters
other
IBlackboardSource of new facts.
Set(int, bool)
public void Set(int key, bool value)
Parameters
Set(int, int)
public void Set(int key, int value)
Parameters
Set(int, float)
public void Set(int key, float value)
Parameters
Test(BlackboardCriterion)
public bool Test(BlackboardCriterion criterion)
Parameters
criterion
BlackboardCriterion