Class ManualUpdate<T extends Time>
java.lang.Object
dev.engine.core.module.ManualUpdate<T>
- Type Parameters:
T- the update context type passed to modules
- All Implemented Interfaces:
UpdateStrategy<T>
No-op
UpdateStrategy for modules whose updates are driven externally.
When this strategy is active, advance(double, Consumer) does nothing. Updates are
expected to be triggered by the caller directly via
ModuleManager.update(T) rather than through the timed advance mechanism.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ManualUpdate
public ManualUpdate()
-
-
Method Details
-
advance
Description copied from interface:UpdateStrategyAdvances time by the given elapsed seconds and invokesonUpdatefor each computed update step.- Specified by:
advancein interfaceUpdateStrategy<T extends Time>- Parameters:
elapsedSeconds- real wall-clock time elapsed since last advanceonUpdate- callback invoked with the context for each update step
-