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.ExternalService

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

Source snapshot 29003d8b1658.

Assembly: BitQuirky.Behavior.Runtime

Category: External services

C#
interface BitQuirky.Behavior.ExternalService.IBehaviorSharedNumericSource

Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:23-45

Core-agnostic shared numeric value a game explicitly injects into one or more registered graph consumers, distinct from any private agent-owned value.

Responsibilities:

  • Own one shared identity and its current numeric value.
  • Let a consumer subscribe to effective changes and dispose that subscription.
  • Accept a write request that changes the current value and notifies every subscriber before the request returns, whether the request originates outside the graph (an Inspector edit or a configured reset) or as an edit-through from a selected running graph’s debugger.

Does NOT:

  • Reference Core types, own graph blackboard storage, discover assets at runtime, or distinguish one consuming graph instance from another.

C#
float CurrentValue { get; }

Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:31

Gets the current shared numeric value.

C#
string Name { get; }

Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:28

Gets the shared identity distinguishing this value from a private agent value.

C#
void SetValue(float value)

Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:44

Writesvalueas the new current value and notifies every subscriber, including a caller’s own cached copy, before returning. Never rewrites the .bqbehavior authoring source or another instance’s private values.

C#
System.IDisposable Subscribe(System.Action<float> onValueChanged)

Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:37

Subscribes to every effective change ofCurrentValue. Disposing the returned subscription stops further notifications toonValueChanged.

Source fingerprint: sha256:29003d8b1658b98a79bebcd93e3b4030caf8511268b96817ab764d63df8d6c3b

Full-size image