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§
Sourcefn initialize(self, type: impl Into<Force_Type>)
fn initialize(self, type: impl Into<Force_Type>)
Initialize(crate::app::force::Force_Type) overload
Sourcefn join_first(self, unit: impl Into<Unit>)
fn join_first(self, unit: impl Into<Unit>)
JoinFirst(crate::app::unit::Unit) overload
Sourcefn insert(self, ins_unit: impl Into<Unit>, prev_unit: impl Into<Unit>)
fn insert(self, ins_unit: impl Into<Unit>, prev_unit: impl Into<Unit>)
Insert(crate::app::unit::Unit, crate::app::unit::Unit) overload
Sourcefn transfer(self, type: impl Into<Force_Type>, is_last: impl Into<bool>)
fn transfer(self, type: impl Into<Force_Type>, is_last: impl Into<bool>)
Transfer(crate::app::force::Force_Type, bool) overload
Sourcefn transfer_for_sortie(
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>, )
TransferForSortie(crate::app::force::Force_Type, bool) overload
Sourcefn is_allied(self, type: impl Into<Force_Type>) -> bool
fn is_allied(self, type: impl Into<Force_Type>) -> bool
IsAllied(crate::app::force::Force_Type) overload
Sourcefn get_hero_unit(self) -> Unit
fn get_hero_unit(self) -> Unit
GetHeroUnit() overload
Sourcefn get_unit_from_person(self, person: impl Into<PersonData>) -> Unit
fn get_unit_from_person(self, person: impl Into<PersonData>) -> Unit
GetUnitFromPerson(crate::app::persondata::PersonData) overload
Sourcefn get_unit_from_person_2(self, pid: impl Into<Il2CppString>) -> Unit
fn get_unit_from_person_2(self, pid: impl Into<Il2CppString>) -> Unit
GetUnitFromPerson(::unity::Il2CppString) overload
Sourcefn get_unit_from_face(
self,
person: impl Into<PersonData>,
consider_relay: impl Into<bool>,
) -> Unit
fn get_unit_from_face( self, person: impl Into<PersonData>, consider_relay: impl Into<bool>, ) -> Unit
GetUnitFromFace(crate::app::persondata::PersonData, bool) overload
Sourcefn get_force_type(self) -> Force_Type
fn get_force_type(self) -> Force_Type
get_ForceType() overload
Sourcefn get_force_mask(self) -> u32
fn get_force_mask(self) -> u32
get_ForceMask() 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: IForce> IForceMethods for __T
Available on crate feature
app-force only.