pub struct OnPostSegmentedUnitDiedEvent {
pub damage_type: LuaDamagePrototype,
pub force: LuaForce,
pub name: &'static str,
pub prototype: LuaEntityPrototype,
pub quality: LuaQualityPrototype,
pub segments: PostSegmentDiedData,
pub surface_index: u32,
pub tick: u32,
pub unit_number: u32,
}Expand description
Called after a segmented unit dies.
Fields§
§damage_type: LuaDamagePrototype§force: LuaForce§name: &'static str§prototype: LuaEntityPrototype§quality: LuaQualityPrototype§segments: PostSegmentDiedData§surface_index: u32§tick: u32§unit_number: u32Trait Implementations§
Source§impl Clone for OnPostSegmentedUnitDiedEvent
impl Clone for OnPostSegmentedUnitDiedEvent
Source§fn clone(&self) -> OnPostSegmentedUnitDiedEvent
fn clone(&self) -> OnPostSegmentedUnitDiedEvent
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 OnPostSegmentedUnitDiedEvent
Source§impl Debug for OnPostSegmentedUnitDiedEvent
impl Debug for OnPostSegmentedUnitDiedEvent
Source§impl Default for OnPostSegmentedUnitDiedEvent
impl Default for OnPostSegmentedUnitDiedEvent
Source§fn default() -> OnPostSegmentedUnitDiedEvent
fn default() -> OnPostSegmentedUnitDiedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPostSegmentedUnitDiedEvent
Auto Trait Implementations§
impl Freeze for OnPostSegmentedUnitDiedEvent
impl RefUnwindSafe for OnPostSegmentedUnitDiedEvent
impl Send for OnPostSegmentedUnitDiedEvent
impl Sync for OnPostSegmentedUnitDiedEvent
impl Unpin for OnPostSegmentedUnitDiedEvent
impl UnsafeUnpin for OnPostSegmentedUnitDiedEvent
impl UnwindSafe for OnPostSegmentedUnitDiedEvent
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