[][src]Enum sulis_state::script::script_callback::FuncKind

pub enum FuncKind {
    OnSwapWeapons,
    OnHeldChanged,
    OnEffectApplied,
    OnMenuSelect,
    OnRemoved,
    OnDamaged,
    BeforeAttack,
    AfterAttack,
    AfterDefense,
    BeforeDefense,
    OnAnimComplete,
    OnAnimUpdate,
    OnRoundElapsed,
    OnMoved,
    OnSurfaceRoundElapsed,
    OnMovedInSurface,
    OnEnteredSurface,
    OnExitedSurface,
    OnActivated,
    OnDeactivated,
}

A type of callback function for a CallbackData object.

Variants

OnSwapWeapons

Save compatibility only. TODO remove this after a while

OnHeldChanged

Called when an entity swaps their weapon set

OnEffectApplied

Called when a new effect is applied to a parent

OnMenuSelect

Called when a menu option is selected in a custom menu

OnRemoved

Called whenever an effect is removed from a parent

OnDamaged

Called whenver a parent entity loses hit points

BeforeAttack

Called on the attacking entity immediately before the attack is rolled Only applies to standard weapon attacks.

AfterAttack

Called on the attacking entity immediately after the attack is rolled. Only applies to standard weapon attacks.

AfterDefense

Called on the defending entity immediately after the attack is rolled. Only applies to standard weapon attacks.

BeforeDefense

Called on the defending entity immediately before the attack is rolled. Only applies to standard weapon attacks.

OnAnimComplete

Called whenever an animation copmletes, due to its duration elapsing or the owning effect being removed.

OnAnimUpdate

Called at a specific time elapsed on an animation update.

OnRoundElapsed

Called once each time a round elapses for the parent

OnMoved

Called each time an entity moves a square

OnSurfaceRoundElapsed

Only relevant for surfaces. Called once each time a round elapses for the surface effect, including a list of all affected entities as targets.

OnMovedInSurface

Called each time an entity moves within a given surface. Controlled by set_squares_to_fire_on_moved

OnEnteredSurface

Called when an entity enters a surface

OnExitedSurface

Called when an entity exits a surface

OnActivated

Called when an ability is activated

OnDeactivated

Called whena an ability mode is deactivated

Trait Implementations

impl Clone for FuncKind[src]

impl Copy for FuncKind[src]

impl Debug for FuncKind[src]

impl<'de> Deserialize<'de> for FuncKind[src]

impl Eq for FuncKind[src]

impl Hash for FuncKind[src]

impl Ord for FuncKind[src]

impl PartialEq<FuncKind> for FuncKind[src]

impl PartialOrd<FuncKind> for FuncKind[src]

impl Serialize for FuncKind[src]

impl StructuralEq for FuncKind[src]

impl StructuralPartialEq for FuncKind[src]

Auto Trait Implementations

impl RefUnwindSafe for FuncKind

impl Send for FuncKind

impl Sync for FuncKind

impl Unpin for FuncKind

impl UnwindSafe for FuncKind

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]