pub struct OnForcesMergedEvent {
pub destination: LuaForce,
pub name: &'static str,
pub source_index: u32,
pub source_name: &'static str,
pub tick: u32,
}Expand description
Called after two forces have been merged using game.merge_forces().
The source force is invalidated before this event is called and the name can be re-used in this event if desired.
Fields§
§destination: LuaForce§name: &'static str§source_index: u32§source_name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnForcesMergedEvent
impl Clone for OnForcesMergedEvent
Source§fn clone(&self) -> OnForcesMergedEvent
fn clone(&self) -> OnForcesMergedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnForcesMergedEvent
Source§impl Debug for OnForcesMergedEvent
impl Debug for OnForcesMergedEvent
Source§impl Default for OnForcesMergedEvent
impl Default for OnForcesMergedEvent
Source§fn default() -> OnForcesMergedEvent
fn default() -> OnForcesMergedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnForcesMergedEvent
impl PartialEq for OnForcesMergedEvent
impl StructuralPartialEq for OnForcesMergedEvent
Auto Trait Implementations§
impl Freeze for OnForcesMergedEvent
impl RefUnwindSafe for OnForcesMergedEvent
impl Send for OnForcesMergedEvent
impl Sync for OnForcesMergedEvent
impl Unpin for OnForcesMergedEvent
impl UnsafeUnpin for OnForcesMergedEvent
impl UnwindSafe for OnForcesMergedEvent
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