Vixen
c7401864
csharp
public enum BlackboardValueType

What a blackboard key holds. Six kinds, and the list is closed.

Read the guide page for this →

Remarks

Closing it is what makes the rest of the design possible. A key is twelve bytes at worst, a comparison is a switch rather than a virtual call, and an inspector can draw every key there is with no extension point — which is what lets the editor's key list be a table rather than a plugin surface.

Everything a game wants is one of these. A "class" or a state name is a Symbol, a rotation is three floats or an entity to look at, an object reference is an Entity, and a count is an Int. The type that is missing — an arbitrary object — is missing deliberately: a key holding a reference is a key that cannot be compared, serialised, replicated or drawn, and it is the escape hatch that turns a compiled table back into a dictionary.

Fields and properties (6)

  • Bool

    One bit of state, stored as a byte.

  • Int

    A 32-bit signed integer: a count, an ammo total, a phase number.

  • Float

    A 32-bit float: a distance, a timer, a score.

  • Vector3

    A position or a direction in world space.

  • Entity

    An entity: the target, the leader, the thing being carried.

  • Symbol

    An interned name: a state, a stance, a tag the game means something by.

Used by (55, showing 40)

  • AgentTargetVixen.Ai.Nodes
  • AiSchedulingTestsVixen.Ai.Tests
  • AiSnapshotTestsVixen.Ai.Tests
  • AiSnapshotsVixen.Ai
  • AiSystemTestsVixen.Ai.Tests
  • AiSystemTreeTestsVixen.Ai.Tests
  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorKeyContentVixen.Ai
  • BehaviorTreeAbortOrderingTestsVixen.Ai.Tests
  • BehaviorTreeAbortTestsVixen.Ai.Tests
  • BehaviorTreeCompilerTestsVixen.Ai.Tests
  • BehaviorTreeCompositeTestsVixen.Ai.Tests
  • BehaviorTreeCostTestsVixen.Ai.Tests
  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BehaviorTreeDeterminismTestsVixen.Ai.Tests
  • BehaviorTreeServiceTestsVixen.Ai.Tests
  • BehaviorTreeTaskTestsVixen.Ai.Tests
  • BindingTestsVixen.Ai.Perception.Tests
  • BlackboardVixen.Ai
  • BlackboardDecoratorVixen.Ai
  • BlackboardKeyDefinitionVixen.Ai
  • BlackboardLayoutBuilderVixen.Ai
  • BlackboardLayoutTestsVixen.Ai.Tests
  • BlackboardTestsVixen.Ai.Tests
  • BlackboardUtilityInputVixen.Ai
  • BlackboardWorldSourceVixen.Ai
  • BoardVixen.Ai.Nodes.Tests
  • BuildStateVixen.Ai
  • CompareEntriesDecoratorVixen.Ai
  • CountingSensorVixen.Ai.Tests
  • DistanceUtilityInputVixen.Ai
  • GoapDomainTestsVixen.Ai.Tests
  • HarnessVixen.Ai.Tests
  • OverlayFixtureVixen.Ai.Diagnostics.Tests
  • PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
  • PerceivedCountSensorVixen.Ai.Perception
  • PerceptionNodeTestsVixen.Ai.Perception.Tests
  • RunQueryNodeTestsVixen.Ai.Nodes.Tests
  • SeamTestsVixen.Ai.Nodes.Tests
  • SetBlackboardValueTaskVixen.Ai