This commit is contained in:
nora 2023-04-18 15:53:35 +02:00
parent 12efe0f210
commit 3aeb47877d

View file

@ -6,28 +6,20 @@ pub struct TileDef {
pub blend_graphic: String, pub blend_graphic: String,
} }
pub(crate) struct App {
pub(crate) game: GameState,
}
impl App {
pub(crate) fn new() -> Self {
loop {}
}
}
use egui_inspect_derive::Inspect; use egui_inspect_derive::Inspect;
pub(crate) struct WorldPos {}
#[derive(Inspect)] #[derive(Inspect)]
pub(crate) struct GameState { pub(crate) struct GameState {
pub(crate) camera_offset: WorldPos,
pub(crate) tile_db: TileDb, pub(crate) tile_db: TileDb,
} }
fn new() -> GameState {
loop {}
}
fn main() { fn main() {
let mut app = App::new(); let mut app = new();
app.game.inspect_mut(); app.inspect_mut();
} }
// this is actually used // this is actually used
pub struct TileDb { pub struct TileDb {