pub struct TriggerDef {
pub script_name: String,
pub trigger_type: TriggerType,
}Expand description
A trigger definition bound to a metatile.
Fields§
§script_name: StringName of the script (or event handler) to execute.
trigger_type: TriggerTypeWhen the trigger fires.
Trait Implementations§
Source§impl Clone for TriggerDef
impl Clone for TriggerDef
Source§fn clone(&self) -> TriggerDef
fn clone(&self) -> TriggerDef
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 moreSource§impl Debug for TriggerDef
impl Debug for TriggerDef
impl Eq for TriggerDef
Source§impl PartialEq for TriggerDef
impl PartialEq for TriggerDef
impl StructuralPartialEq for TriggerDef
Auto Trait Implementations§
impl Freeze for TriggerDef
impl RefUnwindSafe for TriggerDef
impl Send for TriggerDef
impl Sync for TriggerDef
impl Unpin for TriggerDef
impl UnsafeUnpin for TriggerDef
impl UnwindSafe for TriggerDef
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