This commit is contained in:
nora 2023-04-18 12:37:19 +02:00
parent bf4e083d34
commit 48386a6cf2

View file

@ -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,