pub enum TriggerType {
OnStep,
OnEnter,
OnInteract,
}Expand description
When a trigger associated with a metatile fires.
Variants§
OnStep
Fires every frame the player (or NPC) stands on the tile.
OnEnter
Fires once when the entity enters the metatile’s area.
OnInteract
Fires when the player presses the A button facing the metatile.
Trait Implementations§
Source§impl Clone for TriggerType
impl Clone for TriggerType
Source§fn clone(&self) -> TriggerType
fn clone(&self) -> TriggerType
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 TriggerType
Source§impl Debug for TriggerType
impl Debug for TriggerType
impl Eq for TriggerType
Source§impl PartialEq for TriggerType
impl PartialEq for TriggerType
impl StructuralPartialEq for TriggerType
Auto Trait Implementations§
impl Freeze for TriggerType
impl RefUnwindSafe for TriggerType
impl Send for TriggerType
impl Sync for TriggerType
impl Unpin for TriggerType
impl UnsafeUnpin for TriggerType
impl UnwindSafe for TriggerType
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