From 840e869e4ab6d3d7388683af4a8e6694ad3ff139 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 18 Apr 2023 12:22:01 +0200 Subject: [PATCH] more --- src/tiles.rs | 24 ------------------------ tiles.rs | 23 ----------------------- 2 files changed, 47 deletions(-) diff --git a/src/tiles.rs b/src/tiles.rs index 1949614..7a58567 100644 --- a/src/tiles.rs +++ b/src/tiles.rs @@ -18,35 +18,11 @@ impl Debug for TileId { } } -#[derive(Debug)] -pub enum Bg {} -#[derive(Debug)] -pub enum Mid {} -#[derive(Debug)] -pub enum Fg {} - -pub trait TileLayer { - /// Definitions specific to this layer - type SpecificDef; -} - -impl TileLayer for Bg { - type SpecificDef = (); -} - -impl TileLayer for Mid { - type SpecificDef = MidDef; -} - -impl TileLayer for Fg { - type SpecificDef = (); -} #[derive(Serialize, Deserialize, Inspect)] pub struct TileDef where { - /// Whether the tile emits light, and the light source offset pub layer: (), //ADD pub blend_graphic: String, } diff --git a/tiles.rs b/tiles.rs index 794689d..7a58567 100644 --- a/tiles.rs +++ b/tiles.rs @@ -18,29 +18,6 @@ impl Debug for TileId { } } -#[derive(Debug)] -pub enum Bg {} -#[derive(Debug)] -pub enum Mid {} -#[derive(Debug)] -pub enum Fg {} - -pub trait TileLayer { - /// Definitions specific to this layer - type SpecificDef; -} - -impl TileLayer for Bg { - type SpecificDef = (); -} - -impl TileLayer for Mid { - type SpecificDef = MidDef; -} - -impl TileLayer for Fg { - type SpecificDef = (); -} #[derive(Serialize, Deserialize, Inspect)] pub struct TileDef