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