This commit is contained in:
nora 2023-04-17 22:09:53 +02:00
parent 5604327bdc
commit ba93afdf0a
3 changed files with 4 additions and 11 deletions

View file

@ -1,7 +1,10 @@
use crate::{math::WorldPos, tiles::TileDb};
use crate::tiles::TileDb;
use derivative::Derivative;
use egui_inspect::derive::Inspect;
#[derive(Clone, Copy, Debug, Inspect)]
pub(crate) struct WorldPos {}
#[derive(Derivative, Inspect)]
#[derivative(Debug)]
pub(crate) struct GameState {

View file

@ -6,7 +6,6 @@ use game::GameState;
mod command;
mod debug;
mod game;
mod math;
mod tiles;
pub(crate) struct App {

View file

@ -1,9 +0,0 @@
use egui_inspect::derive::Inspect;
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
#[derive(Clone, Copy, Debug, Inspect)]
pub(crate) struct WorldPos {}
/// Tile size in pixels
pub(crate) const TILE_SIZE: u8 = 32;
#[derive(Serialize, Deserialize, Debug, Inspect, Default, Clone, Copy)]
pub(crate) struct IntRect {}