render some tiles
This commit is contained in:
parent
bea146d439
commit
d506a25716
8 changed files with 129 additions and 60 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use bevy::{ecs::entity::MapEntities, prelude::*};
|
||||
use strum::FromRepr;
|
||||
use tracing::instrument;
|
||||
|
||||
use crate::game::wall::Wall;
|
||||
use crate::game::wall::WallTiles;
|
||||
|
||||
#[derive(Component)]
|
||||
#[relationship(relationship_target = Wall)]
|
||||
#[relationship(relationship_target = WallTiles)]
|
||||
pub struct InWall(pub Entity);
|
||||
|
||||
// #[derive(Component)]
|
||||
|
|
@ -13,7 +14,7 @@ pub struct InWall(pub Entity);
|
|||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct Tile {
|
||||
suit: Suit,
|
||||
pub suit: Suit,
|
||||
}
|
||||
|
||||
#[derive(MapEntities, Debug)]
|
||||
|
|
@ -26,7 +27,7 @@ pub enum Suit {
|
|||
}
|
||||
|
||||
#[derive(Deref, DerefMut, Debug)]
|
||||
pub struct Rank(u8);
|
||||
pub struct Rank(pub u8);
|
||||
|
||||
#[derive(FromRepr, Debug)]
|
||||
pub enum Wind {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue