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