mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
more
This commit is contained in:
parent
6a2af916ab
commit
a962bc5943
2 changed files with 12 additions and 13 deletions
11
src/game.rs
11
src/game.rs
|
|
@ -1,11 +0,0 @@
|
||||||
use crate::TileDb;
|
|
||||||
use egui_inspect::derive::Inspect;
|
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Inspect)]
|
|
||||||
pub(crate) struct WorldPos {}
|
|
||||||
|
|
||||||
#[derive(Debug, Inspect)]
|
|
||||||
pub(crate) struct GameState {
|
|
||||||
pub(crate) camera_offset: WorldPos,
|
|
||||||
pub(crate) tile_db: TileDb,
|
|
||||||
}
|
|
||||||
14
src/main.rs
14
src/main.rs
|
|
@ -1,7 +1,5 @@
|
||||||
use egui_inspect::Inspect;
|
use egui_inspect::Inspect;
|
||||||
use game::GameState;
|
|
||||||
|
|
||||||
mod game;
|
|
||||||
mod tiles;
|
mod tiles;
|
||||||
|
|
||||||
pub(crate) struct App {
|
pub(crate) struct App {
|
||||||
|
|
@ -13,6 +11,18 @@ impl App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use egui_inspect::derive::Inspect;
|
||||||
|
|
||||||
|
#[derive(Clone, Copy, Debug, Inspect)]
|
||||||
|
pub(crate) struct WorldPos {}
|
||||||
|
|
||||||
|
#[derive(Debug, Inspect)]
|
||||||
|
pub(crate) struct GameState {
|
||||||
|
pub(crate) camera_offset: WorldPos,
|
||||||
|
pub(crate) tile_db: TileDb,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut app = App::new();
|
let mut app = App::new();
|
||||||
do_debug_ui(&mut app.game);
|
do_debug_ui(&mut app.game);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue