pub struct ScriptRaisedSetTilesEvent {
pub name: &'static str,
pub surface_index: u32,
pub tick: u32,
pub tiles: &'static [LuaAny],
}Expand description
A static event mods can use to tell other mods they changed tiles on a surface by script. This event is only raised if a mod does so with LuaBootstrap::raise_event or LuaBootstrap::raise_script_set_tiles, or when raise_event is passed to LuaSurface::set_tiles.
Fields§
§name: &'static str§surface_index: u32§tick: u32§tiles: &'static [LuaAny]Trait Implementations§
Source§impl Clone for ScriptRaisedSetTilesEvent
impl Clone for ScriptRaisedSetTilesEvent
Source§fn clone(&self) -> ScriptRaisedSetTilesEvent
fn clone(&self) -> ScriptRaisedSetTilesEvent
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 ScriptRaisedSetTilesEvent
Source§impl Debug for ScriptRaisedSetTilesEvent
impl Debug for ScriptRaisedSetTilesEvent
Source§impl Default for ScriptRaisedSetTilesEvent
impl Default for ScriptRaisedSetTilesEvent
Source§fn default() -> ScriptRaisedSetTilesEvent
fn default() -> ScriptRaisedSetTilesEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ScriptRaisedSetTilesEvent
Auto Trait Implementations§
impl Freeze for ScriptRaisedSetTilesEvent
impl RefUnwindSafe for ScriptRaisedSetTilesEvent
impl Send for ScriptRaisedSetTilesEvent
impl Sync for ScriptRaisedSetTilesEvent
impl Unpin for ScriptRaisedSetTilesEvent
impl UnsafeUnpin for ScriptRaisedSetTilesEvent
impl UnwindSafe for ScriptRaisedSetTilesEvent
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