aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/harness/plugin.rs
blob: ef0ebc4ad7be5de1820d84f7df5f29508690c5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::harness::RunState;
use crate::physics::PhysicsEvents;
use crate::PhysicsState;

pub trait HarnessPlugin {
    fn run_callbacks(
        &mut self,
        physics: &mut PhysicsState,
        events: &PhysicsEvents,
        harness_state: &RunState,
        t: f32,
    );
    fn step(&mut self, physics: &mut PhysicsState, run_state: &RunState);
    fn profiling_string(&self) -> String;
}