Skip to main content

ICharacterEffectMethods

Trait ICharacterEffectMethods 

Source
pub trait ICharacterEffectMethods: ICharacterEffect {
    // Provided methods
    fn ctor(self, chr: impl Into<Character>) { ... }
    fn create(
        self,
        prefab: impl Into<GameObject>,
        parent: impl Into<Transform>,
    ) -> GameObject { ... }
    fn create_hit(
        self,
        slash_type: impl Into<SlashType>,
        effect_level: impl Into<i32>,
    ) -> TR { ... }
    fn create_pairing_hit(self, prefab: impl Into<GameObject>) -> TR { ... }
    fn get_hit_effect_name(
        self,
        slash_type: impl Into<SlashType>,
        level: impl Into<i32>,
    ) -> Il2CppString { ... }
    fn create_guard(self) { ... }
    fn create_parry(self) { ... }
    fn create_efficacy_hit(self) { ... }
    fn create_break(self) { ... }
    fn create_smash(self) { ... }
}

Provided Methods§

Source

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

.ctor(crate::combat::character::Character) overload

Source

fn create( self, prefab: impl Into<GameObject>, parent: impl Into<Transform>, ) -> GameObject

Create(crate::unity_engine::gameobject::GameObject, crate::unity_engine::transform::Transform) overload

Source

fn create_hit( self, slash_type: impl Into<SlashType>, effect_level: impl Into<i32>, ) -> TR

CreateHit(*mutcrate::combat::tr::TR, crate::combat::slashtype::SlashType, i32) overload

Source

fn create_pairing_hit(self, prefab: impl Into<GameObject>) -> TR

CreatePairingHit(crate::unity_engine::gameobject::GameObject, *mutcrate::combat::tr::TR) overload

Source

fn get_hit_effect_name( self, slash_type: impl Into<SlashType>, level: impl Into<i32>, ) -> Il2CppString

GetHitEffectName(crate::combat::slashtype::SlashType, i32) overload

Source

fn create_guard(self)

CreateGuard() overload

Source

fn create_parry(self)

CreateParry() overload

Source

fn create_efficacy_hit(self)

CreateEfficacyHit() overload

Source

fn create_break(self)

CreateBreak() overload

Source

fn create_smash(self)

CreateSmash() 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: ICharacterEffect> ICharacterEffectMethods for __T

Available on crate feature combat-charactereffect only.