mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Add some world defs
This commit is contained in:
parent
608f8f9f9f
commit
d78726eb5b
6 changed files with 61 additions and 0 deletions
16
src/game.rs
Normal file
16
src/game.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use crate::{math::WorldPos, world::World};
|
||||
|
||||
pub struct GameState {
|
||||
transient: TransientGameState,
|
||||
persistent: PersistentGameState,
|
||||
}
|
||||
|
||||
/// Transient game state, not saved to disk
|
||||
pub struct TransientGameState {
|
||||
camera_offset: WorldPos,
|
||||
}
|
||||
|
||||
/// Persistent game state, saved to disk
|
||||
pub struct PersistentGameState {
|
||||
world: World,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue