generated from GarandPLG/rust-flake-template
b639531841
Move the GameMode and Players enums from the top‑level states module into the skirmish_states submodule, add an Unclaimed variant to Players, and update all imports, trait implementations, and related logic accordingly. Adjust the durability percentage calculation to use u32 for safety.
8 lines
177 B
Rust
8 lines
177 B
Rust
use crate::app::states::skirmish_states::Players;
|
|
|
|
pub trait Unit {
|
|
fn get_owner(&self) -> Players;
|
|
fn get_tag(&self) -> char;
|
|
fn get_name(&self) -> &'static str;
|
|
}
|