Skip to main content

engage/generated/app/
mapgodexp.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapgodexp-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/mapgodexp/MapGodExp_Kinds.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct MapGodExp_Kinds {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for MapGodExp_Kinds {
24        const NAME: &'static str = "MapGodExp.Kinds";
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 MapGodExp_Kinds {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl MapGodExp_Kinds {
38        pub fn fixed() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn battle() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn rod() -> Self {
47            Self { value: 2 }
48        }
49
50        pub fn command_skill() -> Self {
51            Self { value: 3 }
52        }
53
54        pub fn engage_attack() -> Self {
55            Self { value: 4 }
56        }
57
58        pub fn kill() -> Self {
59            Self { value: 5 }
60        }
61
62        pub fn num() -> Self {
63            Self { value: 6 }
64        }
65    }
66
67    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapgodexp/MapGodExp_KindDesc.md"))]
68    #[repr(C)]
69    #[derive(::core::clone::Clone, ::core::marker::Copy)]
70    pub struct MapGodExp_KindDesc {
71        pub param_name: ::unity::Il2CppString,
72        pub is_multi: bool,
73    }
74    impl ::unity::ClassIdentity for MapGodExp_KindDesc {
75        const NAME: &'static str = "MapGodExp.KindDesc";
76        const NAMESPACE: &'static str = "App";
77
78        fn class() -> ::unity::Class {
79            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
80            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
81        }
82    }
83    impl ::unity::IlType for MapGodExp_KindDesc {
84        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
85            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
86        }
87    }
88
89    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapgodexp/MapGodExp.md"))]
90    #[::unity::class(namespace = "App", name = "MapGodExp")]
91    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapgodexp::MapGodExp>)]
92    pub struct MapGodExp {
93        #[offset(32)]
94        #[rename(name = "m_AddFlag")]
95        pub m_add_flag: crate::app::bitfield32::BitField32,
96        #[offset(40)]
97        #[rename(name = "m_CommitUnit")]
98        pub m_commit_unit: crate::app::unit::Unit,
99        #[offset(48)]
100        #[rename(name = "m_CommitGodUnit")]
101        pub m_commit_god_unit: crate::app::godunit::GodUnit,
102        #[offset(56)]
103        #[rename(name = "m_Exp")]
104        pub m_exp: i32,
105        #[offset(60)]
106        #[rename(name = "m_Dirty")]
107        pub m_dirty: i32,
108        #[static_field]
109        #[rename(name = "KindDescs")]
110        pub kind_descs: ::unity::Array<crate::app::mapgodexp::MapGodExp_KindDesc>,
111        #[static_field]
112        #[rename(name = "EngageParamNameSuffix")]
113        pub engage_param_name_suffix: ::unity::Il2CppString,
114        #[static_field]
115        #[rename(name = "RingDirtyKindDescs")]
116        pub ring_dirty_kind_descs: ::unity::Array<crate::app::mapgodexp::MapGodExp_KindDesc>,
117    }
118}
119
120#[cfg(feature = "app-mapgodexp-types")]
121pub use __types::*;
122
123#[cfg(feature = "app-mapgodexp")]
124impl MapGodExp_KindDesc {
125    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
126    pub fn ctor(&mut self, param_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x24c8410usize)as*mut u8,();
129(*mut MapGodExp_KindDesc)self as*mut MapGodExp_KindDesc,(::unity::Il2CppString)::core::convert::Into::into(param_name))
130        }
131    }
132
133    #[doc = "`.ctor(::unity::Il2CppString, bool)` overload"]
134    pub fn ctor_2(&mut self, param_name: impl ::core::convert::Into<::unity::Il2CppString>, is_multi: impl ::core::convert::Into<bool>) -> () {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x24c8440usize)as*mut u8,();
137(*mut MapGodExp_KindDesc)self as*mut MapGodExp_KindDesc,(::unity::Il2CppString)::core::convert::Into::into(param_name),(bool)::core::convert::Into::into(is_multi))
138        }
139    }
140}
141
142#[cfg(feature = "app-mapgodexp")]
143impl MapGodExp_KindDesc {
144    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146    }
147
148    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150    }
151}
152
153#[cfg(feature = "app-mapgodexp")]
154impl MapGodExp {
155    #[doc = "`GetMultiplier(crate::app::godunit::GodUnit)` overload"]
156    pub fn get_multiplier(god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> f32 {
157        unsafe {
158            ::unity::il2cpp_call!((::unity::module_base()+0x1dca360usize)as*mut u8,f32;
159(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit))
160        }
161    }
162
163    #[doc = "`.cctor()` overload"]
164    pub fn cctor() -> () {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x1dca810usize)as*mut u8,();
167            )
168        }
169    }
170}
171
172#[cfg(feature = "app-mapgodexp")]
173pub trait IMapGodExpMethods: IMapGodExp {
174    #[doc = "`.ctor()` overload"]
175    fn ctor(self) -> () {
176        unsafe {
177            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x1dc9b60usize)as*mut u8,();
179(MapGodExp)__receiver)
180        }
181    }
182    #[doc = "`AddBattle(crate::app::battlecalculator::BattleCalculator)` overload"]
183    fn add_battle(self, calculator: impl ::core::convert::Into<crate::app::battlecalculator::BattleCalculator>) -> () {
184        unsafe {
185            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x1dc9ca0usize)as*mut u8,();
187(MapGodExp)__receiver,(crate::app::battlecalculator::BattleCalculator)::core::convert::Into::into(calculator))
188        }
189    }
190    #[doc = "`AddCommandSkill()` overload"]
191    fn add_command_skill(self) -> () {
192        unsafe {
193            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194            ::unity::il2cpp_call!((::unity::module_base()+0x1dca1f0usize)as*mut u8,();
195(MapGodExp)__receiver)
196        }
197    }
198    #[doc = "`AddEngageAttack()` overload"]
199    fn add_engage_attack(self) -> () {
200        unsafe {
201            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x1dca2b0usize)as*mut u8,();
203(MapGodExp)__receiver)
204        }
205    }
206    #[doc = "`TryCommit(crate::app::procinst::ProcInst)` overload"]
207    fn try_commit(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
208        unsafe {
209            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            ::unity::il2cpp_call!((::unity::module_base()+0x1dca450usize)as*mut u8,();
211(MapGodExp)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
212        }
213    }
214    #[doc = "`Reset()` overload"]
215    fn reset(self) -> () {
216        unsafe {
217            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x1dc9c50usize)as*mut u8,();
219(MapGodExp)__receiver)
220        }
221    }
222    #[doc = "`Add(crate::app::mapgodexp::MapGodExp_Kinds)` overload"]
223    fn add(self, kind: impl ::core::convert::Into<crate::app::mapgodexp::MapGodExp_Kinds>) -> () {
224        unsafe {
225            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x1dc9ff0usize)as*mut u8,();
227(MapGodExp)__receiver,(crate::app::mapgodexp::MapGodExp_Kinds)::core::convert::Into::into(kind))
228        }
229    }
230    #[doc = "`GetExp(crate::app::mapgodexp::MapGodExp_Kinds, bool)` overload"]
231    fn get_exp(self, kind: impl ::core::convert::Into<crate::app::mapgodexp::MapGodExp_Kinds>, is_engage: impl ::core::convert::Into<bool>) -> i32 {
232        unsafe {
233            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x1dca5d0usize)as*mut u8,i32;
235(MapGodExp)__receiver,(crate::app::mapgodexp::MapGodExp_Kinds)::core::convert::Into::into(kind),(bool)::core::convert::Into::into(is_engage))
236        }
237    }
238    #[doc = "`GetCurrentUnit()` overload"]
239    fn get_current_unit(self) -> crate::app::unit::Unit {
240        unsafe {
241            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x1dca550usize)as*mut u8,crate::app::unit::Unit;
243(MapGodExp)__receiver)
244        }
245    }
246    #[doc = "`IsValidCommon()` overload"]
247    fn is_valid_common(self) -> bool {
248        unsafe {
249            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x1dc9eb0usize)as*mut u8,bool;
251(MapGodExp)__receiver)
252        }
253    }
254    #[doc = "`GetDirty(crate::app::mapgodexp::MapGodExp_Kinds, bool)` overload"]
255    fn get_dirty(self, kind: impl ::core::convert::Into<crate::app::mapgodexp::MapGodExp_Kinds>, is_engage: impl ::core::convert::Into<bool>) -> i32 {
256        unsafe {
257            let __receiver = <MapGodExp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x1dca6f0usize)as*mut u8,i32;
259(MapGodExp)__receiver,(crate::app::mapgodexp::MapGodExp_Kinds)::core::convert::Into::into(kind),(bool)::core::convert::Into::into(is_engage))
260        }
261    }
262}
263
264#[cfg(feature = "app-mapgodexp")]
265impl<__T: IMapGodExp> IMapGodExpMethods for __T {}
266
267#[cfg(feature = "app-mapgodexp")]
268impl MapGodExp {
269    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
271    }
272
273    pub fn add_battle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
275    }
276
277    pub fn add_command_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
279    }
280
281    pub fn add_engage_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
283    }
284
285    pub fn get_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
287    }
288
289    pub fn try_commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
291    }
292
293    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
295    }
296
297    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
299    }
300
301    pub fn get_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
303    }
304
305    pub fn get_current_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
307    }
308
309    pub fn is_valid_common_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
311    }
312
313    pub fn get_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
315    }
316
317    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
319    }
320}
321
322#[cfg(feature = "app-mapgodexp")]
323impl MapGodExp {
324    #[doc = "`.ctor()` — no args"]
325    pub fn new() -> Self {
326        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
327            panic!(
328                "{}
329::{}
330 failed to instantiate",
331                ::core::stringify!(MapGodExp),
332                ::core::stringify!(new),
333            )
334        });
335        <Self as IMapGodExpMethods>::ctor(this);
336        this
337    }
338}
339
340#[cfg(feature = "app-mapgodexp")]
341#[doc(hidden)]
342pub mod prelude {
343    pub use super::{IMapGodExp, IMapGodExpMethods, MapGodExp, MapGodExp_KindDesc, MapGodExp_Kinds};
344    #[cfg(feature = "app-singletonclass_1")]
345    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
346    #[cfg(feature = "system-object")]
347    pub use crate::system::object::IObjectMethods;
348    #[cfg(feature = "system-enum")]
349    pub use crate::system::r#enum::IEnumMethods;
350    #[cfg(feature = "system-valuetype")]
351    pub use crate::system::valuetype::IValueTypeMethods;
352    pub use crate::{
353        app::singletonclass_1::ISingletonClass_1,
354        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
355    };
356}