pub trait AssentCallback<CombinedStepT> {
// Required method
fn on_tick(&mut self, step: &CombinedStepT);
// Provided methods
fn on_pre_ticks(&mut self) { ... }
fn on_post_ticks(&mut self) { ... }
}
Expand description
A trait representing callbacks for the Assent
simulation.
This trait defines hooks for handling steps at different stages of a game update cycle.
Required Methods§
Sourcefn on_tick(&mut self, step: &CombinedStepT)
fn on_tick(&mut self, step: &CombinedStepT)
Called for each tick with the corresponding step.
Provided Methods§
Sourcefn on_pre_ticks(&mut self)
fn on_pre_ticks(&mut self)
Called before any ticks are processed.
Sourcefn on_post_ticks(&mut self)
fn on_post_ticks(&mut self)
Called after all ticks have been processed.