Skip to main content

IUnitAIMethods

Trait IUnitAIMethods 

Source
pub trait IUnitAIMethods: IUnitAI {
Show 61 methods // Provided methods fn get_band(self) -> i32 { ... } fn set_band(self, value: impl Into<i32>) { ... } fn get_active(self) -> i32 { ... } fn set_active(self, value: impl Into<i32>) { ... } fn get_priority(self) -> i32 { ... } fn set_priority(self, value: impl Into<i32>) { ... } fn get_heal_rate_a(self) -> i32 { ... } fn set_heal_rate_a(self, value: impl Into<i32>) { ... } fn get_heal_rate_b(self) -> i32 { ... } fn set_heal_rate_b(self, value: impl Into<i32>) { ... } fn get_battle_rate_type(self) -> UnitAI_BattleRate { ... } fn set_battle_rate_type(self, value: impl Into<UnitAI_BattleRate>) { ... } fn get_prohibit_engage_attack(self) -> i32 { ... } fn set_prohibit_engage_attack(self, value: impl Into<i32>) { ... } fn get_prohibit_rod(self) -> i32 { ... } fn set_prohibit_rod(self, value: impl Into<i32>) { ... } fn get_prohibit_overlap(self) -> i32 { ... } fn set_prohibit_overlap(self, value: impl Into<i32>) { ... } fn get_rerewarp_count(self) -> i32 { ... } fn set_rerewarp_count(self, value: impl Into<i32>) { ... } fn get_rerewarp_count_max(self) -> i32 { ... } fn get_rerewarp_last_x(self) -> i32 { ... } fn get_rerewarp_last_z(self) -> i32 { ... } fn get_rerewarp_event_flag(self) -> Il2CppString { ... } fn get_move_limit(self) -> UnitAI_MoveLimitRange { ... } fn set_move_limit(self, value: impl Into<UnitAI_MoveLimitRange>) { ... } fn get_versus_type(self) -> UnitAI_VersusTypes { ... } fn set_versus_type(self, value: impl Into<UnitAI_VersusTypes>) { ... } fn get_bullet_pattern(self) -> i32 { ... } fn set_bullet_pattern(self, value: impl Into<i32>) { ... } fn get_vs_think(self) -> AIThink_Think { ... } fn set_vs_think(self, value: impl Into<AIThink_Think>) { ... } fn is_active(self) -> bool { ... } fn check_flag(self, flag: impl Into<UnitAI_Flag>) -> bool { ... } fn not_flag(self, flag: impl Into<UnitAI_Flag>) -> bool { ... } fn set_flag(self, flag: impl Into<UnitAI_Flag>) { ... } fn clear_flag(self, flag: impl Into<UnitAI_Flag>) { ... } fn mask_flag(self, flag: impl Into<UnitAI_Flag>) -> i32 { ... } fn get_sequence(self, order: impl Into<AIValue_Order>) -> Il2CppString { ... } fn get_sequence_by_index(self, order: impl Into<AIValue_Order>) -> i32 { ... } fn set_sequence( self, order: impl Into<AIValue_Order>, name: impl Into<Il2CppString>, ) { ... } fn set_sequence_2(self, order: impl Into<AIValue_Order>, v: impl Into<i32>) { ... } fn get_value( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, ) -> AIValue { ... } fn set_value( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, value: impl Into<i32>, ) { ... } fn set_value_2( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, x: impl Into<i32>, z: impl Into<i32>, ) { ... } fn set_value_3( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, str: impl Into<Il2CppString>, ) -> Il2CppString { ... } fn set_value_4( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, value: impl Into<AIValue>, ) { ... } fn set_values( self, order: impl Into<AIValue_Order>, str: impl Into<Il2CppString>, ) { ... } fn reset_random_flag(self, value: impl Into<u8>) { ... } fn get_random_flag(self) -> UnitAI_RandomFlagField { ... } fn set_rerewarp( self, count_max: impl Into<i32>, last_x: impl Into<i32>, last_z: impl Into<i32>, event_flag: impl Into<Il2CppString>, ) { ... } fn ctor(self, unit: impl Into<Unit>) { ... } fn clear(self) { ... } fn copy(self, from: impl Into<UnitAI>) { ... } fn can_use_engage_attack(self) -> bool { ... } fn setup_summon(self) { ... } fn setup_versus(self) { ... } fn set_unit_for_versus(self, unit: impl Into<Unit>) { ... } fn serialize(self, stream: impl Into<Stream_2>) { ... } fn deserialize(self, stream: impl Into<Stream_2>) { ... } fn get_value_index( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, ) -> i32 { ... }
}

Provided Methods§

Source

fn get_band(self) -> i32

get_Band() overload

Source

fn set_band(self, value: impl Into<i32>)

set_Band(i32) overload

Source

fn get_active(self) -> i32

get_Active() overload

Source

fn set_active(self, value: impl Into<i32>)

set_Active(i32) overload

Source

fn get_priority(self) -> i32

get_Priority() overload

Source

fn set_priority(self, value: impl Into<i32>)

set_Priority(i32) overload

Source

fn get_heal_rate_a(self) -> i32

get_HealRateA() overload

Source

fn set_heal_rate_a(self, value: impl Into<i32>)

set_HealRateA(i32) overload

Source

fn get_heal_rate_b(self) -> i32

get_HealRateB() overload

Source

fn set_heal_rate_b(self, value: impl Into<i32>)

set_HealRateB(i32) overload

Source

fn get_battle_rate_type(self) -> UnitAI_BattleRate

get_BattleRateType() overload

Source

fn set_battle_rate_type(self, value: impl Into<UnitAI_BattleRate>)

set_BattleRateType(crate::app::unitai::UnitAI_BattleRate) overload

Source

fn get_prohibit_engage_attack(self) -> i32

get_ProhibitEngageAttack() overload

Source

fn set_prohibit_engage_attack(self, value: impl Into<i32>)

set_ProhibitEngageAttack(i32) overload

Source

fn get_prohibit_rod(self) -> i32

get_ProhibitRod() overload

Source

fn set_prohibit_rod(self, value: impl Into<i32>)

set_ProhibitRod(i32) overload

Source

fn get_prohibit_overlap(self) -> i32

get_ProhibitOverlap() overload

Source

fn set_prohibit_overlap(self, value: impl Into<i32>)

set_ProhibitOverlap(i32) overload

Source

fn get_rerewarp_count(self) -> i32

get_RerewarpCount() overload

Source

fn set_rerewarp_count(self, value: impl Into<i32>)

set_RerewarpCount(i32) overload

Source

fn get_rerewarp_count_max(self) -> i32

get_RerewarpCountMax() overload

Source

fn get_rerewarp_last_x(self) -> i32

get_RerewarpLastX() overload

Source

fn get_rerewarp_last_z(self) -> i32

get_RerewarpLastZ() overload

Source

fn get_rerewarp_event_flag(self) -> Il2CppString

get_RerewarpEventFlag() overload

Source

fn get_move_limit(self) -> UnitAI_MoveLimitRange

get_MoveLimit() overload

Source

fn set_move_limit(self, value: impl Into<UnitAI_MoveLimitRange>)

set_MoveLimit(crate::app::unitai::UnitAI_MoveLimitRange) overload

Source

fn get_versus_type(self) -> UnitAI_VersusTypes

get_VersusType() overload

Source

fn set_versus_type(self, value: impl Into<UnitAI_VersusTypes>)

set_VersusType(crate::app::unitai::UnitAI_VersusTypes) overload

Source

fn get_bullet_pattern(self) -> i32

get_BulletPattern() overload

Source

fn set_bullet_pattern(self, value: impl Into<i32>)

set_BulletPattern(i32) overload

Source

fn get_vs_think(self) -> AIThink_Think

get_VsThink() overload

Source

fn set_vs_think(self, value: impl Into<AIThink_Think>)

set_VsThink(crate::app::aithink::AIThink_Think) overload

Source

fn is_active(self) -> bool

IsActive() overload

Source

fn check_flag(self, flag: impl Into<UnitAI_Flag>) -> bool

CheckFlag(crate::app::unitai::UnitAI_Flag) overload

Source

fn not_flag(self, flag: impl Into<UnitAI_Flag>) -> bool

NotFlag(crate::app::unitai::UnitAI_Flag) overload

Source

fn set_flag(self, flag: impl Into<UnitAI_Flag>)

SetFlag(crate::app::unitai::UnitAI_Flag) overload

Source

fn clear_flag(self, flag: impl Into<UnitAI_Flag>)

ClearFlag(crate::app::unitai::UnitAI_Flag) overload

Source

fn mask_flag(self, flag: impl Into<UnitAI_Flag>) -> i32

MaskFlag(crate::app::unitai::UnitAI_Flag) overload

Source

fn get_sequence(self, order: impl Into<AIValue_Order>) -> Il2CppString

GetSequence(crate::app::aivalue::AIValue_Order) overload

Source

fn get_sequence_by_index(self, order: impl Into<AIValue_Order>) -> i32

GetSequenceByIndex(crate::app::aivalue::AIValue_Order) overload

Source

fn set_sequence( self, order: impl Into<AIValue_Order>, name: impl Into<Il2CppString>, )

SetSequence(crate::app::aivalue::AIValue_Order, ::unity::Il2CppString) overload

Source

fn set_sequence_2(self, order: impl Into<AIValue_Order>, v: impl Into<i32>)

SetSequence(crate::app::aivalue::AIValue_Order, i32) overload

Source

fn get_value( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, ) -> AIValue

GetValue(crate::app::aivalue::AIValue_Order, i32) overload

Source

fn set_value( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, value: impl Into<i32>, )

SetValue(crate::app::aivalue::AIValue_Order, i32, i32) overload

Source

fn set_value_2( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, x: impl Into<i32>, z: impl Into<i32>, )

SetValue(crate::app::aivalue::AIValue_Order, i32, i32, i32) overload

Source

fn set_value_3( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, str: impl Into<Il2CppString>, ) -> Il2CppString

SetValue(crate::app::aivalue::AIValue_Order, i32, ::unity::Il2CppString) overload

Source

fn set_value_4( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, value: impl Into<AIValue>, )

SetValue(crate::app::aivalue::AIValue_Order, i32, crate::app::aivalue::AIValue) overload

Source

fn set_values( self, order: impl Into<AIValue_Order>, str: impl Into<Il2CppString>, )

SetValues(crate::app::aivalue::AIValue_Order, ::unity::Il2CppString) overload

Source

fn reset_random_flag(self, value: impl Into<u8>)

ResetRandomFlag(u8) overload

Source

fn get_random_flag(self) -> UnitAI_RandomFlagField

GetRandomFlag() overload

Source

fn set_rerewarp( self, count_max: impl Into<i32>, last_x: impl Into<i32>, last_z: impl Into<i32>, event_flag: impl Into<Il2CppString>, )

SetRerewarp(i32, i32, i32, ::unity::Il2CppString) overload

Source

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

.ctor(crate::app::unit::Unit) overload

Source

fn clear(self)

Clear() overload

Source

fn copy(self, from: impl Into<UnitAI>)

Copy(crate::app::unitai::UnitAI) overload

Source

fn can_use_engage_attack(self) -> bool

CanUseEngageAttack() overload

Source

fn setup_summon(self)

SetupSummon() overload

Source

fn setup_versus(self)

SetupVersus() overload

Source

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

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

Source

fn serialize(self, stream: impl Into<Stream_2>)

Serialize(crate::app::stream_2::Stream_2) overload

Source

fn deserialize(self, stream: impl Into<Stream_2>)

Deserialize(crate::app::stream_2::Stream_2) overload

Source

fn get_value_index( self, order: impl Into<AIValue_Order>, index: impl Into<i32>, ) -> i32

GetValueIndex(crate::app::aivalue::AIValue_Order, i32) 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: IUnitAI> IUnitAIMethods for __T

Available on crate feature app-unitai only.