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