Table of Contents

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

key int
value int

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 IBlackboard

Source of additional facts

Returns

IBlackboard

Newly created blackboard instance.

Get(int)

public int Get(int key)

Parameters

key int

Returns

int

GetBool(int)

public bool GetBool(int key)

Parameters

key int

Returns

bool

GetEnumerator()

public IEnumerator<Blackboard.Pair> GetEnumerator()

Returns

IEnumerator<Blackboard.Pair>

GetFloat(int)

public float GetFloat(int key)

Parameters

key int

Returns

float

MergeWith(IBlackboard)

Add facts from another blackboard to this instance.

public void MergeWith(IBlackboard other)

Parameters

other IBlackboard

Source 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 IBlackboard

Source of new facts.

Set(int, bool)

public void Set(int key, bool value)

Parameters

key int
value bool

Set(int, int)

public void Set(int key, int value)

Parameters

key int
value int

Set(int, float)

public void Set(int key, float value)

Parameters

key int
value float

Test(BlackboardCriterion)

public bool Test(BlackboardCriterion criterion)

Parameters

criterion BlackboardCriterion

Returns

bool