pub struct ScriptRaisedDestroyEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub tick: u32,
}Expand description
A static event mods can use to tell other mods they destroyed something by script. This event is only raised if a mod does so with LuaBootstrap::raise_event or LuaBootstrap::raise_script_destroy, or when raise_destroy is passed to LuaEntity::destroy.
Fields§
§entity: LuaEntity§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for ScriptRaisedDestroyEvent
impl Clone for ScriptRaisedDestroyEvent
Source§fn clone(&self) -> ScriptRaisedDestroyEvent
fn clone(&self) -> ScriptRaisedDestroyEvent
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 ScriptRaisedDestroyEvent
Source§impl Debug for ScriptRaisedDestroyEvent
impl Debug for ScriptRaisedDestroyEvent
Source§impl Default for ScriptRaisedDestroyEvent
impl Default for ScriptRaisedDestroyEvent
Source§fn default() -> ScriptRaisedDestroyEvent
fn default() -> ScriptRaisedDestroyEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScriptRaisedDestroyEvent
impl PartialEq for ScriptRaisedDestroyEvent
impl StructuralPartialEq for ScriptRaisedDestroyEvent
Auto Trait Implementations§
impl Freeze for ScriptRaisedDestroyEvent
impl RefUnwindSafe for ScriptRaisedDestroyEvent
impl Send for ScriptRaisedDestroyEvent
impl Sync for ScriptRaisedDestroyEvent
impl Unpin for ScriptRaisedDestroyEvent
impl UnsafeUnpin for ScriptRaisedDestroyEvent
impl UnwindSafe for ScriptRaisedDestroyEvent
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