StepContext class
The per-step context handed to a ReconcilerStep.
Reused across steps — read it inside the step, never retain it.
Properties
- dt → double
-
Fixed step in seconds. Always the same value; the simulation is not
frame-rate dependent.
no setter
- dtMs → double
-
Fixed step in milliseconds.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReplay → bool
-
Whether this step is re-simulating an already-applied input.
no setter
- lagCompActive → bool
-
Whether this input carries a lag-compensation stamp.
no setter
- reckonTime → double
-
The server-clock instant this input was stamped at.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subDt → double
-
dt divided by subSteps.
no setter
- subDtMs → double
-
dtMs divided by subSteps.
no setter
- subSteps → int
-
Physics sub-steps per fixed step; at least 1.
no setter
- tick → int
-
The sequence number of the input being applied.
no setter
Methods
-
memo(
String key, double compute()) → double - Freezes a value that replay could not re-derive.
-
memoVec(
String key, List< double> compute()) → List<double> - Vector form of memo: freezes up to 4 values under one key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predict(
EventChannel channel, String key, [Object? payload]) → void - Predicts an optimistic event from inside the simulation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited