BitQuirky.Behavior.ExternalService
Public behavior trees and state machines: runtime symbols in BitQuirky.Behavior.ExternalService.
Source snapshot 29003d8b1658.
On this page
Assembly: BitQuirky.Behavior.Runtime
IBehaviorSharedNumericSource
Section titled “IBehaviorSharedNumericSource”Category: External services
interface BitQuirky.Behavior.ExternalService.IBehaviorSharedNumericSourceSource 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.
Members
Section titled “Members”CurrentValue
Section titled “CurrentValue”float CurrentValue { get; }Source declaration: Packages/io.bitquirky.behavior/Runtime/ExternalService/IBehaviorSharedNumericSource.cs:31
Gets the current shared numeric value.
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.
SetValue(float value)
Section titled “SetValue(float value)”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.
Subscribe(Action<float> onValueChanged)
Section titled “Subscribe(Action<float> onValueChanged)”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