Skip to main content

engage/generated/app/
mapbattleinfowindow.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapbattleinfowindow-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/mapbattleinfowindow/MapBattleInfoWindow.md"))]
14    #[::unity::class(namespace = "App", name = "MapBattleInfoWindow")]
15    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapbattleinfowindow::MapBattleInfoWindow>)]
16    pub struct MapBattleInfoWindow {
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        #[static_field]
27        #[rename(name = "BattleSequenceObjName")]
28        pub battle_sequence_obj_name: ::unity::Il2CppString,
29        #[offset(32)]
30        #[rename(name = "m_PrefabHandle")]
31        pub m_prefab_handle: crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::gameobject::GameObject>,
32        #[offset(40)]
33        #[rename(name = "m_IsValid")]
34        pub m_is_valid: bool,
35        #[offset(48)]
36        #[rename(name = "m_GameObject")]
37        pub m_game_object: crate::unity_engine::gameobject::GameObject,
38        #[offset(56)]
39        #[rename(name = "m_BattleInfoL")]
40        pub m_battle_info_l: crate::unity_engine::gameobject::GameObject,
41        #[offset(64)]
42        #[rename(name = "m_BattleInfoR")]
43        pub m_battle_info_r: crate::unity_engine::gameobject::GameObject,
44        #[offset(72)]
45        #[rename(name = "m_Singles")]
46        pub m_singles: ::unity::Array<crate::app::mapbattleinfowindowsingle::MapBattleInfoWindowSingle>,
47        #[offset(80)]
48        #[rename(name = "m_BattleSequence")]
49        pub m_battle_sequence: crate::app::mapbattleinfosequence::MapBattleInfoSequence,
50        #[offset(88)]
51        #[rename(name = "m_SupportInfos")]
52        pub m_support_infos: ::unity::Array<crate::app::supportinfo::SupportInfo>,
53    }
54}
55
56#[cfg(feature = "app-mapbattleinfowindow-types")]
57pub use __types::*;
58
59#[cfg(feature = "app-mapbattleinfowindow")]
60impl MapBattleInfoWindow {
61    #[doc = "`.cctor()` overload"]
62    pub fn cctor() -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2999280usize)as*mut u8,();
65            )
66        }
67    }
68}
69
70#[cfg(feature = "app-mapbattleinfowindow")]
71pub trait IMapBattleInfoWindowMethods: IMapBattleInfoWindow {
72    #[doc = "`IsLoading()` overload"]
73    fn is_loading(self) -> bool {
74        unsafe {
75            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x2997f50usize)as*mut u8,bool;
77(MapBattleInfoWindow)__receiver)
78        }
79    }
80    #[doc = "`SetBattleInfo(crate::app::battleinfo::BattleInfo, crate::app::battlescenelist::BattleSceneList)` overload"]
81    fn set_battle_info(
82        self,
83        info: impl ::core::convert::Into<crate::app::battleinfo::BattleInfo>,
84        scene_list: impl ::core::convert::Into<crate::app::battlescenelist::BattleSceneList>,
85    ) -> () {
86        unsafe {
87            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2997f80usize)as*mut u8,();
89(MapBattleInfoWindow)__receiver,(crate::app::battleinfo::BattleInfo)::core::convert::Into::into(info),(crate::app::battlescenelist::BattleSceneList)::core::convert::Into::into(scene_list))
90        }
91    }
92    #[doc = "`SetWeaponChangeVisible(bool)` overload"]
93    fn set_weapon_change_visible(self, is_visible: impl ::core::convert::Into<bool>) -> () {
94        unsafe {
95            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x2998310usize)as*mut u8,();
97(MapBattleInfoWindow)__receiver,(bool)::core::convert::Into::into(is_visible))
98        }
99    }
100    #[doc = "`SetEngageCommandVisible(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
101    fn set_engage_command_visible(
102        self,
103        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
104        target: impl ::core::convert::Into<crate::app::unit::Unit>,
105    ) -> () {
106        unsafe {
107            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x29983d0usize)as*mut u8,();
109(MapBattleInfoWindow)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::unit::Unit)::core::convert::Into::into(target))
110        }
111    }
112    #[doc = "`Activate()` overload"]
113    fn activate(self) -> () {
114        unsafe {
115            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2998230usize)as*mut u8,();
117(MapBattleInfoWindow)__receiver)
118        }
119    }
120    #[doc = "`Deactivate()` overload"]
121    fn deactivate(self) -> () {
122        unsafe {
123            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x29984f0usize)as*mut u8,();
125(MapBattleInfoWindow)__receiver)
126        }
127    }
128    #[doc = "`IsActive()` overload"]
129    fn is_active(self) -> bool {
130        unsafe {
131            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x29985a0usize)as*mut u8,bool;
133(MapBattleInfoWindow)__receiver)
134        }
135    }
136    #[doc = "`OnCreate()` overload"]
137    fn on_create(self) -> () {
138        unsafe {
139            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        5usize,
150                        __vt.len(),
151                        <MapBattleInfoWindow as ::unity::ClassIdentity>::NAME,
152                        "OnCreate",
153                    )
154                });
155                let __inner: extern "C" fn(MapBattleInfoWindow, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
156                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157                __inner(__receiver, __mi)
158            }
159        }
160    }
161    #[doc = "`OnDispose()` overload"]
162    fn on_dispose(self) -> () {
163        unsafe {
164            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            {
166                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
168                    panic!(
169                        "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174                        6usize,
175                        __vt.len(),
176                        <MapBattleInfoWindow as ::unity::ClassIdentity>::NAME,
177                        "OnDispose",
178                    )
179                });
180                let __inner: extern "C" fn(MapBattleInfoWindow, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
181                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
182                __inner(__receiver, __mi)
183            }
184        }
185    }
186    #[doc = "`CreateObjects()` overload"]
187    fn create_objects(self) -> () {
188        unsafe {
189            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x2998a00usize)as*mut u8,();
191(MapBattleInfoWindow)__receiver)
192        }
193    }
194    #[doc = "`DestroyObjects()` overload"]
195    fn destroy_objects(self) -> () {
196        unsafe {
197            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x29987c0usize)as*mut u8,();
199(MapBattleInfoWindow)__receiver)
200        }
201    }
202    #[doc = "`get_BattleInfoL()` overload"]
203    fn get_battle_info_l(self) -> crate::unity_engine::gameobject::GameObject {
204        unsafe {
205            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x29991e0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
207(MapBattleInfoWindow)__receiver)
208        }
209    }
210    #[doc = "`get_BattleInfoR()` overload"]
211    fn get_battle_info_r(self) -> crate::unity_engine::gameobject::GameObject {
212        unsafe {
213            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x29991f0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
215(MapBattleInfoWindow)__receiver)
216        }
217    }
218    #[doc = "`.ctor()` overload"]
219    fn ctor(self) -> () {
220        unsafe {
221            let __receiver = <MapBattleInfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2999200usize)as*mut u8,();
223(MapBattleInfoWindow)__receiver)
224        }
225    }
226}
227
228#[cfg(feature = "app-mapbattleinfowindow")]
229impl<__T: IMapBattleInfoWindow> IMapBattleInfoWindowMethods for __T {}
230
231#[cfg(feature = "app-mapbattleinfowindow")]
232impl MapBattleInfoWindow {
233    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
235    }
236
237    pub fn set_battle_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
239    }
240
241    pub fn set_weapon_change_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
243    }
244
245    pub fn set_engage_command_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
247    }
248
249    pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
251    }
252
253    pub fn deactivate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
255    }
256
257    pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
259    }
260
261    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
263    }
264
265    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
267    }
268
269    pub fn create_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
271    }
272
273    pub fn destroy_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
275    }
276
277    pub fn get_battle_info_l_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
279    }
280
281    pub fn get_battle_info_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
283    }
284
285    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
287    }
288
289    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
291    }
292}
293
294#[cfg(feature = "app-mapbattleinfowindow")]
295impl MapBattleInfoWindow {
296    #[doc = "Direct (non-virtual) call to `MapBattleInfoWindow`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
298        let __mi = Self::on_create_method_info();
299        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
300        __inner(this.into(), ::core::option::Option::None)
301    }
302
303    #[doc = "Direct (non-virtual) call to `MapBattleInfoWindow`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
305        let __mi = Self::on_dispose_method_info();
306        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
307        __inner(this.into(), ::core::option::Option::None)
308    }
309}
310
311#[cfg(feature = "app-mapbattleinfowindow")]
312impl MapBattleInfoWindow {
313    #[doc = "`.ctor()` — no args"]
314    pub fn new() -> Self {
315        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
316            panic!(
317                "{}
318::{}
319 failed to instantiate",
320                ::core::stringify!(MapBattleInfoWindow),
321                ::core::stringify!(new),
322            )
323        });
324        <Self as IMapBattleInfoWindowMethods>::ctor(this);
325        this
326    }
327}
328
329#[cfg(feature = "app-mapbattleinfowindow")]
330#[doc(hidden)]
331pub mod prelude {
332    pub use super::{IMapBattleInfoWindow, IMapBattleInfoWindowMethods, MapBattleInfoWindow};
333    #[cfg(feature = "app-singletonclass_1")]
334    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
335    #[cfg(feature = "system-object")]
336    pub use crate::system::object::IObjectMethods;
337    pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
338}