pub struct OnSegmentedUnitDiedEvent {
pub cause: LuaEntity,
pub damage_type: LuaDamagePrototype,
pub force: LuaForce,
pub name: &'static str,
pub segmented_unit: LuaSegmentedUnit,
pub tick: u32,
}Expand description
Called when a segmented unit dies.
Fields§
§cause: LuaEntity§damage_type: LuaDamagePrototype§force: LuaForce§name: &'static str§segmented_unit: LuaSegmentedUnit§tick: u32Trait Implementations§
Source§impl Clone for OnSegmentedUnitDiedEvent
impl Clone for OnSegmentedUnitDiedEvent
Source§fn clone(&self) -> OnSegmentedUnitDiedEvent
fn clone(&self) -> OnSegmentedUnitDiedEvent
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 OnSegmentedUnitDiedEvent
Source§impl Debug for OnSegmentedUnitDiedEvent
impl Debug for OnSegmentedUnitDiedEvent
Source§impl Default for OnSegmentedUnitDiedEvent
impl Default for OnSegmentedUnitDiedEvent
Source§fn default() -> OnSegmentedUnitDiedEvent
fn default() -> OnSegmentedUnitDiedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnSegmentedUnitDiedEvent
impl PartialEq for OnSegmentedUnitDiedEvent
impl StructuralPartialEq for OnSegmentedUnitDiedEvent
Auto Trait Implementations§
impl Freeze for OnSegmentedUnitDiedEvent
impl RefUnwindSafe for OnSegmentedUnitDiedEvent
impl Send for OnSegmentedUnitDiedEvent
impl Sync for OnSegmentedUnitDiedEvent
impl Unpin for OnSegmentedUnitDiedEvent
impl UnsafeUnpin for OnSegmentedUnitDiedEvent
impl UnwindSafe for OnSegmentedUnitDiedEvent
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