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() {
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
pub struct TileDb {
unknown_bg: tiles::TileDef,
}
pub trait Inspect {
fn inspect_mut(&mut self) {
loop {}
@ -46,7 +36,6 @@ pub trait Inspect {
}
impl Inspect for () {}
impl Inspect for TileDb {
fn inspect_mut(&mut self) {
let _a = &mut self.unknown_bg;