#[repr(C)]pub struct SReleaseEvent {
pub reason: c_int,
}
Expand description
This AI event tells a Skirmish AI instance, that it is no longer needed. It can be used to free memory or do other cleanup work. It is sent only once per AI instance and game, as the very last event. Values description for reason: 0: unspecified 1: game ended 2: team died 3: AI killed 4: AI crashed 5: AI failed to init 6: connection lost 7: other reason
Fields§
§reason: c_int
Trait Implementations§
Source§impl Clone for SReleaseEvent
impl Clone for SReleaseEvent
Source§fn clone(&self) -> SReleaseEvent
fn clone(&self) -> SReleaseEvent
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 SReleaseEvent
impl Debug for SReleaseEvent
impl Copy for SReleaseEvent
Auto Trait Implementations§
impl Freeze for SReleaseEvent
impl RefUnwindSafe for SReleaseEvent
impl Send for SReleaseEvent
impl Sync for SReleaseEvent
impl Unpin for SReleaseEvent
impl UnwindSafe for SReleaseEvent
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