Skip to main content

IActionObservableMethods

Trait IActionObservableMethods 

Source
pub trait IActionObservableMethods: IActionObservable {
    // Provided methods
    fn ctor(self, chr: impl Into<Character>, phase: impl Into<Phase>) { ... }
    fn on_enter(self) { ... }
    fn on_update(self) { ... }
    fn on_exit(self) { ... }
    fn on_enter_attack(self) { ... }
    fn on_hit_passed(self, ev: impl Into<AnimationEvent>) { ... }
}

Provided Methods§

Source

fn ctor(self, chr: impl Into<Character>, phase: impl Into<Phase>)

.ctor(crate::combat::character::Character, crate::combat::phase::Phase) overload

Source

fn on_enter(self)

OnEnter() overload

Source

fn on_update(self)

OnUpdate() overload

Source

fn on_exit(self)

OnExit() overload

Source

fn on_enter_attack(self)

OnEnterAttack() overload

Source

fn on_hit_passed(self, ev: impl Into<AnimationEvent>)

OnHitPassed(crate::unity_engine::animationevent::AnimationEvent) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IActionObservable> IActionObservableMethods for __T

Available on crate feature combat-actionobservable only.