store rendered tile as entity rather than raw Paragraph

This commit is contained in:
Tao Tien 2026-01-13 03:32:08 -08:00
parent 9b99dad50b
commit 4112edbf2a
12 changed files with 63 additions and 47 deletions

View file

@ -6,7 +6,7 @@ use crate::{
player::{MainPlayer, Player},
wall::Wall,
},
tiles::{self, *},
tile::{self, *},
};
pub mod hand;
@ -31,7 +31,7 @@ impl Plugin for Riichi {
.init_state::<GameState>()
.init_resource::<round::MatchSettings>()
.init_resource::<round::Compass>()
.add_systems(Startup, tiles::init_tiles)
.add_systems(Startup, tile::init_tiles)
.add_systems(OnEnter(GameState::Setup), setup)
.add_systems(OnEnter(GameState::Deal), shuffle_deal)
.add_systems(Update, hand::sort_hands.run_if(in_state(GameState::Play)))