[−][src]Struct sulis_state::script::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]
parent: &Rc<RefCell<EntityState>>,
targets: ScriptEntitySet,
func: &str
)
pub fn entity_with_attack_data(
parent: &Rc<RefCell<EntityState>>,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
[src]
parent: &Rc<RefCell<EntityState>>,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
pub fn entity_with_arg<T>(
parent: &Rc<RefCell<EntityState>>,
targets: ScriptEntitySet,
arg: T,
func: &str
) where
T: UserData + Send + 'static,
[src]
parent: &Rc<RefCell<EntityState>>,
targets: ScriptEntitySet,
arg: T,
func: &str
) where
T: UserData + Send + 'static,
pub fn item_on_activate(
parent: &Rc<RefCell<EntityState>>,
func: String,
kind: ScriptItemKind
)
[src]
parent: &Rc<RefCell<EntityState>>,
func: String,
kind: ScriptItemKind
)
pub fn item(
parent: &Rc<RefCell<EntityState>>,
kind: ScriptItemKind,
targets: ScriptEntitySet,
func: &str
)
[src]
parent: &Rc<RefCell<EntityState>>,
kind: ScriptItemKind,
targets: ScriptEntitySet,
func: &str
)
pub fn item_with_attack_data(
parent: &Rc<RefCell<EntityState>>,
i_kind: ScriptItemKind,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
[src]
parent: &Rc<RefCell<EntityState>>,
i_kind: ScriptItemKind,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
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]
parent: &Rc<RefCell<EntityState>>,
i_kind: ScriptItemKind,
targets: ScriptEntitySet,
arg: T,
func: &str
) where
T: UserData + Send + 'static,
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]
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>>>
)
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]
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>>>
)
pub fn ability_with_attack_data(
parent: &Rc<RefCell<EntityState>>,
ability: &Rc<Ability>,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
[src]
parent: &Rc<RefCell<EntityState>>,
ability: &Rc<Ability>,
targets: ScriptEntitySet,
kind: HitKind,
damage: Vec<(DamageKind, u32)>,
func: &str
)
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]
parent: &Rc<RefCell<EntityState>>,
ability: &Rc<Ability>,
targets: ScriptEntitySet,
arg: T,
func: &str
) where
T: UserData + Send + 'static,
pub fn ability(
parent: &Rc<RefCell<EntityState>>,
ability: &Rc<Ability>,
targets: ScriptEntitySet,
func: &str
)
[src]
parent: &Rc<RefCell<EntityState>>,
ability: &Rc<Ability>,
targets: ScriptEntitySet,
func: &str
)
pub fn trigger<Arg>(script_id: &str, func: &str, arg: Arg) where
Arg: for<'a> ToLuaMulti<'a>,
[src]
Arg: for<'a> ToLuaMulti<'a>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,