Trait AssentCallback

Source
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§

Source

fn on_tick(&mut self, step: &CombinedStepT)

Called for each tick with the corresponding step.

Provided Methods§

Source

fn on_pre_ticks(&mut self)

Called before any ticks are processed.

Source

fn on_post_ticks(&mut self)

Called after all ticks have been processed.

Implementors§