[][src]Struct sulis_state::script::Script

pub struct Script {}

Script Helper module for easily calling various script methods

Implementations

impl Script[src]

pub fn ai(parent: &Rc<RefCell<EntityState>>, func: &str) -> State[src]

pub fn entity(
    parent: &Rc<RefCell<EntityState>>,
    targets: ScriptEntitySet,
    func: &str
)
[src]

pub fn entity_with_attack_data(
    parent: &Rc<RefCell<EntityState>>,
    targets: ScriptEntitySet,
    kind: HitKind,
    damage: Vec<(DamageKind, u32)>,
    func: &str
)
[src]

pub fn entity_with_arg<T>(
    parent: &Rc<RefCell<EntityState>>,
    targets: ScriptEntitySet,
    arg: T,
    func: &str
) where
    T: UserData + Send + 'static, 
[src]

pub fn item_on_activate(
    parent: &Rc<RefCell<EntityState>>,
    func: String,
    kind: ScriptItemKind
)
[src]

pub fn item(
    parent: &Rc<RefCell<EntityState>>,
    kind: ScriptItemKind,
    targets: ScriptEntitySet,
    func: &str
)
[src]

pub fn item_with_attack_data(
    parent: &Rc<RefCell<EntityState>>,
    i_kind: ScriptItemKind,
    targets: ScriptEntitySet,
    kind: HitKind,
    damage: Vec<(DamageKind, u32)>,
    func: &str
)
[src]

pub fn item_with_arg<T>(
    parent: &Rc<RefCell<EntityState>>,
    i_kind: ScriptItemKind,
    targets: ScriptEntitySet,
    arg: T,
    func: &str
) where
    T: UserData + Send + 'static, 
[src]

pub fn item_on_target_select(
    parent: &Rc<RefCell<EntityState>>,
    kind: ScriptItemKind,
    targets: Vec<Option<Rc<RefCell<EntityState>>>>,
    selected_point: Point,
    affected_points: Vec<Point>,
    func: &str,
    custom_target: Option<Rc<RefCell<EntityState>>>
)
[src]

pub fn ability_on_deactivate(parent: usize, ability: &Rc<Ability>)[src]

pub fn ability_on_activate(parent: usize, func: String, ability: &Rc<Ability>)[src]

pub fn ability_on_target_select(
    parent: &Rc<RefCell<EntityState>>,
    ability: &Rc<Ability>,
    targets: Vec<Option<Rc<RefCell<EntityState>>>>,
    selected_point: Point,
    affected_points: Vec<Point>,
    func: &str,
    custom_target: Option<Rc<RefCell<EntityState>>>
)
[src]

pub fn ability_with_attack_data(
    parent: &Rc<RefCell<EntityState>>,
    ability: &Rc<Ability>,
    targets: ScriptEntitySet,
    kind: HitKind,
    damage: Vec<(DamageKind, u32)>,
    func: &str
)
[src]

pub fn ability_with_arg<T>(
    parent: &Rc<RefCell<EntityState>>,
    ability: &Rc<Ability>,
    targets: ScriptEntitySet,
    arg: T,
    func: &str
) where
    T: UserData + Send + 'static, 
[src]

pub fn ability(
    parent: &Rc<RefCell<EntityState>>,
    ability: &Rc<Ability>,
    targets: ScriptEntitySet,
    func: &str
)
[src]

pub fn trigger<Arg>(script_id: &str, func: &str, arg: Arg) where
    Arg: for<'a> ToLuaMulti<'a>, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for Script

impl Send for Script

impl Sync for Script

impl Unpin for Script

impl UnwindSafe for Script

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]