mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 11:45:01 +01:00
more
This commit is contained in:
parent
12efe0f210
commit
3aeb47877d
1 changed files with 6 additions and 14 deletions
20
src/main.rs
20
src/main.rs
|
|
@ -6,28 +6,20 @@ pub struct TileDef {
|
||||||
pub blend_graphic: String,
|
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;
|
use egui_inspect_derive::Inspect;
|
||||||
|
|
||||||
pub(crate) struct WorldPos {}
|
|
||||||
|
|
||||||
#[derive(Inspect)]
|
#[derive(Inspect)]
|
||||||
pub(crate) struct GameState {
|
pub(crate) struct GameState {
|
||||||
pub(crate) camera_offset: WorldPos,
|
|
||||||
pub(crate) tile_db: TileDb,
|
pub(crate) tile_db: TileDb,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn new() -> GameState {
|
||||||
|
loop {}
|
||||||
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut app = App::new();
|
let mut app = new();
|
||||||
app.game.inspect_mut();
|
app.inspect_mut();
|
||||||
}
|
}
|
||||||
// this is actually used
|
// this is actually used
|
||||||
pub struct TileDb {
|
pub struct TileDb {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue