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
bf4e083d34
commit
48386a6cf2
1 changed files with 10 additions and 1 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -13,9 +13,18 @@ impl App {
|
|||
|
||||
use egui_inspect::derive::Inspect;
|
||||
|
||||
#[derive(Debug, Inspect)]
|
||||
pub(crate) struct WorldPos {}
|
||||
|
||||
impl ::core::fmt::Debug for WorldPos {
|
||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
impl ::egui_inspect::Inspect for WorldPos {
|
||||
fn inspect(&self, ui: &mut ::egui::Ui, id_source: u64) {}
|
||||
fn inspect_mut(&mut self, ui: &mut ::egui::Ui, id_source: u64) {}
|
||||
}
|
||||
|
||||
#[derive(Debug, Inspect)]
|
||||
pub(crate) struct GameState {
|
||||
pub(crate) camera_offset: WorldPos,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue