veloren/server/src/rtsim/mod.rs
2020-11-23 10:37:59 +00:00

15 lines
300 B
Rust

pub mod state;
use common::state::State;
pub fn init(state: &mut State, world: &world::World) {
state
.ecs_mut()
.insert(state::SimState::new(world.sim().get_size()));
tracing::info!("Initiated real-time world simulation");
}
pub fn tick(state: &mut State) {
// TODO
}