mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
15 lines
300 B
Rust
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
|
||
|
}
|