pub struct OnCharacterCorpseExpiredEvent {
pub corpse: LuaEntity,
pub name: &'static str,
pub tick: u32,
}Expand description
Called when a character corpse expires due to timeout or all of the items being removed from it.
this is not called if the corpse is mined. See defines.events.on_pre_player_mined_item to detect that.
Fields§
§corpse: LuaEntity§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnCharacterCorpseExpiredEvent
impl Clone for OnCharacterCorpseExpiredEvent
Source§fn clone(&self) -> OnCharacterCorpseExpiredEvent
fn clone(&self) -> OnCharacterCorpseExpiredEvent
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 OnCharacterCorpseExpiredEvent
Source§impl Default for OnCharacterCorpseExpiredEvent
impl Default for OnCharacterCorpseExpiredEvent
Source§fn default() -> OnCharacterCorpseExpiredEvent
fn default() -> OnCharacterCorpseExpiredEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnCharacterCorpseExpiredEvent
Auto Trait Implementations§
impl Freeze for OnCharacterCorpseExpiredEvent
impl RefUnwindSafe for OnCharacterCorpseExpiredEvent
impl Send for OnCharacterCorpseExpiredEvent
impl Sync for OnCharacterCorpseExpiredEvent
impl Unpin for OnCharacterCorpseExpiredEvent
impl UnsafeUnpin for OnCharacterCorpseExpiredEvent
impl UnwindSafe for OnCharacterCorpseExpiredEvent
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