pub struct ImportantObjectMemory {Show 13 fields
pub id: Option<ObjectID>,
pub unit_type_id: Option<UnitTypeID>,
pub unit_class: Option<u16>,
pub location: (u8, u8, u8),
pub owner: PlayerID,
pub hit_points: u16,
pub attack_attempts: u32,
pub kills: u8,
pub damage_capability: f32,
pub rate_of_fire: f32,
pub range: f32,
pub time_seen: Option<u32>,
pub is_garrisoned: u32,
}
Fields§
§id: Option<ObjectID>
§unit_type_id: Option<UnitTypeID>
§unit_class: Option<u16>
§location: (u8, u8, u8)
§owner: PlayerID
§hit_points: u16
§attack_attempts: u32
§kills: u8
§damage_capability: f32
§rate_of_fire: f32
§range: f32
§time_seen: Option<u32>
§is_garrisoned: u32
Implementations§
Trait Implementations§
Source§impl Clone for ImportantObjectMemory
impl Clone for ImportantObjectMemory
Source§fn clone(&self) -> ImportantObjectMemory
fn clone(&self) -> ImportantObjectMemory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImportantObjectMemory
impl Debug for ImportantObjectMemory
Source§impl Default for ImportantObjectMemory
impl Default for ImportantObjectMemory
Source§fn default() -> ImportantObjectMemory
fn default() -> ImportantObjectMemory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImportantObjectMemory
impl RefUnwindSafe for ImportantObjectMemory
impl Send for ImportantObjectMemory
impl Sync for ImportantObjectMemory
impl Unpin for ImportantObjectMemory
impl UnwindSafe for ImportantObjectMemory
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