mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
more
This commit is contained in:
parent
6bcb9657e9
commit
5fc08bb22f
1 changed files with 1 additions and 12 deletions
13
src/main.rs
13
src/main.rs
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue