Enum lichen::source::Src [] [src]

pub enum Src {
    Logic(StringLogic),
    If(ExpectVec<Var>, Option<Next>),
    Or(Vec<Var>, Option<Next>),
    Emit(Vec<Var>),
    Composite(StringExpectVec<String>),
    Next(Next),
    Mut(MutStringVec<Var>),
    When(WhenMap),
}

Source block statement types

Variants

Standard logic, eg: has_sword_item i

References logic in env and emits varkinds

Logic must resolve to true eg: if item_logic give_quest Can optionally end execution and begin next node

Or must follow an previous If

Or only fires when previous If logic fails

Just emits variables

A composite logic type to group logic statements together

Ends execution and begins next node

Mutate type, var being mutated, argument vars

Match-like behavior for Mutations

Map format should have Logic-Tested for the key and Mutation Function Signature for the value

Methods

impl Src
[src]

Trait Implementations

impl Debug for Src
[src]

Formats the value using the given formatter.

impl PartialEq for Src
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.