pub struct OnMarkedForDeconstructionEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
Fields§
§entity: LuaEntity§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnMarkedForDeconstructionEvent
impl Clone for OnMarkedForDeconstructionEvent
Source§fn clone(&self) -> OnMarkedForDeconstructionEvent
fn clone(&self) -> OnMarkedForDeconstructionEvent
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 OnMarkedForDeconstructionEvent
Source§impl Default for OnMarkedForDeconstructionEvent
impl Default for OnMarkedForDeconstructionEvent
Source§fn default() -> OnMarkedForDeconstructionEvent
fn default() -> OnMarkedForDeconstructionEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnMarkedForDeconstructionEvent
Auto Trait Implementations§
impl Freeze for OnMarkedForDeconstructionEvent
impl RefUnwindSafe for OnMarkedForDeconstructionEvent
impl Send for OnMarkedForDeconstructionEvent
impl Sync for OnMarkedForDeconstructionEvent
impl Unpin for OnMarkedForDeconstructionEvent
impl UnsafeUnpin for OnMarkedForDeconstructionEvent
impl UnwindSafe for OnMarkedForDeconstructionEvent
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