Skip to main content

engage/generated/app/
mapsimplebattle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapsimplebattle-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::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsimplebattle/MapSimpleBattle.md"))]
14    #[::unity::class(namespace = "App", name = "MapSimpleBattle")]
15    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapsimplebattle::MapSimpleBattle>)]
16    pub struct MapSimpleBattle {
17        #[static_field]
18        #[rename(name = "PrefabPath")]
19        pub prefab_path: ::unity::Il2CppString,
20        #[static_field]
21        #[rename(name = "LeftSideObjName")]
22        pub left_side_obj_name: ::unity::Il2CppString,
23        #[static_field]
24        #[rename(name = "RightSideObjName")]
25        pub right_side_obj_name: ::unity::Il2CppString,
26        #[offset(32)]
27        #[rename(name = "m_PrefabHandle")]
28        pub m_prefab_handle: crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::gameobject::GameObject>,
29        #[offset(40)]
30        #[rename(name = "m_IsValid")]
31        pub m_is_valid: bool,
32        #[offset(48)]
33        #[rename(name = "m_GameObject")]
34        pub m_game_object: crate::unity_engine::gameobject::GameObject,
35        #[offset(56)]
36        #[rename(name = "m_GaugeControllerLeft")]
37        pub m_gauge_controller_left: crate::root::combatgaugecontroller::CombatGaugeController,
38        #[offset(64)]
39        #[rename(name = "m_GaugeControllerRight")]
40        pub m_gauge_controller_right: crate::root::combatgaugecontroller::CombatGaugeController,
41    }
42}
43
44#[cfg(feature = "app-mapsimplebattle-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-mapsimplebattle")]
48impl MapSimpleBattle {
49    #[doc = "`.cctor()` overload"]
50    pub fn cctor() -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x1f489b0usize)as*mut u8,();
53            )
54        }
55    }
56}
57
58#[cfg(feature = "app-mapsimplebattle")]
59pub trait IMapSimpleBattleMethods: IMapSimpleBattle {
60    #[doc = "`IsLoading()` overload"]
61    fn is_loading(self) -> bool {
62        unsafe {
63            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1f47b10usize)as*mut u8,bool;
65(MapSimpleBattle)__receiver)
66        }
67    }
68    #[doc = "`GetObject(crate::app::battleinfo::BattleInfo, *mutcrate::root::combatgaugecontroller::CombatGaugeController, *mutcrate::root::combatgaugecontroller::CombatGaugeController)` overload"]
69    fn get_object(
70        self,
71        info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
72    ) -> (
73        crate::root::combatgaugecontroller::CombatGaugeController,
74        crate::root::combatgaugecontroller::CombatGaugeController,
75    ) {
76        unsafe {
77            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            let mut __out_0 = ::core::mem::MaybeUninit::<crate::root::combatgaugecontroller::CombatGaugeController>::uninit();
79            let mut __out_1 = ::core::mem::MaybeUninit::<crate::root::combatgaugecontroller::CombatGaugeController>::uninit();
80            ::unity::il2cpp_call!((::unity::module_base()+0x1f47b40usize)as*mut u8,();
81(MapSimpleBattle)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(*mut crate::root::combatgaugecontroller::CombatGaugeController)__out_0.as_mut_ptr(),(*mut crate::root::combatgaugecontroller::CombatGaugeController)__out_1.as_mut_ptr());
82            (__out_0.assume_init(), __out_1.assume_init())
83        }
84    }
85    #[doc = "`SetSimpleBattle(crate::app::battlecalculator::BattleCalculator)` overload"]
86    fn set_simple_battle(self, calc: impl ::core::convert::Into<crate::app::battlecalculator::BattleCalculator>) -> () {
87        unsafe {
88            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x1f47c90usize)as*mut u8,();
90(MapSimpleBattle)__receiver,(crate::app::battlecalculator::BattleCalculator)::core::convert::Into::into(calc))
91        }
92    }
93    #[doc = "`UpdateValue(crate::app::battleinfo::BattleInfo)` overload"]
94    fn update_value(self, info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>) -> () {
95        unsafe {
96            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x1f47ed0usize)as*mut u8,();
98(MapSimpleBattle)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info))
99        }
100    }
101    #[doc = "`SkipGaugeAnime(crate::app::battleinfo::BattleInfo)` overload"]
102    fn skip_gauge_anime(self, info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>) -> () {
103        unsafe {
104            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x1f48090usize)as*mut u8,();
106(MapSimpleBattle)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info))
107        }
108    }
109    #[doc = "`IsMoving()` overload"]
110    fn is_moving(self) -> bool {
111        unsafe {
112            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x1f48180usize)as*mut u8,bool;
114(MapSimpleBattle)__receiver)
115        }
116    }
117    #[doc = "`IsPlayingAnim()` overload"]
118    fn is_playing_anim(self) -> bool {
119        unsafe {
120            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x1f48280usize)as*mut u8,bool;
122(MapSimpleBattle)__receiver)
123        }
124    }
125    #[doc = "`Activate()` overload"]
126    fn activate(self) -> () {
127        unsafe {
128            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x1f47e20usize)as*mut u8,();
130(MapSimpleBattle)__receiver)
131        }
132    }
133    #[doc = "`Deactivate()` overload"]
134    fn deactivate(self) -> () {
135        unsafe {
136            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x1f48380usize)as*mut u8,();
138(MapSimpleBattle)__receiver)
139        }
140    }
141    #[doc = "`Out()` overload"]
142    fn out(self) -> () {
143        unsafe {
144            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x1f48430usize)as*mut u8,();
146(MapSimpleBattle)__receiver)
147        }
148    }
149    #[doc = "`OnCreate()` overload"]
150    fn on_create(self) -> () {
151        unsafe {
152            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            {
154                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
156                    panic!(
157                        "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162                        5usize,
163                        __vt.len(),
164                        <MapSimpleBattle as ::unity::ClassIdentity>::NAME,
165                        "OnCreate",
166                    )
167                });
168                let __inner: extern "C" fn(MapSimpleBattle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
169                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170                __inner(__receiver, __mi)
171            }
172        }
173    }
174    #[doc = "`OnDispose()` overload"]
175    fn on_dispose(self) -> () {
176        unsafe {
177            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            {
179                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
181                    panic!(
182                        "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187                        6usize,
188                        __vt.len(),
189                        <MapSimpleBattle as ::unity::ClassIdentity>::NAME,
190                        "OnDispose",
191                    )
192                });
193                let __inner: extern "C" fn(MapSimpleBattle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
194                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195                __inner(__receiver, __mi)
196            }
197        }
198    }
199    #[doc = "`CreateObjects()` overload"]
200    fn create_objects(self) -> () {
201        unsafe {
202            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x1f486e0usize)as*mut u8,();
204(MapSimpleBattle)__receiver)
205        }
206    }
207    #[doc = "`DestroyObjects()` overload"]
208    fn destroy_objects(self) -> () {
209        unsafe {
210            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x1f485f0usize)as*mut u8,();
212(MapSimpleBattle)__receiver)
213        }
214    }
215    #[doc = "`.ctor()` overload"]
216    fn ctor(self) -> () {
217        unsafe {
218            let __receiver = <MapSimpleBattle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x1f48930usize)as*mut u8,();
220(MapSimpleBattle)__receiver)
221        }
222    }
223}
224
225#[cfg(feature = "app-mapsimplebattle")]
226impl<__T: IMapSimpleBattle> IMapSimpleBattleMethods for __T {}
227
228#[cfg(feature = "app-mapsimplebattle")]
229impl MapSimpleBattle {
230    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
232    }
233
234    pub fn get_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
236    }
237
238    pub fn set_simple_battle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
240    }
241
242    pub fn update_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
244    }
245
246    pub fn skip_gauge_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
248    }
249
250    pub fn is_moving_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
252    }
253
254    pub fn is_playing_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
256    }
257
258    pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
260    }
261
262    pub fn deactivate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
264    }
265
266    pub fn out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
268    }
269
270    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
272    }
273
274    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
276    }
277
278    pub fn create_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
280    }
281
282    pub fn destroy_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
284    }
285
286    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
288    }
289
290    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
292    }
293}
294
295#[cfg(feature = "app-mapsimplebattle")]
296impl MapSimpleBattle {
297    #[doc = "Direct (non-virtual) call to `MapSimpleBattle`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
298    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
299        let __mi = Self::on_create_method_info();
300        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
301        __inner(this.into(), ::core::option::Option::None)
302    }
303
304    #[doc = "Direct (non-virtual) call to `MapSimpleBattle`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
305    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
306        let __mi = Self::on_dispose_method_info();
307        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
308        __inner(this.into(), ::core::option::Option::None)
309    }
310}
311
312#[cfg(feature = "app-mapsimplebattle")]
313impl MapSimpleBattle {
314    #[doc = "`.ctor()` — no args"]
315    pub fn new() -> Self {
316        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
317            panic!(
318                "{}
319::{}
320 failed to instantiate",
321                ::core::stringify!(MapSimpleBattle),
322                ::core::stringify!(new),
323            )
324        });
325        <Self as IMapSimpleBattleMethods>::ctor(this);
326        this
327    }
328}
329
330#[cfg(feature = "app-mapsimplebattle")]
331#[doc(hidden)]
332pub mod prelude {
333    pub use super::{IMapSimpleBattle, IMapSimpleBattleMethods, MapSimpleBattle};
334    #[cfg(feature = "app-singletonclass_1")]
335    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
336    #[cfg(feature = "system-object")]
337    pub use crate::system::object::IObjectMethods;
338    pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
339}