mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 11:45:01 +01:00
more
This commit is contained in:
parent
cf22fcd5fd
commit
840e869e4a
2 changed files with 0 additions and 47 deletions
24
src/tiles.rs
24
src/tiles.rs
|
|
@ -18,35 +18,11 @@ impl<Layer> Debug for TileId<Layer> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[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)]
|
#[derive(Serialize, Deserialize, Inspect)]
|
||||||
pub struct TileDef
|
pub struct TileDef
|
||||||
where
|
where
|
||||||
{
|
{
|
||||||
/// Whether the tile emits light, and the light source offset
|
|
||||||
pub layer: (),
|
pub layer: (),
|
||||||
//ADD pub blend_graphic: String,
|
//ADD pub blend_graphic: String,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
23
tiles.rs
23
tiles.rs
|
|
@ -18,29 +18,6 @@ impl<Layer> Debug for TileId<Layer> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[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)]
|
#[derive(Serialize, Deserialize, Inspect)]
|
||||||
pub struct TileDef
|
pub struct TileDef
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue