Interface IRuntimeState
- Namespace
- MoonBark.GridPlacement.Core.Lifecycle
- Assembly
- MoonBark.GridPlacement.Core.dll
Represents the runtime state of a component or system. This is intentionally minimal and engine-agnostic.
public interface IRuntimeState
Properties
HasError
True if the component has encountered an error condition.
bool HasError { get; }
Property Value
IsInitialized
True once the component has completed its initialization path.
bool IsInitialized { get; }
Property Value
IsReady
True when the component is ready to be used (may be stronger than just initialized).
bool IsReady { get; }
Property Value
LastError
Optional human-readable description of the last error, if any.
string? LastError { get; }
Property Value
Revision
Monotonic revision counter for debugging and deterministic test assertions.
- This is NOT wall-clock time.
- Implementations may increment it when meaningful state changes occur.
- Default is 0 to avoid forcing implementers to adopt it immediately.
long Revision { get; }