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