Add BaseBuilding and MinerUnit with UI rendering

This commit is contained in:
2026-04-16 10:59:02 +02:00
parent be41936f14
commit 0f60249309
8 changed files with 103 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
use crate::app::states::Players;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct MinerUnit {
owner: Players,
tag: &'static str,
}
impl MinerUnit {
pub fn new(owner: Players) -> Self {
Self { owner, tag: "M" }
}
pub fn get_tag(self) -> &'static str {
self.tag
}
}