Skip to main content

engage/generated/app/
mapkeyhelp.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapkeyhelp-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapkeyhelp/MapKeyHelp_Mode.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct MapKeyHelp_Mode {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for MapKeyHelp_Mode {
27        const NAME: &'static str = "MapKeyHelp.Mode";
28        const NAMESPACE: &'static str = "App";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for MapKeyHelp_Mode {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl MapKeyHelp_Mode {
41        pub fn none() -> Self {
42            Self { value: 0 }
43        }
44
45        pub fn stay_show() -> Self {
46            Self { value: 1 }
47        }
48
49        pub fn stay_hide() -> Self {
50            Self { value: 2 }
51        }
52
53        pub fn measure() -> Self {
54            Self { value: 3 }
55        }
56    }
57
58    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapkeyhelp/MapKeyHelp_Types.md"))]
59    #[repr(C)]
60    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
61    pub struct MapKeyHelp_Types {
62        pub value: i32,
63    }
64    impl ::unity::ClassIdentity for MapKeyHelp_Types {
65        const NAME: &'static str = "MapKeyHelp.Types";
66        const NAMESPACE: &'static str = "App";
67
68        fn class() -> ::unity::Class {
69            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
70            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
71        }
72    }
73    impl ::unity::IlType for MapKeyHelp_Types {
74        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
75            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
76        }
77    }
78    impl MapKeyHelp_Types {
79        pub fn none() -> Self {
80            Self { value: 0 }
81        }
82
83        pub fn free_for_unit_info() -> Self {
84            Self { value: 1 }
85        }
86
87        pub fn free_for_danger() -> Self {
88            Self { value: 2 }
89        }
90
91        pub fn pick_for_unit_info() -> Self {
92            Self { value: 3 }
93        }
94
95        pub fn pick_for_unit_info_engage_on() -> Self {
96            Self { value: 4 }
97        }
98
99        pub fn pick_for_unit_info_engage_off() -> Self {
100            Self { value: 5 }
101        }
102
103        pub fn pick_for_my_info() -> Self {
104            Self { value: 6 }
105        }
106
107        pub fn pick_for_my_info_engage_on() -> Self {
108            Self { value: 7 }
109        }
110
111        pub fn pick_for_my_info_engage_off() -> Self {
112            Self { value: 8 }
113        }
114
115        pub fn pick_for_danger_weapon_change() -> Self {
116            Self { value: 9 }
117        }
118
119        pub fn pick_for_danger_weapon_change_engage_on() -> Self {
120            Self { value: 10 }
121        }
122
123        pub fn pick_for_danger_weapon_change_engage_off() -> Self {
124            Self { value: 11 }
125        }
126
127        pub fn pick_for_danger() -> Self {
128            Self { value: 12 }
129        }
130
131        pub fn pick_for_danger_engage_on() -> Self {
132            Self { value: 13 }
133        }
134
135        pub fn pick_for_danger_engage_off() -> Self {
136            Self { value: 14 }
137        }
138
139        pub fn entrust() -> Self {
140            Self { value: 15 }
141        }
142
143        pub fn enemy_or_ally() -> Self {
144            Self { value: 16 }
145        }
146
147        pub fn system_menu() -> Self {
148            Self { value: 17 }
149        }
150
151        pub fn job_intro() -> Self {
152            Self { value: 18 }
153        }
154
155        pub fn sortie_top() -> Self {
156            Self { value: 19 }
157        }
158
159        pub fn replay() -> Self {
160            Self { value: 20 }
161        }
162
163        pub fn gmap_idle() -> Self {
164            Self { value: 21 }
165        }
166
167        pub fn gmap_moving() -> Self {
168            Self { value: 22 }
169        }
170
171        pub fn map_edit_free() -> Self {
172            Self { value: 23 }
173        }
174
175        pub fn map_edit_free_on_unit() -> Self {
176            Self { value: 24 }
177        }
178    }
179
180    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapkeyhelp/MapKeyHelp_Label.md"))]
181    #[repr(C)]
182    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
183    pub struct MapKeyHelp_Label {
184        pub value: i32,
185    }
186    impl ::unity::ClassIdentity for MapKeyHelp_Label {
187        const NAME: &'static str = "MapKeyHelp.Label";
188        const NAMESPACE: &'static str = "App";
189
190        fn class() -> ::unity::Class {
191            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
192            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
193        }
194    }
195    impl ::unity::IlType for MapKeyHelp_Label {
196        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
197            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
198        }
199    }
200    impl MapKeyHelp_Label {
201        pub fn stay() -> Self {
202            Self { value: 0 }
203        }
204
205        pub fn measure() -> Self {
206            Self { value: 1 }
207        }
208    }
209
210    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapkeyhelp/MapKeyHelp.md"))]
211    #[::unity::class(namespace = "App", name = "MapKeyHelp")]
212    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::mapkeyhelp::MapKeyHelp>)]
213    pub struct MapKeyHelp {
214        #[static_field]
215        #[rename(name = "ShowTime")]
216        pub show_time: f32,
217        #[offset(116)]
218        #[rename(name = "m_Mode")]
219        pub m_mode: crate::app::mapkeyhelp::MapKeyHelp_Mode,
220        #[offset(120)]
221        #[rename(name = "m_TemporaryHidingCount")]
222        pub m_temporary_hiding_count: i32,
223        #[offset(124)]
224        #[rename(name = "m_LastType")]
225        pub m_last_type: crate::app::mapkeyhelp::MapKeyHelp_Types,
226        #[offset(128)]
227        #[rename(name = "m_RequestType")]
228        pub m_request_type: crate::app::mapkeyhelp::MapKeyHelp_Types,
229        #[offset(132)]
230        #[rename(name = "m_Progress")]
231        pub m_progress: f32,
232    }
233}
234
235#[cfg(feature = "app-mapkeyhelp-types")]
236pub use __types::*;
237
238#[cfg(feature = "app-mapkeyhelp")]
239impl MapKeyHelp {
240    #[doc = "`CreateAsync(crate::app::procinst::ProcInst)` overload"]
241    pub fn create_async(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
242        unsafe {
243            ::unity::il2cpp_call!((::unity::module_base()+0x1deea60usize)as*mut u8,();
244(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
245        }
246    }
247
248    #[doc = "`IsCreating()` overload"]
249    pub fn is_creating() -> bool {
250        unsafe {
251            ::unity::il2cpp_call!((::unity::module_base()+0x1deee90usize)as*mut u8,bool;
252            )
253        }
254    }
255
256    #[doc = "`Destroy()` overload"]
257    pub fn destroy() -> () {
258        unsafe {
259            ::unity::il2cpp_call!((::unity::module_base()+0x1deeea0usize)as*mut u8,();
260            )
261        }
262    }
263}
264
265#[cfg(feature = "app-mapkeyhelp")]
266pub trait IMapKeyHelpMethods: IMapKeyHelp {
267    #[doc = "`GetRequestType()` overload"]
268    fn get_request_type(self) -> crate::app::mapkeyhelp::MapKeyHelp_Types {
269        unsafe {
270            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            ::unity::il2cpp_call!((::unity::module_base()+0x1deef60usize)as*mut u8,crate::app::mapkeyhelp::MapKeyHelp_Types;
272(MapKeyHelp)__receiver)
273        }
274    }
275    #[doc = "`RequestToChange(crate::app::mapkeyhelp::MapKeyHelp_Types)` overload"]
276    fn request_to_change(self, r#type: impl ::core::convert::Into<crate::app::mapkeyhelp::MapKeyHelp_Types>) -> () {
277        unsafe {
278            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            ::unity::il2cpp_call!((::unity::module_base()+0x1deef70usize)as*mut u8,();
280(MapKeyHelp)__receiver,(crate::app::mapkeyhelp::MapKeyHelp_Types)::core::convert::Into::into(r#type))
281        }
282    }
283    #[doc = "`ShowImmediate()` overload"]
284    fn show_immediate(self) -> () {
285        unsafe {
286            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x1def010usize)as*mut u8,();
288(MapKeyHelp)__receiver)
289        }
290    }
291    #[doc = "`Hide()` overload"]
292    fn hide(self) -> () {
293        unsafe {
294            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            ::unity::il2cpp_call!((::unity::module_base()+0x1def020usize)as*mut u8,();
296(MapKeyHelp)__receiver)
297        }
298    }
299    #[doc = "`BeginTemporaryHiding()` overload"]
300    fn begin_temporary_hiding(self) -> () {
301        unsafe {
302            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            ::unity::il2cpp_call!((::unity::module_base()+0x1def0b0usize)as*mut u8,();
304(MapKeyHelp)__receiver)
305        }
306    }
307    #[doc = "`EndTemporaryHiding(bool)` overload"]
308    fn end_temporary_hiding(self, is_reset_measuring: impl ::core::convert::Into<bool>) -> () {
309        unsafe {
310            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311            ::unity::il2cpp_call!((::unity::module_base()+0x1def0f0usize)as*mut u8,();
312(MapKeyHelp)__receiver,(bool)::core::convert::Into::into(is_reset_measuring))
313        }
314    }
315    #[doc = "`OnCreate()` overload"]
316    fn on_create(self) -> () {
317        unsafe {
318            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            {
320                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
321                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
322                    panic!(
323                        "unity: virtual slot {}
324 out of range (vtable len {}
325) on the runtime class behind {}
326 (method `{}
327`)",
328                        9usize,
329                        __vt.len(),
330                        <MapKeyHelp as ::unity::ClassIdentity>::NAME,
331                        "OnCreate",
332                    )
333                });
334                let __inner: extern "C" fn(MapKeyHelp, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
335                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
336                __inner(__receiver, __mi)
337            }
338        }
339    }
340    #[doc = "`OnDispose()` overload"]
341    fn on_dispose(self) -> () {
342        unsafe {
343            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
344            {
345                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
346                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
347                    panic!(
348                        "unity: virtual slot {}
349 out of range (vtable len {}
350) on the runtime class behind {}
351 (method `{}
352`)",
353                        10usize,
354                        __vt.len(),
355                        <MapKeyHelp as ::unity::ClassIdentity>::NAME,
356                        "OnDispose",
357                    )
358                });
359                let __inner: extern "C" fn(MapKeyHelp, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
360                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
361                __inner(__receiver, __mi)
362            }
363        }
364    }
365    #[doc = "`Measure()` overload"]
366    fn measure(self) -> () {
367        unsafe {
368            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369            ::unity::il2cpp_call!((::unity::module_base()+0x1def280usize)as*mut u8,();
370(MapKeyHelp)__receiver)
371        }
372    }
373    #[doc = "`Setup(crate::app::mapkeyhelp::MapKeyHelp_Types)` overload"]
374    fn setup(self, r#type: impl ::core::convert::Into<crate::app::mapkeyhelp::MapKeyHelp_Types>) -> () {
375        unsafe {
376            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
377            ::unity::il2cpp_call!((::unity::module_base()+0x1def360usize)as*mut u8,();
378(MapKeyHelp)__receiver,(crate::app::mapkeyhelp::MapKeyHelp_Types)::core::convert::Into::into(r#type))
379        }
380    }
381    #[doc = "`.ctor()` overload"]
382    fn ctor(self) -> () {
383        unsafe {
384            let __receiver = <MapKeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385            ::unity::il2cpp_call!((::unity::module_base()+0x1deee10usize)as*mut u8,();
386(MapKeyHelp)__receiver)
387        }
388    }
389}
390
391#[cfg(feature = "app-mapkeyhelp")]
392impl<__T: IMapKeyHelp> IMapKeyHelpMethods for __T {}
393
394#[cfg(feature = "app-mapkeyhelp")]
395impl MapKeyHelp {
396    pub fn create_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
398    }
399
400    pub fn is_creating_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
402    }
403
404    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
406    }
407
408    pub fn get_request_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
410    }
411
412    pub fn request_to_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
414    }
415
416    pub fn show_immediate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
418    }
419
420    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
422    }
423
424    pub fn begin_temporary_hiding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
426    }
427
428    pub fn end_temporary_hiding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
430    }
431
432    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
434    }
435
436    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
438    }
439
440    pub fn measure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
442    }
443
444    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
446    }
447
448    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
449        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
450    }
451}
452
453#[cfg(feature = "app-mapkeyhelp")]
454impl MapKeyHelp {
455    #[doc = "Direct (non-virtual) call to `MapKeyHelp`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
456    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
457        let __mi = Self::on_create_method_info();
458        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
459        __inner(this.into(), ::core::option::Option::None)
460    }
461
462    #[doc = "Direct (non-virtual) call to `MapKeyHelp`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
463    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
464        let __mi = Self::on_dispose_method_info();
465        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
466        __inner(this.into(), ::core::option::Option::None)
467    }
468}
469
470#[cfg(feature = "app-mapkeyhelp")]
471impl MapKeyHelp {
472    #[doc = "`.ctor()` — no args"]
473    pub fn new() -> Self {
474        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
475            panic!(
476                "{}
477::{}
478 failed to instantiate",
479                ::core::stringify!(MapKeyHelp),
480                ::core::stringify!(new),
481            )
482        });
483        <Self as IMapKeyHelpMethods>::ctor(this);
484        this
485    }
486}
487
488#[cfg(feature = "app-mapkeyhelp")]
489#[doc(hidden)]
490pub mod prelude {
491    pub use super::{IMapKeyHelp, IMapKeyHelpMethods, MapKeyHelp, MapKeyHelp_Label, MapKeyHelp_Mode, MapKeyHelp_Types};
492    #[cfg(feature = "app-procinst")]
493    pub use crate::app::procinst::IProcInstMethods;
494    #[cfg(feature = "app-singletonprocinst_1")]
495    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
496    #[cfg(feature = "system-object")]
497    pub use crate::system::object::IObjectMethods;
498    #[cfg(feature = "system-enum")]
499    pub use crate::system::r#enum::IEnumMethods;
500    #[cfg(feature = "system-valuetype")]
501    pub use crate::system::valuetype::IValueTypeMethods;
502    pub use crate::{
503        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
504        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
505    };
506}