This commit is contained in:
nora 2023-04-17 22:08:27 +02:00
parent c5a1baba26
commit d10e464104
2 changed files with 0 additions and 46 deletions

View file

@ -25,7 +25,6 @@ pub enum Mid {}
#[derive(Debug)]
pub enum Fg {}
pub trait TileLayer {
/// Definitions specific to this layer
type SpecificDef;
@ -43,28 +42,6 @@ impl TileLayer for Fg {
type SpecificDef = ();
}
pub type BgTileId = TileId<Bg>;
pub type MidTileId = TileId<Mid>;
pub type FgTileId = TileId<Fg>;
impl BgTileId {
pub const DIRT: Self = Self(1, PhantomData);
pub const STONE: Self = Self(2, PhantomData);
}
impl MidTileId {
pub const DIRT: Self = Self(1, PhantomData);
pub const STONE: Self = Self(2, PhantomData);
pub const TORCH: Self = Self(3, PhantomData);
pub const PLATFORM: Self = Self(4, PhantomData);
pub const PANZERIUM: Self = Self(5, PhantomData);
pub const UNBREAKANIUM: Self = Self(6, PhantomData);
}
impl FgTileId {
pub const COAL: Self = Self(1, PhantomData);
}
#[derive(Serialize, Deserialize, Inspect)]
pub struct TileDef<Layer: TileLayer>
where
@ -101,7 +78,6 @@ where
}
}
#[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)]
pub struct TileBb {
pub x: u8,