Vixen
c7401864
csharp
public readonly record struct BlackboardObserverHandle

A registration, so an observer can be taken off again.

Read the guide page for this →

Remarks

Generational, for the reason every handle in this engine is: a decorator that unregisters twice — which is what a double abort looks like — must not take somebody else's registration off with it.

Fields and properties (4)

  • public int Index

    Its slot in the blackboard's observer table.

  • public uint Generation

    Which registration that slot is holding.

  • public static BlackboardObserverHandle Null

    The registration that is not one.

  • public bool IsNull

    Whether this names a registration.

Methods (1)

  • public BlackboardObserverHandle(int Index, uint Generation)

    A registration, so an observer can be taken off again.

Used by (3)

  • BehaviorTreeInstanceVixen.Ai
  • BlackboardVixen.Ai
  • BlackboardTestsVixen.Ai.Tests