Skip to main content

engage/generated/app/
unitinfoparammanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitinfoparammanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitinfoparammanager/UnitInfoParamManager_ValueType.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct UnitInfoParamManager_ValueType {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for UnitInfoParamManager_ValueType {
24        const NAME: &'static str = "UnitInfoParamManager.ValueType";
25        const NAMESPACE: &'static str = "App";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for UnitInfoParamManager_ValueType {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl UnitInfoParamManager_ValueType {
38        pub fn max_hp() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn rating() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn attack() -> Self {
47            Self { value: 2 }
48        }
49
50        pub fn hit() -> Self {
51            Self { value: 3 }
52        }
53
54        pub fn critical() -> Self {
55            Self { value: 4 }
56        }
57
58        pub fn avoid() -> Self {
59            Self { value: 5 }
60        }
61
62        pub fn secure() -> Self {
63            Self { value: 6 }
64        }
65
66        pub fn continuous() -> Self {
67            Self { value: 7 }
68        }
69
70        pub fn str() -> Self {
71            Self { value: 8 }
72        }
73
74        pub fn magic() -> Self {
75            Self { value: 9 }
76        }
77
78        pub fn tech() -> Self {
79            Self { value: 10 }
80        }
81
82        pub fn quick() -> Self {
83            Self { value: 11 }
84        }
85
86        pub fn def() -> Self {
87            Self { value: 12 }
88        }
89
90        pub fn mdef() -> Self {
91            Self { value: 13 }
92        }
93
94        pub fn luck() -> Self {
95            Self { value: 14 }
96        }
97
98        pub fn phys() -> Self {
99            Self { value: 15 }
100        }
101
102        pub fn r#move() -> Self {
103            Self { value: 16 }
104        }
105
106        pub fn num() -> Self {
107            Self { value: 17 }
108        }
109    }
110
111    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitinfoparammanager/UnitInfoParamManager.md"))]
112    #[::unity::class(namespace = "App", name = "UnitInfoParamManager")]
113    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::unitinfoparammanager::UnitInfoParamManager>)]
114    pub struct UnitInfoParamManager {
115        #[offset(32)]
116        #[rename(name = "m_CalcUnit")]
117        pub m_calc_unit: crate::app::unit::Unit,
118        #[offset(40)]
119        #[rename(name = "m_BattleInfoParam")]
120        pub m_battle_info_param: crate::app::battleinfoparam::BattleInfoParam,
121        #[offset(48)]
122        #[rename(name = "m_CalcUnitNoGod")]
123        pub m_calc_unit_no_god: crate::app::unit::Unit,
124        #[offset(56)]
125        #[rename(name = "m_BattleInfoParamNoGod")]
126        pub m_battle_info_param_no_god: crate::app::battleinfoparam::BattleInfoParam,
127        #[offset(64)]
128        #[rename(name = "m_CalcUnitNoEffect")]
129        pub m_calc_unit_no_effect: crate::app::unit::Unit,
130        #[offset(72)]
131        #[rename(name = "m_BattleInfoParamNoEffect")]
132        pub m_battle_info_param_no_effect: crate::app::battleinfoparam::BattleInfoParam,
133        #[offset(80)]
134        #[rename(name = "m_CalcUnitNoHub")]
135        pub m_calc_unit_no_hub: crate::app::unit::Unit,
136        #[offset(88)]
137        #[rename(name = "m_BattleInfoParamNoHub")]
138        pub m_battle_info_param_no_hub: crate::app::battleinfoparam::BattleInfoParam,
139        #[offset(96)]
140        #[rename(name = "m_BattleInfo")]
141        pub m_battle_info: crate::app::battleinfo::BattleInfo,
142        #[offset(104)]
143        #[rename(name = "m_OldRingOwner")]
144        pub m_old_ring_owner: crate::app::unit::Unit,
145        #[offset(112)]
146        #[rename(name = "m_param")]
147        pub m_param: ::unity::Array<crate::app::unitparamdetail::UnitParamDetail>,
148    }
149}
150
151#[cfg(feature = "app-unitinfoparammanager-types")]
152pub use __types::*;
153
154#[cfg(feature = "app-unitinfoparammanager")]
155impl UnitInfoParamManager {
156    #[doc = "`ToGrowCapabilityType(crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType)` overload"]
157    pub fn to_grow_capability_type(
158        r#type: impl ::core::convert::Into<crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType>,
159    ) -> crate::app::capabilitydefinition::CapabilityDefinition_Type {
160        unsafe {
161            ::unity::il2cpp_call!((::unity::module_base()+0x1f932a0usize)as*mut u8,crate::app::capabilitydefinition::CapabilityDefinition_Type;
162(crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType)::core::convert::Into::into(r#type))
163        }
164    }
165
166    #[doc = "`ToValueType(crate::app::capabilitydefinition::CapabilityDefinition_Type)` overload"]
167    pub fn to_value_type(
168        r#type: impl ::core::convert::Into<crate::app::capabilitydefinition::CapabilityDefinition_Type>,
169    ) -> crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x1f932c0usize)as*mut u8,crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType;
172(crate::app::capabilitydefinition::CapabilityDefinition_Type)::core::convert::Into::into(r#type))
173        }
174    }
175}
176
177#[cfg(feature = "app-unitinfoparammanager")]
178pub trait IUnitInfoParamManagerMethods: IUnitInfoParamManager {
179    #[doc = "`.ctor()` overload"]
180    fn ctor(self) -> () {
181        unsafe {
182            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x1f8c850usize)as*mut u8,();
184(UnitInfoParamManager)__receiver)
185        }
186    }
187    #[doc = "`CopyValue(crate::app::unitparamdetail::UnitParamDetail_ValueDetail, *mut::unity::Array<i32>)` overload"]
188    fn copy_value(self, r#type: impl ::core::convert::Into<crate::app::unitparamdetail::UnitParamDetail_ValueDetail>) -> ::unity::Array<i32> {
189        unsafe {
190            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Array<i32>>::uninit();
192            ::unity::il2cpp_call!((::unity::module_base()+0x1f8cb60usize)as*mut u8,();
193(UnitInfoParamManager)__receiver,(crate::app::unitparamdetail::UnitParamDetail_ValueDetail)::core::convert::Into::into(r#type),(*mut::unity::Array<i32>)__out_0.as_mut_ptr());
194            __out_0.assume_init()
195        }
196    }
197    #[doc = "`MargeMaxEnhanceFactors(crate::app::unitenhancefactors::UnitEnhanceFactors, crate::app::unit::Unit)` overload"]
198    fn marge_max_enhance_factors(
199        self,
200        factors: impl ::core::convert::Into<crate::app::unitenhancefactors::UnitEnhanceFactors>,
201        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
202    ) -> () {
203        unsafe {
204            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x1f8cc50usize)as*mut u8,();
206(UnitInfoParamManager)__receiver,(crate::app::unitenhancefactors::UnitEnhanceFactors)::core::convert::Into::into(factors),(crate::app::unit::Unit)::core::convert::Into::into(unit))
207        }
208    }
209    #[doc = "`SetUnit(crate::app::unit::Unit, i32, i32, bool, crate::app::battleinfo::BattleInfo_Flags, bool, crate::app::godunit::GodUnit, crate::app::unitring::UnitRing)` overload"]
210    fn set_unit(
211        self,
212        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
213        x: impl ::core::convert::Into<i32>,
214        z: impl ::core::convert::Into<i32>,
215        is_diff_collect: impl ::core::convert::Into<bool>,
216        f: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo_Flags>,
217        is_god_change: impl ::core::convert::Into<bool>,
218        god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
219        ring: impl ::core::convert::Into<crate::app::unitring::UnitRing>,
220    ) -> () {
221        unsafe {
222            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x1f8cd80usize)as*mut u8,();
224(UnitInfoParamManager)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(is_diff_collect),(crate::app::battleinfo::BattleInfo_Flags)::core::convert::Into::into(f),(bool)::core::convert::Into::into(is_god_change),(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::app::unitring::UnitRing)::core::convert::Into::into(ring))
225        }
226    }
227    #[doc = "`ClearUnit(crate::app::godunit::GodUnit, crate::app::unitring::UnitRing)` overload"]
228    fn clear_unit(
229        self,
230        god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
231        ring: impl ::core::convert::Into<crate::app::unitring::UnitRing>,
232    ) -> () {
233        unsafe {
234            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x1f93190usize)as*mut u8,();
236(UnitInfoParamManager)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::app::unitring::UnitRing)::core::convert::Into::into(ring))
237        }
238    }
239    #[doc = "`GetParam(crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType)` overload"]
240    fn get_param(
241        self,
242        r#type: impl ::core::convert::Into<crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType>,
243    ) -> crate::app::unitparamdetail::UnitParamDetail {
244        unsafe {
245            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x1f93200usize)as*mut u8,crate::app::unitparamdetail::UnitParamDetail;
247(UnitInfoParamManager)__receiver,(crate::app::unitinfoparammanager::UnitInfoParamManager_ValueType)::core::convert::Into::into(r#type))
248        }
249    }
250    #[doc = "`GetParam(crate::app::capabilitydefinition::CapabilityDefinition_Type)` overload"]
251    fn get_param_2(
252        self,
253        r#type: impl ::core::convert::Into<crate::app::capabilitydefinition::CapabilityDefinition_Type>,
254    ) -> crate::app::unitparamdetail::UnitParamDetail {
255        unsafe {
256            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x1f93240usize)as*mut u8,crate::app::unitparamdetail::UnitParamDetail;
258(UnitInfoParamManager)__receiver,(crate::app::capabilitydefinition::CapabilityDefinition_Type)::core::convert::Into::into(r#type))
259        }
260    }
261    #[doc = "`GetCalcUnit()` overload"]
262    fn get_calc_unit(self) -> crate::app::unit::Unit {
263        unsafe {
264            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x1f932e0usize)as*mut u8,crate::app::unit::Unit;
266(UnitInfoParamManager)__receiver)
267        }
268    }
269    #[doc = "`GetCalcNoGod()` overload"]
270    fn get_calc_no_god(self) -> crate::app::unit::Unit {
271        unsafe {
272            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            ::unity::il2cpp_call!((::unity::module_base()+0x1f932f0usize)as*mut u8,crate::app::unit::Unit;
274(UnitInfoParamManager)__receiver)
275        }
276    }
277    #[doc = "`GetCalcNoEnhance()` overload"]
278    fn get_calc_no_enhance(self) -> crate::app::unit::Unit {
279        unsafe {
280            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281            ::unity::il2cpp_call!((::unity::module_base()+0x1f93300usize)as*mut u8,crate::app::unit::Unit;
282(UnitInfoParamManager)__receiver)
283        }
284    }
285    #[doc = "`GetCapabilityRating(crate::app::unit::Unit, crate::app::battleinfoparam::BattleInfoParam)` overload"]
286    fn get_capability_rating(
287        self,
288        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
289        info: impl ::core::convert::Into<crate::app::battleinfoparam::BattleInfoParam>,
290    ) -> i32 {
291        unsafe {
292            let __receiver = <UnitInfoParamManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293            ::unity::il2cpp_call!((::unity::module_base()+0x1f92290usize)as*mut u8,i32;
294(UnitInfoParamManager)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::battleinfoparam::BattleInfoParam)::core::convert::Into::into(info))
295        }
296    }
297}
298
299#[cfg(feature = "app-unitinfoparammanager")]
300impl<__T: IUnitInfoParamManager> IUnitInfoParamManagerMethods for __T {}
301
302#[cfg(feature = "app-unitinfoparammanager")]
303impl UnitInfoParamManager {
304    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
306    }
307
308    pub fn copy_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
310    }
311
312    pub fn marge_max_enhance_factors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
314    }
315
316    pub fn set_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
318    }
319
320    pub fn clear_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
322    }
323
324    pub fn get_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
326    }
327
328    pub fn get_param_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
330    }
331
332    pub fn to_grow_capability_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
334    }
335
336    pub fn to_value_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
338    }
339
340    pub fn get_calc_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
342    }
343
344    pub fn get_calc_no_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
346    }
347
348    pub fn get_calc_no_enhance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
350    }
351
352    pub fn get_capability_rating_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
354    }
355}
356
357#[cfg(feature = "app-unitinfoparammanager")]
358impl UnitInfoParamManager {
359    #[doc = "`.ctor()` — no args"]
360    pub fn new() -> Self {
361        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
362            panic!(
363                "{}
364::{}
365 failed to instantiate",
366                ::core::stringify!(UnitInfoParamManager),
367                ::core::stringify!(new),
368            )
369        });
370        <Self as IUnitInfoParamManagerMethods>::ctor(this);
371        this
372    }
373}
374
375#[cfg(feature = "app-unitinfoparammanager")]
376#[doc(hidden)]
377pub mod prelude {
378    pub use super::{IUnitInfoParamManager, IUnitInfoParamManagerMethods, UnitInfoParamManager, UnitInfoParamManager_ValueType};
379    #[cfg(feature = "app-singletonclass_1")]
380    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
381    #[cfg(feature = "system-object")]
382    pub use crate::system::object::IObjectMethods;
383    #[cfg(feature = "system-enum")]
384    pub use crate::system::r#enum::IEnumMethods;
385    #[cfg(feature = "system-valuetype")]
386    pub use crate::system::valuetype::IValueTypeMethods;
387    pub use crate::{
388        app::singletonclass_1::ISingletonClass_1,
389        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
390    };
391}