Files
war-in-tunnels/src/app/units/miner.rs
T

18 lines
314 B
Rust

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
}
}