pub struct OnObjectDestroyedEvent {
pub name: &'static str,
pub registration_number: u64,
pub tick: u32,
pub type: &'static str,
pub useful_id: u64,
}Expand description
Called after an object is destroyed which was registered with LuaBootstrap::register_on_object_destroyed previously.
Depending on when a given object is destroyed, this event will be fired at the end of the current tick or at the end of the next tick. The event’s timing is independent of the in-world object being destroyed.
Fields§
§name: &'static str§registration_number: u64§tick: u32§type: &'static str§useful_id: u64Trait Implementations§
Source§impl Clone for OnObjectDestroyedEvent
impl Clone for OnObjectDestroyedEvent
Source§fn clone(&self) -> OnObjectDestroyedEvent
fn clone(&self) -> OnObjectDestroyedEvent
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 OnObjectDestroyedEvent
Source§impl Debug for OnObjectDestroyedEvent
impl Debug for OnObjectDestroyedEvent
Source§impl Default for OnObjectDestroyedEvent
impl Default for OnObjectDestroyedEvent
Source§fn default() -> OnObjectDestroyedEvent
fn default() -> OnObjectDestroyedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnObjectDestroyedEvent
impl PartialEq for OnObjectDestroyedEvent
impl StructuralPartialEq for OnObjectDestroyedEvent
Auto Trait Implementations§
impl Freeze for OnObjectDestroyedEvent
impl RefUnwindSafe for OnObjectDestroyedEvent
impl Send for OnObjectDestroyedEvent
impl Sync for OnObjectDestroyedEvent
impl Unpin for OnObjectDestroyedEvent
impl UnsafeUnpin for OnObjectDestroyedEvent
impl UnwindSafe for OnObjectDestroyedEvent
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