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

BehaviorRuntimeInstance.cs declarations

Public API declaration excerpts from Packages/io.bitquirky.behavior/Runtime/Backend/Execution/BehaviorRuntimeInstance.cs.

Source snapshot 29003d8b1658.

On this page

Original file: Packages/io.bitquirky.behavior/Runtime/Backend/Execution/BehaviorRuntimeInstance.cs

Source file hash: sha256:4cbac8065496a55988d3c97e5628f30a6f39dcf69e745f6e572814d707ef70e6

Only public declaration headers are shown. Implementation bodies, non-public code, and source comments are omitted.

Original lines: 50-775

Declaration hash: sha256:866bd264f12219463b51b0ff2afce644a18ef981072448f0ff20bfbc86caf459

C#
[Serializable]
public struct BehaviorRuntimeInstance : IComponentData
{
}

Original lines: 64

Declaration hash: sha256:b19a19594e782a903fef095cf2ff97eb5d91c0b7b910d7f97c7676d9b0510004

C#
public const int MaxPendingExternals = 4;

Original lines: 75

Declaration hash: sha256:47b174ca75ba1a8a9cf7cd9d0576dd046e437ca368f0c99b2ede382ddc5820ac

C#
public ulong GraphContentHash;

Original lines: 83

Declaration hash: sha256:c0bef69f5e1b82118fcd6fb69aaa5509514757d874fda393562c162922822bae

C#
public int GraphId;

Original lines: 89

Declaration hash: sha256:fd523db60d4c9b0058990e360d41e6100819c98c82204a4cb6e40f2c6b05086a

C#
public int CurrentNodeIndex;

Original lines: 95

Declaration hash: sha256:135674df987c75382c13e11209b35a1a8392be993e097426d892009675536130

C#
public int DeepestExecutedNodeIndex;

Original lines: 100

Declaration hash: sha256:ba60895e535b5b8d68c6a999e6a322be0a79e27001b567c0de2f8541e7466948

C#
public int CurrentStateIndex;

Original lines: 103

Declaration hash: sha256:a26df104ccdd0e175fde8eeaefee6c871d1f3e26b858ab05b34fed426f0fb318

C#
public int SuspensionDepth;

Original lines: 106

Declaration hash: sha256:04d5ad45057be5030d15bf9b8f73039321bc1a2b1a5ad3d816d7c237d40a72db

C#
public int SuspendedActionStateCount;

Original lines: 109

Declaration hash: sha256:ae7dbdeb92f175a10e3f0718cc80c48a13917e9f0d54a43d0107b84b8bf1ce5f

C#
public int ActiveNestedReferenceNodeIndex;

Original lines: 111

Declaration hash: sha256:0e976d8bec39e6c5eb12b522c6d5be459e2f75b8ad47d5777d710fbbdf91e5e4

C#
public int RequiredSuspensionFrameCapacity;

Original lines: 113

Declaration hash: sha256:ef1400ac19825a7b259fbd9df3711b841c7d2417bef087beac0ef8bb3a1ae197

C#
public int RequiredSuspendedActionCapacity;

Original lines: 115

Declaration hash: sha256:ff69596136e1905754371dbf54e92778e2c3c7fb7698d6803cd6dcf3278a0c08

C#
public int ActiveStateMachineReferenceIndex;

Original lines: 118

Declaration hash: sha256:030a447f02ef65780356f3b7a35febf404893c15e397ab50b10e6cfcaf4ed57d

C#
public int ActiveStateMachineCandidateIndex;

Original lines: 121

Declaration hash: sha256:a0f2ec40f622bd60408073fe1d93fe36db6ad2cb7b706bff77f8abf0191e7471

C#
public uint ReferenceActivationGeneration;

Original lines: 124

Declaration hash: sha256:662a67184c9c48387ebf1ca0510b7005e49166b092b362c6fed391ec324406bc

C#
public int ActiveMachineIndex;

Original lines: 127

Declaration hash: sha256:24f0e5e5fce9a0c1f1d4c7abe6a9c577bf0fad04c7c3ed1ddc0e70120f779d69

C#
public BehaviorMachineResult NestedMachineResult;

Original lines: 130

Declaration hash: sha256:8181a2d7248d393205c40c31e10b1752700173496d7bc10c0b2f04aa6c72d076

C#
public BehaviorNestedMachinePhase NestedMachinePhase;

Original lines: 132

Declaration hash: sha256:5c62a55e8315d726163056a8bc5f700241478c3548baa54e3e118199b30a7ee2

C#
public byte ReferenceParked;

Original lines: 135

Declaration hash: sha256:13329dc8bba6b4d480fb5c17456a76c114fe3022d2cbf3a821eb364d62e68fef

C#
public byte MachineFinished;

Original lines: 142

Declaration hash: sha256:32a4fe21b292dffe169bb1b6744213a9cabcaeb7afa88c5c1e726f31512c9fba

C#
public int CompositeChildCursor;

Original lines: 149

Declaration hash: sha256:6082eca2571db2bbec3c85d78112005ed3f36228fbc424467b0c2cc2b01815dc

C#
public int DecoratorIterationsCompleted;

Original lines: 155

Declaration hash: sha256:cbc4a40e89cb212acb9f81c35023ce8f56607abe8db775bc37d41c472a2f61e2

C#
public int ActiveDecoratorNodeIndex;

Original lines: 163

Declaration hash: sha256:3f52e6c9d348daec312602e042d1bd71d55de4669c53494814ec5fe96e0a3c64

C#
public float CurrentNodeElapsedSeconds;

Original lines: 172

Declaration hash: sha256:0a9aaf4aa8d4b828828f3a4f99bc420cda1e8965675a346e4c09d570613ff126

C#
public float StateActiveElapsedSeconds;

Original lines: 177

Declaration hash: sha256:73498e35203adb46fdeff4ca1ebb25d5c7ec3c9d38392ea2f4ec54244615d59e

C#
public uint InitialRandomSeed;

Original lines: 182

Declaration hash: sha256:48d2a7c1ee491ce85a5dd75b52efef3a6908f92f32a4b25d515d7f2c0bd0cfb9

C#
public uint RandomState;

Original lines: 187

Declaration hash: sha256:00ecde9966b10521ab69fca66f3a28f36e9160cab69e0c53fcce8a6b08cdd403

C#
public int ActiveProbabilitySelectorIndex;

Original lines: 195

Declaration hash: sha256:b7087023aff1150af92dc0a68e8649641f264aab193c60c888654f0a864af519

C#
public int LastProbabilitySelectorIndex;

Original lines: 203

Declaration hash: sha256:985e70833cddf7a950b6389fa4477ac8d9baaef1e141d9ae714de6bbdaf564ae

C#
public int SelectedProbabilityChildIndex;

Original lines: 210

Declaration hash: sha256:873701454789e79ae826787a9049a4efe0785ee9086d3ca3739e6212c06ef32e

C#
public ulong ProbabilityCandidateMask;

Original lines: 215

Declaration hash: sha256:839fe3e70c22d7655526211f8063498cabafa2f7852614f4108b7f680c6fc304

C#
public int ActiveUtilitySelectorIndex;

Original lines: 221

Declaration hash: sha256:e718a5fb216b68057f8c8c8b4f627452e84321293428771b2e32e2a2d188b301

C#
public int LastUtilitySelectorIndex;

Original lines: 227

Declaration hash: sha256:78d435a1d8f8d4e96baebcce9dc8edd5762ba37cdea736b0173c8635abcf3280

C#
public int SelectedUtilityBranchIndex;

Original lines: 233

Declaration hash: sha256:ab34b810ef79db27167dc83a8914672892f9e8650950957270656648e681019c

C#
public ulong UtilityCandidateMask;

Original lines: 240

Declaration hash: sha256:b278a9aba26d92f0871a153b5ebe14ee7ea962b76a3fc562bc6add9cadb5cffc

C#
public int LastTransitionId;

Original lines: 242

Declaration hash: sha256:1c7476b6e3358376319005aeaaeb90e2707d3d61d1181be53143b377d07ff737

C#
public int LastTransitionCauseId;

Original lines: 248

Declaration hash: sha256:29294d311f875f6f3acafbceb520a60dbb146bd429377b250bd35746971c20dc

C#
public int LastTransitionFrame;

Original lines: 250

Declaration hash: sha256:e2c75e07e6bf17bf5e498efecccd32a39757012c9b2adf68cf65a440b25d54e3

C#
public int LastEvaluatedTransitionPredicateId;

Field: LastEvaluatedTransitionRightFieldId

Section titled “Field: LastEvaluatedTransitionRightFieldId”

Original lines: 260

Declaration hash: sha256:c0cd161e340d4a824401eea42a0c78aeabf93e471c4940b2d4ba895a482b5372

C#
public int LastEvaluatedTransitionRightFieldId;

Original lines: 262

Declaration hash: sha256:253425861b2d2c8f141873a065bb609d48ba21e3dbae777cb17478e4382fa4cd

C#
public BehaviorResultCode LastResultCode;

Original lines: 268

Declaration hash: sha256:0b5e421c83933a99aa7eb1ae5187bc8e9f16427ea022c0a1227d36a7e628e0ec

C#
public BehaviorMachineResult MachineResult;

Original lines: 270

Declaration hash: sha256:df2c3f5ccf3dbf9b010bf8ac148587860bf09a71a90819321a488381d3e23653

C#
public BehaviorTraceTier TraceTier;

Original lines: 272

Declaration hash: sha256:28bf69d988615b88e7772d15816e154b559e13d422a3881e1d9f50028f5ed7c3

C#
public BakedAuthorityContext AuthorityContextId;

Original lines: 274

Declaration hash: sha256:124cbd92e7dd72ac3382ea03ed3d4ff6967418581dbe7b9d6df4ff93ba8b4408

C#
public byte Reserved0;

Original lines: 279

Declaration hash: sha256:eab8e0596db3dc138083003524a4a87fba87d51774a7517ec7225b1f93569281

C#
public int LastTickedFrame;

Original lines: 282

Declaration hash: sha256:9dd5b01b5a17b11dfb2ccc05c6d1cfa552a1d337fd6d539da11002cccb55cdc9

C#
public BehaviorInterruptionRecord LastInterruption;

Original lines: 291

Declaration hash: sha256:4061e8aa399ea73bf6918d04d4c3a57e4ac6b3b7e4408ca0ada32f685e7a21e6

C#
public BehaviorUtilityTraceEntry LastUtilityTrace;

Original lines: 303

Declaration hash: sha256:6e00c640e8ecadc228ae5f318be6cb524a88cacac6f9bf387d80b95b6926cdff

C#
public byte RepeatRestartedThisFrame;

Original lines: 309

Declaration hash: sha256:182358c01d9404189f9ac979fe85f6ad7aeb193d434408c352854e42ac61ac4a

C#
public int RepeatRestartedThisFrameNumber;

Original lines: 316

Declaration hash: sha256:d26a2b8eeb4f53d409e99b190c288137c830dbb22cc262f5b11d3d22d64e6a88

C#
public int HostStep;

Original lines: 323

Declaration hash: sha256:fb6c8a4945a5b81670dd25c2f6f46ea91fe7a3ec40ba6b85b3b6032a8027fcae

C#
public PendingExternalSlot Pending0;

Original lines: 325

Declaration hash: sha256:5419944796a3b24e83d9ba59dee97973e3698a35096d61abb670094503ef9753

C#
public PendingExternalSlot Pending1;

Original lines: 327

Declaration hash: sha256:31771a89c35a5b6f9c4f506ff480970b8aec92ddbeda9b0dfbbe03e60151d43b

C#
public PendingExternalSlot Pending2;

Original lines: 329

Declaration hash: sha256:ec9ae7f9e791a16aa157df66927d5d3cfbb7d407e00c1903509308141f4fad39

C#
public PendingExternalSlot Pending3;

Original lines: 336

Declaration hash: sha256:99a51a6d48bc837d1fec05cad44a9e887556799c81081a9f255f72071ed2885b

C#
public int NextCommandId;

Original lines: 339

Declaration hash: sha256:e112644c3d5d79c13e13f90430c53ed5df9ac6dc8fc2d8a31bb08feb040bf818

C#
public uint ActionActivationGeneration;

Original lines: 345

Declaration hash: sha256:72dd0b639a85280dd9711872eec81814bc6a033d3e858a04c5f93e729e4a758b

C#
public BehaviorActionLifecycleRuntimeState ActionLifecycle;

Original lines: 355

Declaration hash: sha256:0c35372e8ca5366130fab377b9e5668860dc4e7b36b706d950bb415716f1a6e3

C#
public BehaviorMemberRequestSlot MemberRequest;

Original lines: 361

Declaration hash: sha256:836344fefdf82667a05a083426dc74540192d6f2e658cdd90dafe1bb7f5fa165

C#
public uint MemberActivationGeneration;

Original lines: 371

Declaration hash: sha256:f29854a44aafafd8841533a666845cbb4f73f1a507d06be5758c13d2b1650e68

C#
public int HostedStateIndex;

Original lines: 376

Declaration hash: sha256:7923cfed000f5e59102430a05534fd44e4ff415883bc069dc563737047e8ec0e

C#
public int HostedCompletedCycleCount;

Original lines: 383

Declaration hash: sha256:c176e6144c762e68e2372adb6090906b76911b44ce43d69f07c14378e5b85d4c

C#
public int HostedLastCycleFrame;

Original lines: 390

Declaration hash: sha256:f06994b6a1300c309ed170bb31ba86e2368fefff3191e760331bd12eec81f82c

C#
public int HostedLastCycleStep;

Original lines: 393

Declaration hash: sha256:941fa667f68d7bd7bedcfa4fc9ed3e4befc9534d344a27adbf8a87f054183767

C#
public int HostedResultTick;

Original lines: 399

Declaration hash: sha256:1860105e0275146e4b7eaedb32b240483f3c9d00d3375cb33b4545e96ed0154b

C#
public int HostedResultEventId;

Original lines: 405

Declaration hash: sha256:633071e841e5cc649c5876e0f2076dde3e623fc7685caa6b13895c96b50478db

C#
public BakedHostedBehaviorLifetime HostedLifetime;

Original lines: 408

Declaration hash: sha256:e8465ac7d832c8012eb4ca897a80fdd52e0d844b21758b26dc9b45d23458d4d2

C#
public BehaviorResultCode HostedResultCode;

Original lines: 414

Declaration hash: sha256:96a887c8f5cad943983bd8092c3c7dcb76cea27923f4e62ca598234487f8a0d2

C#
public byte HostedEventPending;

Original lines: 417

Declaration hash: sha256:f988cd1bf838245bf0e921139855b781328a3aa45b38c61a77f35fec204d24a9

C#
public byte HostedReserved0;

Method: ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, BehaviorTraceTier tier)

Section titled “Method: ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, BehaviorTraceTier tier)”

Original lines: 429-439

Declaration hash: sha256:07ee7b912cb0c0e3ee611054302d3d97a619c3be112ee083e7f232b10797a7a1

C#
public static BehaviorRuntimeInstance ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, BehaviorTraceTier tier = BehaviorTraceTier.AlwaysOn);

Method: ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, uint randomSeed, BehaviorTraceTier tier)

Section titled “Method: ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, uint randomSeed, BehaviorTraceTier tier)”

Original lines: 445-459

Declaration hash: sha256:c8b76c4b03e5b6d35248c1feaa6b10ca133913e7aeff93fa02129b5f269ef3dc

C#
public static BehaviorRuntimeInstance ForArtifact(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, uint randomSeed, BehaviorTraceTier tier = BehaviorTraceTier.AlwaysOn);

Method: ForReplacement(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, in BehaviorRuntimeInstance previous, uint randomSeed)

Section titled “Method: ForReplacement(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, in BehaviorRuntimeInstance previous, uint randomSeed)”

Original lines: 466-488

Declaration hash: sha256:6c0c813bb2cf587d2440f44432e3d031ea0306906532cc43689812849c3f84ea

C#
public static BehaviorRuntimeInstance ForReplacement(BakedBehaviorArtifact artifact, int graphId, BakedAuthorityContext authority, in BehaviorRuntimeInstance previous, uint randomSeed = 0U);

Original lines: 576-586

Declaration hash: sha256:f9dbf16871f20e651d6d849e26716e62b31d6b0490f44d68813e21801b0fd55a

C#
public PendingExternalSlot GetPending(int slotIndex);

Method: SetPending(int slotIndex, PendingExternalSlot value)

Section titled “Method: SetPending(int slotIndex, PendingExternalSlot value)”

Original lines: 591-600

Declaration hash: sha256:ceb681e6791b292fe22722ebab3a0de15a40f727ab60d26a4a098d7b5d7f8791

C#
public void SetPending(int slotIndex, PendingExternalSlot value);

Method: TryReservePendingSlot(int serviceId, int commandId, int pendingId, int frame, int owningNodeIndex)

Section titled “Method: TryReservePendingSlot(int serviceId, int commandId, int pendingId, int frame, int owningNodeIndex)”

Original lines: 607-632

Declaration hash: sha256:fba3fe583e6301f69e86dcf57d51610d936b4b36eb85d6d69589e969e0e828ff

C#
public int TryReservePendingSlot(int serviceId, int commandId, int pendingId, int frame, int owningNodeIndex = -1);

Method: FindPendingByCommand(int commandId)

Section titled “Method: FindPendingByCommand(int commandId)”

Original lines: 638-646

Declaration hash: sha256:21db6ed7b03d8d491a982aeb21550a5e61d2d06e9cdaa028d1b51d53ea793d12

C#
public int FindPendingByCommand(int commandId);

Original lines: 652-666

Declaration hash: sha256:f75723a1f32eb4e8c5627df07250797b4c034dc941e5717bce78de73dc5d3282

C#
public int ReserveCommandId();

Original lines: 671-674

Declaration hash: sha256:69cb9a2f816e0b4a82c25b710867c8db54720a7f2b074ee88a17faa65bc04620

C#
public void ReleasePendingSlot(int slotIndex);

Original lines: 681-688

Declaration hash: sha256:6915257f09ee96b826672d00037e54317d46e50c3d0e140ced14ca7fbb9a83bc

C#
public void CancelAllPending();

Method: RecordLastResult(BehaviorResultCode code, int frame)

Section titled “Method: RecordLastResult(BehaviorResultCode code, int frame)”

Original lines: 693-697

Declaration hash: sha256:d183d621bf4d696a318e4c22b29d22a63a097aef18b6ad6a2d9a6cb1edce158d

C#
public void RecordLastResult(BehaviorResultCode code, int frame);

Method: RecordTransitionLatch(int transitionId, int causeId, int frameNumber)

Section titled “Method: RecordTransitionLatch(int transitionId, int causeId, int frameNumber)”

Original lines: 704-709

Declaration hash: sha256:8e7b6631e7562a918e19d48058cdf37b5453d59c6fe732ab939730c422d731eb

C#
public void RecordTransitionLatch(int transitionId, int causeId, int frameNumber);

Method: EnterLatchedState(int newStateIndex)

Section titled “Method: EnterLatchedState(int newStateIndex)”

Original lines: 715-740

Declaration hash: sha256:938033bdbe1087825a643f00e7af9adbf8f55bfa15ec57d98a77e0032ebad1f3

C#
public void EnterLatchedState(int newStateIndex);

Original lines: 746-757

Declaration hash: sha256:c8298f4d6c1d27204e0611889368dbac47b519c98c467b123d8e65cf697b3005

C#
public void ClearHostedCursor();

Method: RecordTransition(int transitionId, int causeId, int newStateIndex, int frameNumber)

Section titled “Method: RecordTransition(int transitionId, int causeId, int newStateIndex, int frameNumber)”

Original lines: 764-772

Declaration hash: sha256:968ffac0e2d5f0ee9938704ef082e14d9849ed7d48c7acdea4c775df64fa92a8

C#
public void RecordTransition(int transitionId, int causeId, int newStateIndex, int frameNumber);

Original lines: 787-792

Declaration hash: sha256:4e643b02607a5d6ef902e62f414ea6c444c802adbf5cd12cf4d7db03ba1feb21

C#
[InternalBufferCapacity(0)]
public struct BehaviorReactiveConditionState : IBufferElementData
{
}

Original lines: 791

Declaration hash: sha256:a9b5b008423d6c585c07eaeaf697a7bca0f533308e4216646609492ed3728df0

C#
public ReactiveConditionRuntimeState Value;

Type: BehaviorRuntimeHostedStateMachineInstance

Section titled “Type: BehaviorRuntimeHostedStateMachineInstance”

Original lines: 809-814

Declaration hash: sha256:0f199245f1be1cdbb2fb8151cea407715daec613a81cd63e6d5d7aed88557f55

C#
[InternalBufferCapacity(0)]
public struct BehaviorRuntimeHostedStateMachineInstance : IBufferElementData
{
}

Original lines: 813

Declaration hash: sha256:2643d37d4ee96e58477ea4e556bc11886646db98e5b2723d3dbb64491e794c2c

C#
public BehaviorRuntimeInstance Value;

Type: BehaviorRuntimeHostedStateMachineOwningNodeIndex

Section titled “Type: BehaviorRuntimeHostedStateMachineOwningNodeIndex”

Original lines: 829-834

Declaration hash: sha256:ba3cf58dbc9cdca2e291a5ba8995345173faf8f7ddcd532107e9e5c4da92e949

C#
[InternalBufferCapacity(0)]
public struct BehaviorRuntimeHostedStateMachineOwningNodeIndex : IBufferElementData
{
}

Original lines: 833

Declaration hash: sha256:8bbaf10ba78b959167932a685f050a0bc70f66b951f59d674c4448809225a96a

C#
public int Value;

Original lines: 843-853

Declaration hash: sha256:9fe0f30b5ba94fa03e4c8dc2f30cbffdd06b787859ce59e9f544dc406b1b8aa8

C#
[InternalBufferCapacity(0)]
public struct BehaviorRuntimeBlackboardByte : IBufferElementData
{
}

Original lines: 847

Declaration hash: sha256:c873ca58da9ef6e0dc3ca2a98f8d1dafb9a64b45939683c759de6c52331eca53

C#
public byte Value;

Method: op_Implicit(BehaviorRuntimeBlackboardByte b)

Section titled “Method: op_Implicit(BehaviorRuntimeBlackboardByte b)”

Original lines: 850

Declaration hash: sha256:b1556637e43ad2ecb3aee7afea7bb2f7f6d1a642f1856d1f98ec5e53b5068d1b

C#
public static implicit operator byte (BehaviorRuntimeBlackboardByte b);

Original lines: 852

Declaration hash: sha256:83aaf3e3746f3c7b1acf8183cc0d9c1b55b9795d4e9cba528685c5c5e5764fc2

C#
public static implicit operator BehaviorRuntimeBlackboardByte(byte v);
Full-size image