pub struct OnScriptTriggerEffectEvent {
pub cause_entity: LuaEntity,
pub effect_id: &'static str,
pub name: &'static str,
pub quality: &'static str,
pub source_entity: LuaEntity,
pub source_position: LuaAny,
pub surface_index: u32,
pub target_entity: LuaEntity,
pub target_position: LuaAny,
pub tick: u32,
}Expand description
Called when a script trigger effect is triggered.
Fields§
§cause_entity: LuaEntity§effect_id: &'static str§name: &'static str§quality: &'static str§source_entity: LuaEntity§source_position: LuaAny§surface_index: u32§target_entity: LuaEntity§target_position: LuaAny§tick: u32Trait Implementations§
Source§impl Clone for OnScriptTriggerEffectEvent
impl Clone for OnScriptTriggerEffectEvent
Source§fn clone(&self) -> OnScriptTriggerEffectEvent
fn clone(&self) -> OnScriptTriggerEffectEvent
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 OnScriptTriggerEffectEvent
Source§impl Debug for OnScriptTriggerEffectEvent
impl Debug for OnScriptTriggerEffectEvent
Source§impl Default for OnScriptTriggerEffectEvent
impl Default for OnScriptTriggerEffectEvent
Source§fn default() -> OnScriptTriggerEffectEvent
fn default() -> OnScriptTriggerEffectEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnScriptTriggerEffectEvent
Auto Trait Implementations§
impl Freeze for OnScriptTriggerEffectEvent
impl RefUnwindSafe for OnScriptTriggerEffectEvent
impl Send for OnScriptTriggerEffectEvent
impl Sync for OnScriptTriggerEffectEvent
impl Unpin for OnScriptTriggerEffectEvent
impl UnsafeUnpin for OnScriptTriggerEffectEvent
impl UnwindSafe for OnScriptTriggerEffectEvent
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