pub struct Unit {
pub id: Uuid,
pub kind: GameObjectKind,
pub owner_id: OwnerId,
pub health: u32,
pub hex: Hex,
pub energy: u32,
pub age: u32,
pub body: UnitBody,
pub storage: Storage,
pub future_health: u32,
pub future_energy: u32,
pub future_hex: Hex,
}Fields§
§id: Uuid§kind: GameObjectKind§owner_id: OwnerId§health: u32§hex: Hex§energy: u32§age: u32§body: UnitBody§storage: Storage§future_health: u32§future_energy: u32§future_hex: HexImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more