Skip to main content

IForceMethods

Trait IForceMethods 

Source
pub trait IForceMethods: IForce {
Show 21 methods // Provided methods fn initialize(self, type: impl Into<Force_Type>) { ... } fn join_first(self, unit: impl Into<Unit>) { ... } fn join_last(self, unit: impl Into<Unit>) { ... } fn insert(self, ins_unit: impl Into<Unit>, prev_unit: impl Into<Unit>) { ... } fn remove(self, unit: impl Into<Unit>) { ... } fn transfer(self, type: impl Into<Force_Type>, is_last: impl Into<bool>) { ... } fn transfer_for_sortie( self, type: impl Into<Force_Type>, is_last: impl Into<bool>, ) { ... } fn is_allied(self, type: impl Into<Force_Type>) -> bool { ... } fn get_count(self) -> i32 { ... } fn get_index(self, target: impl Into<Unit>) -> i32 { ... } fn get_hero_unit(self) -> Unit { ... } fn get_unit_from_person(self, person: impl Into<PersonData>) -> Unit { ... } fn get_unit_from_person_2(self, pid: impl Into<Il2CppString>) -> Unit { ... } fn get_unit_from_face( self, person: impl Into<PersonData>, consider_relay: impl Into<bool>, ) -> Unit { ... } fn get_first(self) -> Unit { ... } fn set_first(self, value: impl Into<Unit>) { ... } fn get_last(self) -> Unit { ... } fn set_last(self, value: impl Into<Unit>) { ... } fn get_force_type(self) -> Force_Type { ... } fn get_force_mask(self) -> u32 { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn initialize(self, type: impl Into<Force_Type>)

Initialize(crate::app::force::Force_Type) overload

Source

fn join_first(self, unit: impl Into<Unit>)

JoinFirst(crate::app::unit::Unit) overload

Source

fn join_last(self, unit: impl Into<Unit>)

JoinLast(crate::app::unit::Unit) overload

Source

fn insert(self, ins_unit: impl Into<Unit>, prev_unit: impl Into<Unit>)

Insert(crate::app::unit::Unit, crate::app::unit::Unit) overload

Source

fn remove(self, unit: impl Into<Unit>)

Remove(crate::app::unit::Unit) overload

Source

fn transfer(self, type: impl Into<Force_Type>, is_last: impl Into<bool>)

Transfer(crate::app::force::Force_Type, bool) overload

Source

fn transfer_for_sortie( self, type: impl Into<Force_Type>, is_last: impl Into<bool>, )

TransferForSortie(crate::app::force::Force_Type, bool) overload

Source

fn is_allied(self, type: impl Into<Force_Type>) -> bool

IsAllied(crate::app::force::Force_Type) overload

Source

fn get_count(self) -> i32

GetCount() overload

Source

fn get_index(self, target: impl Into<Unit>) -> i32

GetIndex(crate::app::unit::Unit) overload

Source

fn get_hero_unit(self) -> Unit

GetHeroUnit() overload

Source

fn get_unit_from_person(self, person: impl Into<PersonData>) -> Unit

GetUnitFromPerson(crate::app::persondata::PersonData) overload

Source

fn get_unit_from_person_2(self, pid: impl Into<Il2CppString>) -> Unit

GetUnitFromPerson(::unity::Il2CppString) overload

Source

fn get_unit_from_face( self, person: impl Into<PersonData>, consider_relay: impl Into<bool>, ) -> Unit

GetUnitFromFace(crate::app::persondata::PersonData, bool) overload

Source

fn get_first(self) -> Unit

get_First() overload

Source

fn set_first(self, value: impl Into<Unit>)

set_First(crate::app::unit::Unit) overload

Source

fn get_last(self) -> Unit

get_Last() overload

Source

fn set_last(self, value: impl Into<Unit>)

set_Last(crate::app::unit::Unit) overload

Source

fn get_force_type(self) -> Force_Type

get_ForceType() overload

Source

fn get_force_mask(self) -> u32

get_ForceMask() overload

Source

fn ctor(self)

.ctor() 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: IForce> IForceMethods for __T

Available on crate feature app-force only.