#[repr(C)]pub struct SUnitCreatedEvent {
pub unit: c_int,
pub builder: c_int,
}
Expand description
This AI event is sent whenever a unit of this team is created, and contains the created unit. Usually, the unit has only 1 HP at this time, and consists only of a nano frame (-> will not accept commands yet). See also the unit-finished event.
Fields§
§unit: c_int
§builder: c_int
Trait Implementations§
Source§impl Clone for SUnitCreatedEvent
impl Clone for SUnitCreatedEvent
Source§fn clone(&self) -> SUnitCreatedEvent
fn clone(&self) -> SUnitCreatedEvent
Returns a copy 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 SUnitCreatedEvent
impl Debug for SUnitCreatedEvent
impl Copy for SUnitCreatedEvent
Auto Trait Implementations§
impl Freeze for SUnitCreatedEvent
impl RefUnwindSafe for SUnitCreatedEvent
impl Send for SUnitCreatedEvent
impl Sync for SUnitCreatedEvent
impl Unpin for SUnitCreatedEvent
impl UnwindSafe for SUnitCreatedEvent
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