diff --git a/src/tiles.rs b/src/tiles.rs index 7a58567..13b382f 100644 --- a/src/tiles.rs +++ b/src/tiles.rs @@ -3,22 +3,6 @@ use std::{fmt::Debug, marker::PhantomData}; use egui_inspect::{derive::Inspect, Inspect}; use serde::{Deserialize, Serialize}; -#[derive(Inspect, PartialEq, Eq)] -pub struct TileId(pub u16, PhantomData); - -impl Copy for TileId {} -impl Clone for TileId { - fn clone(&self) -> Self { - Self(self.0, PhantomData) - } -} -impl Debug for TileId { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - loop {} - } -} - - #[derive(Serialize, Deserialize, Inspect)] pub struct TileDef where @@ -27,14 +11,6 @@ where //ADD pub blend_graphic: String, } -#[derive(Debug, Inspect, Default, Serialize, Deserialize)] -pub struct MidDef { - /// Platform behavior: Horizontally passable, vertically passable upwards - pub platform: bool, - /// Collision bounding box - pub bb: Option, -} - impl Debug for TileDef where { diff --git a/tiles.rs b/tiles.rs index 7a58567..13b382f 100644 --- a/tiles.rs +++ b/tiles.rs @@ -3,22 +3,6 @@ use std::{fmt::Debug, marker::PhantomData}; use egui_inspect::{derive::Inspect, Inspect}; use serde::{Deserialize, Serialize}; -#[derive(Inspect, PartialEq, Eq)] -pub struct TileId(pub u16, PhantomData); - -impl Copy for TileId {} -impl Clone for TileId { - fn clone(&self) -> Self { - Self(self.0, PhantomData) - } -} -impl Debug for TileId { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - loop {} - } -} - - #[derive(Serialize, Deserialize, Inspect)] pub struct TileDef where @@ -27,14 +11,6 @@ where //ADD pub blend_graphic: String, } -#[derive(Debug, Inspect, Default, Serialize, Deserialize)] -pub struct MidDef { - /// Platform behavior: Horizontally passable, vertically passable upwards - pub platform: bool, - /// Collision bounding box - pub bb: Option, -} - impl Debug for TileDef where {