BitQuirky.Behavior.Baked
Public behavior trees and state machines: runtime backend symbols in BitQuirky.Behavior.Baked.
Source snapshot 29003d8b1658.
On this page
Assembly: BitQuirky.Behavior.Runtime.Backend
BakedEntityOccurrenceStateLayout
Section titled “BakedEntityOccurrenceStateLayout”Category: Low-level runtime
class BitQuirky.Behavior.Baked.BakedEntityOccurrenceStateLayoutSource 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.
Members
Section titled “Members”Alignment
Section titled “Alignment”public const int Alignment = 4Source declaration: Packages/io.bitquirky.behavior/Runtime/Backend/Baked/BakedEntityOccurrenceStateLayout.cs:32
The alignment every occurrence-state range and payload is rounded up to.
HeaderByteSize
Section titled “HeaderByteSize”public const int HeaderByteSize = 8Source 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.
Align(int byteCount)
Section titled “Align(int byteCount)”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)”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