Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.11.0
Menu

BitQuirky.Behavior.Baked

Public behavior trees and state machines: runtime backend symbols in BitQuirky.Behavior.Baked.

Source snapshot 29003d8b1658.

Assembly: BitQuirky.Behavior.Runtime.Backend

Category: Low-level runtime

C#
class BitQuirky.Behavior.Baked.BakedEntityOccurrenceStateLayout

Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:19-65

Deterministic sizing of the per-agent observed-occurrence state.

Responsibilities:

  • Compute the aligned byte size one Event Condition reserves per agent: an armed flag and the previous observed match state, plus the complete selected identity value when the authored selector is an identity field.

Does NOT:

  • Hash, truncate, or otherwise stand in for the exact identity value.

C#
public const int Alignment = 4

Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:32

The alignment every occurrence-state range and payload is rounded up to.

C#
public const int HeaderByteSize = 8

Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:29

The state header every range carries: the pending observed-occurrence latch, the previous observed match state, the consumed-while-retained disarm latch, the payload-valid flag, and the tick-local live-failure flag. Reserved padding keeps the exact identity payload four-byte aligned.

C#
public static int Align(int byteCount)

Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:35-43

Rounds a byte count up to the occurrence-state alignment.

ComputeByteSize(BakedMemberEntityEventSourceKind sourceKind, BakedMemberEntityEntrySelector selector, BehaviorMemberValueKind identityValueKind)

Section titled “ComputeByteSize(BakedMemberEntityEventSourceKind sourceKind, BakedMemberEntityEntrySelector selector, BehaviorMemberValueKind identityValueKind)”
C#
public static int ComputeByteSize(BitQuirky.Behavior.Baked.BakedMemberEntityEventSourceKind sourceKind, BitQuirky.Behavior.Baked.BakedMemberEntityEntrySelector selector, BitQuirky.Behavior.Member.BehaviorMemberValueKind identityValueKind)

Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:50-62

Computes the exact bake-sized byte count one Event Condition reserves per agent. Enableable and constant-index selectors need no selector payload; an identity-field selector reserves the complete fixed-size identity value, however wide it is.

Source fingerprint: sha256:29003d8b1658b98a79bebcd93e3b4030caf8511268b96817ab764d63df8d6c3b

Full-size image