From 3aeb47877d19ac05290725c9ca74ec0dd7718887 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:53:35 +0200 Subject: [PATCH] more --- src/main.rs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/main.rs b/src/main.rs index e94dba2..1ff735d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,28 +6,20 @@ pub struct TileDef { 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; -pub(crate) struct WorldPos {} - #[derive(Inspect)] pub(crate) struct GameState { - pub(crate) camera_offset: WorldPos, pub(crate) tile_db: TileDb, } +fn new() -> GameState { + loop {} +} + fn main() { - let mut app = App::new(); - app.game.inspect_mut(); + let mut app = new(); + app.inspect_mut(); } // this is actually used pub struct TileDb {