pub struct TriggerAst {
pub name: String,
pub note: Option<String>,
pub src_line: usize,
pub event: ConditionAst,
pub conditions: Vec<ConditionAst>,
pub actions: Vec<ActionStmt>,
pub only_once: bool,
}Expand description
A minimal AST for a single trigger.
Fields§
§name: StringHuman-readable trigger name.
note: Option<String>Optional developer note for this trigger.
src_line: usize1-based line number in the source file where this trigger starts.
event: ConditionAstThe event condition that triggers this (e.g., enter room, take item, talk to npc).
conditions: Vec<ConditionAst>List of conditions (currently only missing-flag).
actions: Vec<ActionStmt>List of actions supported in this minimal version.
only_once: boolIf true, the trigger should only fire once.
Trait Implementations§
Source§impl Clone for TriggerAst
impl Clone for TriggerAst
Source§fn clone(&self) -> TriggerAst
fn clone(&self) -> TriggerAst
Returns a duplicate of the value. Read more
1.0.0 · 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 TriggerAst
impl Debug for TriggerAst
Source§impl PartialEq for TriggerAst
impl PartialEq for TriggerAst
impl StructuralPartialEq for TriggerAst
Auto Trait Implementations§
impl Freeze for TriggerAst
impl RefUnwindSafe for TriggerAst
impl Send for TriggerAst
impl Sync for TriggerAst
impl Unpin for TriggerAst
impl UnwindSafe for TriggerAst
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