veloren/server/src/rtsim/mod.rs

15 lines
300 B
Rust
Raw Normal View History

2020-11-10 15:27:52 +00:00
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
}