cortenforge-sim-core 0.6.0

Bevy-based simulation runtime primitives (modes, config, plugins) for the CortenForge stack.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sim_core::prelude::*;
use sim_core::runtime;

#[test]
fn runtime_plugin_inserts_defaults() {
    let mut app = bevy::prelude::App::new();
    app.add_plugins(SimPlugin)
        .add_plugins(runtime::SimRuntimePlugin);

    app.update();

    assert!(app.world().contains_resource::<SimConfig>());
    assert!(app.world().contains_resource::<AutoDrive>());
    assert!(app.world().contains_resource::<RecorderConfig>());
    assert!(app.world().contains_resource::<RecorderState>());
}