pub struct OnPreGhostDeconstructedEvent {
pub ghost: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called before a ghost entity is destroyed as a result of being marked for deconstruction.
Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
Fields§
§ghost: LuaEntity§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPreGhostDeconstructedEvent
impl Clone for OnPreGhostDeconstructedEvent
Source§fn clone(&self) -> OnPreGhostDeconstructedEvent
fn clone(&self) -> OnPreGhostDeconstructedEvent
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 OnPreGhostDeconstructedEvent
Source§impl Debug for OnPreGhostDeconstructedEvent
impl Debug for OnPreGhostDeconstructedEvent
Source§impl Default for OnPreGhostDeconstructedEvent
impl Default for OnPreGhostDeconstructedEvent
Source§fn default() -> OnPreGhostDeconstructedEvent
fn default() -> OnPreGhostDeconstructedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPreGhostDeconstructedEvent
Auto Trait Implementations§
impl Freeze for OnPreGhostDeconstructedEvent
impl RefUnwindSafe for OnPreGhostDeconstructedEvent
impl Send for OnPreGhostDeconstructedEvent
impl Sync for OnPreGhostDeconstructedEvent
impl Unpin for OnPreGhostDeconstructedEvent
impl UnsafeUnpin for OnPreGhostDeconstructedEvent
impl UnwindSafe for OnPreGhostDeconstructedEvent
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