[][src]Struct brawllib_rs::script_runner::ScriptRunner

pub struct ScriptRunner<'a> {
    pub call_stacks: Vec<CallStack<'a>>,
    pub all_scripts: &'a [&'a ScriptAst],
    pub variables: HashMap<i32, i32>,
    pub visited_gotos: Vec<u32>,
    pub frame_index: f32,
    pub interruptible: bool,
    pub hitboxes: [Option<ScriptHitBox>; 7],
    pub frame_speed_modifier: f32,
    pub airbourne: bool,
    pub edge_slide: EdgeSlide,
    pub change_sub_action: ChangeSubAction,
    pub hitlist_reset: bool,
    pub slope_contour_stand: Option<i32>,
    pub slope_contour_full: Option<(i32, i32)>,
    pub rumble: Option<(i32, i32)>,
    pub rumble_loop: Option<(i32, i32)>,
}

Fields

call_stacks: Vec<CallStack<'a>>all_scripts: &'a [&'a ScriptAst]variables: HashMap<i32, i32>visited_gotos: Vec<u32>frame_index: f32interruptible: boolhitboxes: [Option<ScriptHitBox>; 7]frame_speed_modifier: f32airbourne: booledge_slide: EdgeSlidechange_sub_action: ChangeSubActionhitlist_reset: boolslope_contour_stand: Option<i32>slope_contour_full: Option<(i32, i32)>rumble: Option<(i32, i32)>rumble_loop: Option<(i32, i32)>

Methods

impl<'a> ScriptRunner<'a>
[src]

pub fn new(
    action_scripts: &[&'a ScriptAst],
    all_scripts: &'a [&'a ScriptAst]
) -> ScriptRunner<'a>
[src]

pub fn step(&mut self, action_name: &str)
[src]

Auto Trait Implementations

impl<'a> Send for ScriptRunner<'a>

impl<'a> Sync for ScriptRunner<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]