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

pub trait HarnessPlugin {
    //FIXME: is run_callbacks needed?
    fn run_callbacks(
        &mut self,
        physics: &mut PhysicsState,
        events: &PhysicsEvents,
        harness_state: &HarnessState,
        t: f32,
    );
    fn step(&mut self, physics: &mut PhysicsState);
    fn profiling_string(&self) -> String;
}