Skip to main content

engage/generated/app/
gmapmode.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmapmode-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapmode/GmapMode.md"))]
15    #[::unity::class(namespace = "App", name = "GmapMode")]
16    #[parent(crate::system::object::Object)]
17    pub struct GmapMode {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapmode/GmapMode_Mode.md"))]
20    #[repr(C)]
21    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
22    pub struct GmapMode_Mode {
23        pub value: i32,
24    }
25    impl ::unity::ClassIdentity for GmapMode_Mode {
26        const NAME: &'static str = "GmapMode.Mode";
27        const NAMESPACE: &'static str = "App";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for GmapMode_Mode {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39    impl GmapMode_Mode {
40        pub fn main() -> Self {
41            Self { value: 0 }
42        }
43
44        pub fn dlc_god() -> Self {
45            Self { value: 1 }
46        }
47
48        pub fn dlc_evil() -> Self {
49            Self { value: 2 }
50        }
51    }
52}
53
54#[cfg(feature = "app-gmapmode-types")]
55pub use __types::*;
56
57#[cfg(feature = "app-gmapmode")]
58impl GmapMode {
59    #[doc = "`get_IsAlongPath()` overload"]
60    pub fn get_is_along_path() -> bool {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2b34a00usize)as*mut u8,bool;
63            )
64        }
65    }
66
67    #[doc = "`set_IsAlongPath(bool)` overload"]
68    pub fn set_is_along_path(value: impl ::core::convert::Into<bool>) -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x2b34a70usize)as*mut u8,();
71(bool)::core::convert::Into::into(value))
72        }
73    }
74
75    #[doc = "`GetMode()` overload"]
76    pub fn get_mode() -> crate::app::gmapmode::GmapMode_Mode {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x2b34af0usize)as*mut u8,crate::app::gmapmode::GmapMode_Mode;
79            )
80        }
81    }
82
83    #[doc = "`SetMode(crate::app::gmapmode::GmapMode_Mode)` overload"]
84    pub fn set_mode(mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x2b34b70usize)as*mut u8,();
87(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
88        }
89    }
90
91    #[doc = "`GoMode(crate::app::gmapmode::GmapMode_Mode)` overload"]
92    pub fn go_mode(mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>) -> () {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x2b34c80usize)as*mut u8,();
95(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
96        }
97    }
98
99    #[doc = "`GetSceneName(crate::app::gmapmode::GmapMode_Mode)` overload"]
100    pub fn get_scene_name(mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>) -> ::unity::Il2CppString {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x2b34e10usize)as*mut u8, ::unity::Il2CppString;
103(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
104        }
105    }
106
107    #[doc = "`SetNowSpotId(::unity::Il2CppString)` overload"]
108    pub fn set_now_spot_id(spot_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
109        unsafe {
110            ::unity::il2cpp_call!((::unity::module_base()+0x2b34ed0usize)as*mut u8,();
111(::unity::Il2CppString)::core::convert::Into::into(spot_id))
112        }
113    }
114
115    #[doc = "`SetNowSpotId(crate::app::gmapmode::GmapMode_Mode, ::unity::Il2CppString)` overload"]
116    pub fn set_now_spot_id_2(
117        mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>,
118        spot_id: impl ::core::convert::Into<::unity::Il2CppString>,
119    ) -> () {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x2b350a0usize)as*mut u8,();
122(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode),(::unity::Il2CppString)::core::convert::Into::into(spot_id))
123        }
124    }
125
126    #[doc = "`GetNowSpotId()` overload"]
127    pub fn get_now_spot_id() -> ::unity::Il2CppString {
128        unsafe {
129            ::unity::il2cpp_call!((::unity::module_base()+0x2b35180usize)as*mut u8, ::unity::Il2CppString;
130            )
131        }
132    }
133
134    #[doc = "`CanMoveDlcMap()` overload"]
135    pub fn can_move_dlc_map() -> bool {
136        unsafe {
137            ::unity::il2cpp_call!((::unity::module_base()+0x2b35260usize)as*mut u8,bool;
138            )
139        }
140    }
141
142    #[doc = "`CanMoveGod()` overload"]
143    pub fn can_move_god() -> bool {
144        unsafe {
145            ::unity::il2cpp_call!((::unity::module_base()+0x2b35370usize)as*mut u8,bool;
146            )
147        }
148    }
149
150    #[doc = "`CanMoveEvil()` overload"]
151    pub fn can_move_evil() -> bool {
152        unsafe {
153            ::unity::il2cpp_call!((::unity::module_base()+0x2b35400usize)as*mut u8,bool;
154            )
155        }
156    }
157
158    #[doc = "`CheckSpotModeOnGmap(crate::app::gmapspot::GmapSpot, crate::app::gmapmode::GmapMode_Mode)` overload"]
159    pub fn check_spot_mode_on_gmap(
160        spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>,
161        mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>,
162    ) -> bool {
163        unsafe {
164            ::unity::il2cpp_call!((::unity::module_base()+0x2b355a0usize)as*mut u8,bool;
165(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(spot),(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
166        }
167    }
168
169    #[doc = "`CheckSpotModeAtChapter(crate::app::gmapspot::GmapSpot, crate::app::gmapmode::GmapMode_Mode)` overload"]
170    pub fn check_spot_mode_at_chapter(
171        spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>,
172        mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>,
173    ) -> bool {
174        unsafe {
175            ::unity::il2cpp_call!((::unity::module_base()+0x2b35830usize)as*mut u8,bool;
176(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(spot),(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
177        }
178    }
179
180    #[doc = "`CheckSpotModeOnGmap(::unity::Il2CppString, crate::app::gmapmode::GmapMode_Mode)` overload"]
181    pub fn check_spot_mode_on_gmap_2(
182        spot_id: impl ::core::convert::Into<::unity::Il2CppString>,
183        mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>,
184    ) -> bool {
185        unsafe {
186            ::unity::il2cpp_call!((::unity::module_base()+0x2b358f0usize)as*mut u8,bool;
187(::unity::Il2CppString)::core::convert::Into::into(spot_id),(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode))
188        }
189    }
190
191    #[doc = "`CheckSpotModeImpl(::unity::Il2CppString, crate::app::gmapmode::GmapMode_Mode, bool)` overload"]
192    pub fn check_spot_mode_impl(
193        spot_id: impl ::core::convert::Into<::unity::Il2CppString>,
194        mode: impl ::core::convert::Into<crate::app::gmapmode::GmapMode_Mode>,
195        on_gmap: impl ::core::convert::Into<bool>,
196    ) -> bool {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x2b356c0usize)as*mut u8,bool;
199(::unity::Il2CppString)::core::convert::Into::into(spot_id),(crate::app::gmapmode::GmapMode_Mode)::core::convert::Into::into(mode),(bool)::core::convert::Into::into(on_gmap))
200        }
201    }
202
203    #[doc = "`GetDlcGmapPathAssetPath()` overload"]
204    pub fn get_dlc_gmap_path_asset_path() -> ::unity::Il2CppString {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x2b35970usize)as*mut u8, ::unity::Il2CppString;
207            )
208        }
209    }
210
211    #[doc = "`GetDlcGmapSpotAssetPath()` overload"]
212    pub fn get_dlc_gmap_spot_asset_path() -> ::unity::Il2CppString {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x2b359c0usize)as*mut u8, ::unity::Il2CppString;
215            )
216        }
217    }
218
219    #[doc = "`.cctor()` overload"]
220    pub fn cctor() -> () {
221        unsafe {
222            ::unity::il2cpp_call!((::unity::module_base()+0x2b35a20usize)as*mut u8,();
223            )
224        }
225    }
226}
227
228#[cfg(feature = "app-gmapmode")]
229pub trait IGmapModeMethods: IGmapMode {
230    #[doc = "`.ctor()` overload"]
231    fn ctor(self) -> () {
232        unsafe {
233            let __receiver = <GmapMode as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x2b35a10usize)as*mut u8,();
235(GmapMode)__receiver)
236        }
237    }
238}
239
240#[cfg(feature = "app-gmapmode")]
241impl<__T: IGmapMode> IGmapModeMethods for __T {}
242
243#[cfg(feature = "app-gmapmode")]
244impl GmapMode {
245    pub fn get_is_along_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
247    }
248
249    pub fn set_is_along_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
251    }
252
253    pub fn get_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
255    }
256
257    pub fn set_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
259    }
260
261    pub fn go_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
263    }
264
265    pub fn get_scene_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
267    }
268
269    pub fn set_now_spot_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
271    }
272
273    pub fn set_now_spot_id_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
275    }
276
277    pub fn get_now_spot_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
279    }
280
281    pub fn can_move_dlc_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
283    }
284
285    pub fn can_move_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
287    }
288
289    pub fn can_move_evil_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
291    }
292
293    pub fn check_spot_mode_on_gmap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
295    }
296
297    pub fn check_spot_mode_at_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
299    }
300
301    pub fn check_spot_mode_on_gmap_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
303    }
304
305    pub fn check_spot_mode_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
307    }
308
309    pub fn get_dlc_gmap_path_asset_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
311    }
312
313    pub fn get_dlc_gmap_spot_asset_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
315    }
316
317    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
319    }
320
321    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
323    }
324}
325
326#[cfg(feature = "app-gmapmode")]
327impl GmapMode {
328    #[doc = "`.ctor()` — no args"]
329    pub fn new() -> Self {
330        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
331            panic!(
332                "{}
333::{}
334 failed to instantiate",
335                ::core::stringify!(GmapMode),
336                ::core::stringify!(new),
337            )
338        });
339        <Self as IGmapModeMethods>::ctor(this);
340        this
341    }
342}
343
344#[cfg(feature = "app-gmapmode")]
345#[doc(hidden)]
346pub mod prelude {
347    pub use super::{GmapMode, GmapMode_Mode, IGmapMode, IGmapModeMethods};
348    #[cfg(feature = "system-object")]
349    pub use crate::system::object::IObjectMethods;
350    #[cfg(feature = "system-enum")]
351    pub use crate::system::r#enum::IEnumMethods;
352    #[cfg(feature = "system-valuetype")]
353    pub use crate::system::valuetype::IValueTypeMethods;
354    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
355}