This commit is contained in:
nora 2023-04-18 15:46:40 +02:00
parent 6bcb9657e9
commit 5fc08bb22f

View file

@ -22,23 +22,13 @@ pub(crate) struct GameState {
fn main() { fn main() {
let mut app = App::new(); let mut app = App::new();
do_debug_ui(&mut app.game); app.game.inspect_mut();
} }
pub(crate) fn do_debug_ui(game: &mut GameState) {
show(&||{
game.inspect_mut();
});
}
fn show(f: &dyn FnMut()) {}
// this is actually used // this is actually used
pub struct TileDb { pub struct TileDb {
unknown_bg: tiles::TileDef, unknown_bg: tiles::TileDef,
} }
pub trait Inspect { pub trait Inspect {
fn inspect_mut(&mut self) { fn inspect_mut(&mut self) {
loop {} loop {}
@ -46,7 +36,6 @@ pub trait Inspect {
} }
impl Inspect for () {} impl Inspect for () {}
impl Inspect for TileDb { impl Inspect for TileDb {
fn inspect_mut(&mut self) { fn inspect_mut(&mut self) {
let _a = &mut self.unknown_bg; let _a = &mut self.unknown_bg;