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