pub trait ILaunchBehaviourMethods: ILaunchBehaviour {
Show 15 methods
// Provided methods
fn get_cp(self) -> Character { ... }
fn get_weapon_instance(self) -> GameObject { ... }
fn set_weapon_instance(self, value: impl Into<GameObject>) { ... }
fn on_character_setup(self, owner: impl Into<Character>) { ... }
fn on_enter_attack(self) { ... }
fn on_hit_time_predicted(self, world_hit_time: impl Into<f32>) { ... }
fn recalc_flying_time(self) { ... }
fn get_flying_time(self) -> f32 { ... }
fn set_flying_time(self, value: impl Into<f32>) { ... }
fn get_world_hit_time(self) -> f32 { ... }
fn set_world_hit_time(self, value: impl Into<f32>) { ... }
fn stop(self) { ... }
fn on_destroy(self) { ... }
fn make_avoid_observer(
self,
chr: impl Into<Character>,
time_to_hit: impl Into<f32>,
) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_weapon_instance(self) -> GameObject
fn get_weapon_instance(self) -> GameObject
get_WeaponInstance() overload
Sourcefn set_weapon_instance(self, value: impl Into<GameObject>)
fn set_weapon_instance(self, value: impl Into<GameObject>)
set_WeaponInstance(crate::unity_engine::gameobject::GameObject) overload
Sourcefn on_character_setup(self, owner: impl Into<Character>)
fn on_character_setup(self, owner: impl Into<Character>)
OnCharacterSetup(crate::combat::character::Character) overload
Sourcefn on_enter_attack(self)
fn on_enter_attack(self)
OnEnterAttack() overload
Sourcefn on_hit_time_predicted(self, world_hit_time: impl Into<f32>)
fn on_hit_time_predicted(self, world_hit_time: impl Into<f32>)
OnHitTimePredicted(f32) overload
Sourcefn recalc_flying_time(self)
fn recalc_flying_time(self)
RecalcFlyingTime() overload
Sourcefn get_flying_time(self) -> f32
fn get_flying_time(self) -> f32
get_FlyingTime() overload
Sourcefn set_flying_time(self, value: impl Into<f32>)
fn set_flying_time(self, value: impl Into<f32>)
set_FlyingTime(f32) overload
Sourcefn get_world_hit_time(self) -> f32
fn get_world_hit_time(self) -> f32
get_WorldHitTime() overload
Sourcefn set_world_hit_time(self, value: impl Into<f32>)
fn set_world_hit_time(self, value: impl Into<f32>)
set_WorldHitTime(f32) overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn make_avoid_observer(
self,
chr: impl Into<Character>,
time_to_hit: impl Into<f32>,
)
fn make_avoid_observer( self, chr: impl Into<Character>, time_to_hit: impl Into<f32>, )
MakeAvoidObserver(crate::combat::character::Character, f32) 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§
impl<__T: ILaunchBehaviour> ILaunchBehaviourMethods for __T
Available on crate feature
combat-launchbehaviour only.