1#[cfg(feature = "app-gameuserglobaldata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 bitfield32::{BitField32, IBitField32},
11 bitfieldcommon::{BitFieldCommon, IBitFieldCommon},
12 bitfieldtemplate32_1::{BitFieldTemplate32_1, IBitFieldTemplate32_1},
13 singletonclass_1::{ISingletonClass_1, SingletonClass_1},
14 },
15 system::{
16 object::{IObject, Object},
17 r#enum::{Enum, IEnum},
18 valuetype::{IValueType, ValueType},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserglobaldata/GameUserGlobalData.md"))]
23 #[::unity::class(namespace = "App", name = "GameUserGlobalData")]
24 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::gameuserglobaldata::GameUserGlobalData>)]
25 pub struct GameUserGlobalData {
26 #[offset(48)]
27 #[rename(name = "m_CompletedHash")]
28 pub m_completed_hash: crate::system::collections::generic::hashset_1::HashSet_1<::unity::Il2CppString>,
29 #[offset(56)]
30 #[rename(name = "m_CompletedList")]
31 pub m_completed_list: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserglobaldata/GameUserGlobalData_Flags.md"))]
35 #[repr(C)]
36 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
37 pub struct GameUserGlobalData_Flags {
38 pub value: i32,
39 }
40 impl ::unity::ClassIdentity for GameUserGlobalData_Flags {
41 const NAME: &'static str = "GameUserGlobalData.Flags";
42 const NAMESPACE: &'static str = "App";
43
44 fn class() -> ::unity::Class {
45 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
46 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
47 }
48 }
49 impl ::unity::IlType for GameUserGlobalData_Flags {
50 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
51 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
52 }
53 }
54 impl GameUserGlobalData_Flags {
55 pub fn cleared_difficulty_normal() -> Self {
56 Self { value: 1 }
57 }
58
59 pub fn cleared_difficulty_hard() -> Self {
60 Self { value: 2 }
61 }
62
63 pub fn cleared_difficulty_lunatic() -> Self {
64 Self { value: 4 }
65 }
66
67 pub fn cleared_difficulty_mask() -> Self {
68 Self { value: 7 }
69 }
70
71 pub fn cleared_mode_classic() -> Self {
72 Self { value: 8 }
73 }
74
75 pub fn cleared_mode_casual() -> Self {
76 Self { value: 16 }
77 }
78
79 pub fn cleared_mode_phoenix() -> Self {
80 Self { value: 32 }
81 }
82
83 pub fn cleared_mode_mask() -> Self {
84 Self { value: 56 }
85 }
86
87 pub fn cleared_mask() -> Self {
88 Self { value: 63 }
89 }
90
91 pub fn dlc_news_patch0() -> Self {
92 Self { value: 64 }
93 }
94
95 pub fn dlc_news_patch1() -> Self {
96 Self { value: 128 }
97 }
98
99 pub fn dlc_news_patch2() -> Self {
100 Self { value: 256 }
101 }
102
103 pub fn dlc_news_patch3() -> Self {
104 Self { value: 512 }
105 }
106 }
107
108 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserglobaldata/GameUserGlobalData_FlagsField.md"))]
109 #[::unity::class(namespace = "App", name = "GameUserGlobalData.FlagsField")]
110 #[parent(crate::app::bitfieldtemplate32_1::BitFieldTemplate32_1<crate::app::gameuserglobaldata::GameUserGlobalData_Flags>)]
111 pub struct GameUserGlobalData_FlagsField {}
112}
113
114#[cfg(feature = "app-gameuserglobaldata-types")]
115pub use __types::*;
116
117#[cfg(feature = "app-gameuserglobaldata")]
118impl GameUserGlobalData {
119 #[doc = "`CreateIdentifier()` overload"]
120 pub fn create_identifier() -> u64 {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x25118c0usize)as*mut u8,u64;
123 )
124 }
125 }
126}
127
128#[cfg(feature = "app-gameuserglobaldata")]
129pub trait IGameUserGlobalDataMethods: IGameUserGlobalData {
130 #[doc = "`.ctor()` overload"]
131 fn ctor(self) -> () {
132 unsafe {
133 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x251b7c0usize)as*mut u8,();
135(GameUserGlobalData)__receiver)
136 }
137 }
138 #[doc = "`Reset()` overload"]
139 fn reset(self) -> () {
140 unsafe {
141 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x251b990usize)as*mut u8,();
143(GameUserGlobalData)__receiver)
144 }
145 }
146 #[doc = "`GetLastSaveDataType()` overload"]
147 fn get_last_save_data_type(self) -> crate::app::gamesavedata::GameSaveData_Types {
148 unsafe {
149 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x251ba20usize)as*mut u8,crate::app::gamesavedata::GameSaveData_Types;
151(GameUserGlobalData)__receiver)
152 }
153 }
154 #[doc = "`GetLastSaveDataIndex()` overload"]
155 fn get_last_save_data_index(self) -> i32 {
156 unsafe {
157 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x251ba30usize)as*mut u8,i32;
159(GameUserGlobalData)__receiver)
160 }
161 }
162 #[doc = "`GetLastSaveDataIndex(crate::app::gamesavedata::GameSaveData_Types)` overload"]
163 fn get_last_save_data_index_2(self, r#type: impl ::core::convert::Into<crate::app::gamesavedata::GameSaveData_Types>) -> i32 {
164 unsafe {
165 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x251ba40usize)as*mut u8,i32;
167(GameUserGlobalData)__receiver,(crate::app::gamesavedata::GameSaveData_Types)::core::convert::Into::into(r#type))
168 }
169 }
170 #[doc = "`SetLastSaveDataInfo(crate::app::gamesavedata::GameSaveData_Types, i32)` overload"]
171 fn set_last_save_data_info(
172 self,
173 r#type: impl ::core::convert::Into<crate::app::gamesavedata::GameSaveData_Types>,
174 index: impl ::core::convert::Into<i32>,
175 ) -> () {
176 unsafe {
177 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x251ba60usize)as*mut u8,();
179(GameUserGlobalData)__receiver,(crate::app::gamesavedata::GameSaveData_Types)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(index))
180 }
181 }
182 #[doc = "`IsLastSaveDataInfo(crate::app::gamesavedata::GameSaveData_Types, i32)` overload"]
183 fn is_last_save_data_info(
184 self,
185 r#type: impl ::core::convert::Into<crate::app::gamesavedata::GameSaveData_Types>,
186 index: impl ::core::convert::Into<i32>,
187 ) -> bool {
188 unsafe {
189 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x251ba70usize)as*mut u8,bool;
191(GameUserGlobalData)__receiver,(crate::app::gamesavedata::GameSaveData_Types)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(index))
192 }
193 }
194 #[doc = "`get_Version()` overload"]
195 fn get_version(self) -> i32 {
196 unsafe {
197 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 {
199 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
201 panic!(
202 "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207 4usize,
208 __vt.len(),
209 <GameUserGlobalData as ::unity::ClassIdentity>::NAME,
210 "get_Version",
211 )
212 });
213 let __inner: extern "C" fn(GameUserGlobalData, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
214 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215 __inner(__receiver, __mi)
216 }
217 }
218 }
219 #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
220 fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
221 unsafe {
222 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 {
224 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
225 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
226 panic!(
227 "unity: virtual slot {}
228 out of range (vtable len {}
229) on the runtime class behind {}
230 (method `{}
231`)",
232 11usize,
233 __vt.len(),
234 <GameUserGlobalData as ::unity::ClassIdentity>::NAME,
235 "OnSerialize",
236 )
237 });
238 let __inner: extern "C" fn(GameUserGlobalData, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
239 ::core::mem::transmute(__vi.method_ptr);
240 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
241 __inner(__receiver, ::core::convert::Into::into(stream), __mi)
242 }
243 }
244 }
245 #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
246 fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
247 unsafe {
248 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 {
250 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
251 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
252 panic!(
253 "unity: virtual slot {}
254 out of range (vtable len {}
255) on the runtime class behind {}
256 (method `{}
257`)",
258 12usize,
259 __vt.len(),
260 <GameUserGlobalData as ::unity::ClassIdentity>::NAME,
261 "OnDeserialize",
262 )
263 });
264 let __inner: extern "C" fn(GameUserGlobalData, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
265 ::core::mem::transmute(__vi.method_ptr);
266 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
267 __inner(
268 __receiver,
269 ::core::convert::Into::into(stream),
270 ::core::convert::Into::into(version),
271 __mi,
272 )
273 }
274 }
275 }
276 #[doc = "`set_LastSaveDataType(crate::app::gamesavedata::GameSaveData_Types)` overload"]
277 fn set_last_save_data_type(self, value: impl ::core::convert::Into<crate::app::gamesavedata::GameSaveData_Types>) -> () {
278 unsafe {
279 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280 ::unity::il2cpp_call!((::unity::module_base()+0x251c3e0usize)as*mut u8,();
281(GameUserGlobalData)__receiver,(crate::app::gamesavedata::GameSaveData_Types)::core::convert::Into::into(value))
282 }
283 }
284 #[doc = "`set_LastSaveDataIndex(i32)` overload"]
285 fn set_last_save_data_index(self, value: impl ::core::convert::Into<i32>) -> () {
286 unsafe {
287 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 ::unity::il2cpp_call!((::unity::module_base()+0x251c400usize)as*mut u8,();
289(GameUserGlobalData)__receiver,(i32)::core::convert::Into::into(value))
290 }
291 }
292 #[doc = "`get_IdentifierCount()` overload"]
293 fn get_identifier_count(self) -> u32 {
294 unsafe {
295 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296 ::unity::il2cpp_call!((::unity::module_base()+0x251c410usize)as*mut u8,u32;
297(GameUserGlobalData)__receiver)
298 }
299 }
300 #[doc = "`set_IdentifierCount(u32)` overload"]
301 fn set_identifier_count(self, value: impl ::core::convert::Into<u32>) -> () {
302 unsafe {
303 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304 ::unity::il2cpp_call!((::unity::module_base()+0x251c420usize)as*mut u8,();
305(GameUserGlobalData)__receiver,(u32)::core::convert::Into::into(value))
306 }
307 }
308 #[doc = "`get_Flag()` overload"]
309 fn get_flag(self) -> crate::app::gameuserglobaldata::GameUserGlobalData_FlagsField {
310 unsafe {
311 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312 ::unity::il2cpp_call!((::unity::module_base()+0x251c430usize)as*mut u8,crate::app::gameuserglobaldata::GameUserGlobalData_FlagsField;
313(GameUserGlobalData)__receiver)
314 }
315 }
316 #[doc = "`Completed()` overload"]
317 fn completed(self) -> () {
318 unsafe {
319 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
320 ::unity::il2cpp_call!((::unity::module_base()+0x25155a0usize)as*mut u8,();
321(GameUserGlobalData)__receiver)
322 }
323 }
324 #[doc = "`ClearCompleted()` overload"]
325 fn clear_completed(self) -> () {
326 unsafe {
327 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 ::unity::il2cpp_call!((::unity::module_base()+0x2515b30usize)as*mut u8,();
329(GameUserGlobalData)__receiver)
330 }
331 }
332 #[doc = "`IsCompleted()` overload"]
333 fn is_completed(self) -> bool {
334 unsafe {
335 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x251c440usize)as*mut u8,bool;
337(GameUserGlobalData)__receiver)
338 }
339 }
340 #[doc = "`SetCompleted(crate::app::chapterdata::ChapterData)` overload"]
341 fn set_completed(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> () {
342 unsafe {
343 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
344 ::unity::il2cpp_call!((::unity::module_base()+0x2515190usize)as*mut u8,();
345(GameUserGlobalData)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
346 }
347 }
348 #[doc = "`ClearCompleted(crate::app::chapterdata::ChapterData)` overload"]
349 fn clear_completed_2(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> () {
350 unsafe {
351 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352 ::unity::il2cpp_call!((::unity::module_base()+0x251c4a0usize)as*mut u8,();
353(GameUserGlobalData)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
354 }
355 }
356 #[doc = "`IsCompleted(::unity::Il2CppString)` overload"]
357 fn is_completed_2(self, cid: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
358 unsafe {
359 let __receiver = <GameUserGlobalData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360 ::unity::il2cpp_call!((::unity::module_base()+0x251c560usize)as*mut u8,bool;
361(GameUserGlobalData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(cid))
362 }
363 }
364}
365
366#[cfg(feature = "app-gameuserglobaldata")]
367impl<__T: IGameUserGlobalData> IGameUserGlobalDataMethods for __T {}
368
369#[cfg(feature = "app-gameuserglobaldata")]
370impl GameUserGlobalData {
371 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
373 }
374
375 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
377 }
378
379 pub fn get_last_save_data_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
381 }
382
383 pub fn get_last_save_data_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
385 }
386
387 pub fn get_last_save_data_index_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
389 }
390
391 pub fn set_last_save_data_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
393 }
394
395 pub fn is_last_save_data_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
397 }
398
399 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
401 }
402
403 pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
405 }
406
407 pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
409 }
410
411 pub fn set_last_save_data_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
413 }
414
415 pub fn set_last_save_data_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
417 }
418
419 pub fn get_identifier_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
421 }
422
423 pub fn set_identifier_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
425 }
426
427 pub fn get_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
429 }
430
431 pub fn completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
433 }
434
435 pub fn clear_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
437 }
438
439 pub fn is_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
441 }
442
443 pub fn set_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
445 }
446
447 pub fn clear_completed_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
449 }
450
451 pub fn is_completed_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
453 }
454
455 pub fn create_identifier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
457 }
458}
459
460#[cfg(feature = "app-gameuserglobaldata")]
461impl GameUserGlobalData {
462 #[doc = "Direct (non-virtual) call to `GameUserGlobalData`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
463 pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
464 let __mi = Self::get_version_method_info();
465 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
466 __inner(this.into(), ::core::option::Option::None)
467 }
468
469 #[doc = "Direct (non-virtual) call to `GameUserGlobalData`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
470 pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
471 let __mi = Self::on_serialize_method_info();
472 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
473 ::core::mem::transmute(__mi.method_ptr);
474 __inner(this.into(), stream, ::core::option::Option::None)
475 }
476
477 #[doc = "Direct (non-virtual) call to `GameUserGlobalData`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
478 pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
479 let __mi = Self::on_deserialize_method_info();
480 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
481 ::core::mem::transmute(__mi.method_ptr);
482 __inner(this.into(), stream, version, ::core::option::Option::None)
483 }
484}
485
486#[cfg(feature = "app-gameuserglobaldata")]
487impl GameUserGlobalData {
488 #[doc = "`.ctor()` — no args"]
489 pub fn new() -> Self {
490 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
491 panic!(
492 "{}
493::{}
494 failed to instantiate",
495 ::core::stringify!(GameUserGlobalData),
496 ::core::stringify!(new),
497 )
498 });
499 <Self as IGameUserGlobalDataMethods>::ctor(this);
500 this
501 }
502}
503
504#[cfg(feature = "app-gameuserglobaldata")]
505pub trait IGameUserGlobalData_FlagsFieldMethods: IGameUserGlobalData_FlagsField {
506 #[doc = "`ToInt(crate::app::gameuserglobaldata::GameUserGlobalData_Flags)` overload"]
507 fn to_int(self, value: impl ::core::convert::Into<crate::app::gameuserglobaldata::GameUserGlobalData_Flags>) -> i32 {
508 unsafe {
509 let __receiver =
510 <GameUserGlobalData_FlagsField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511 {
512 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
513 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
514 panic!(
515 "unity: virtual slot {}
516 out of range (vtable len {}
517) on the runtime class behind {}
518 (method `{}
519`)",
520 5usize,
521 __vt.len(),
522 <GameUserGlobalData_FlagsField as ::unity::ClassIdentity>::NAME,
523 "ToInt",
524 )
525 });
526 let __inner: extern "C" fn(
527 GameUserGlobalData_FlagsField,
528 crate::app::gameuserglobaldata::GameUserGlobalData_Flags,
529 ::unity::OptionalMethod,
530 ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
531 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
532 __inner(__receiver, ::core::convert::Into::into(value), __mi)
533 }
534 }
535 }
536 #[doc = "`.ctor()` overload"]
537 fn ctor(self) -> () {
538 unsafe {
539 let __receiver =
540 <GameUserGlobalData_FlagsField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
541 ::unity::il2cpp_call!((::unity::module_base()+0x1e6e1f0usize)as*mut u8,();
542(GameUserGlobalData_FlagsField)__receiver)
543 }
544 }
545}
546
547#[cfg(feature = "app-gameuserglobaldata")]
548impl<__T: IGameUserGlobalData_FlagsField> IGameUserGlobalData_FlagsFieldMethods for __T {}
549
550#[cfg(feature = "app-gameuserglobaldata")]
551impl GameUserGlobalData_FlagsField {
552 pub fn to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
554 }
555
556 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
558 }
559}
560
561#[cfg(feature = "app-gameuserglobaldata")]
562impl GameUserGlobalData_FlagsField {
563 #[doc = "Direct (non-virtual) call to `GameUserGlobalData_FlagsField`'s own `ToInt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
564 pub unsafe fn to_int(
565 this: impl ::core::convert::Into<::unity::IlInstance>,
566 value: crate::app::gameuserglobaldata::GameUserGlobalData_Flags,
567 ) -> i32 {
568 let __mi = Self::to_int_method_info();
569 let __inner: extern "C" fn(::unity::IlInstance, crate::app::gameuserglobaldata::GameUserGlobalData_Flags, ::unity::OptionalMethod) -> i32 =
570 ::core::mem::transmute(__mi.method_ptr);
571 __inner(this.into(), value, ::core::option::Option::None)
572 }
573}
574
575#[cfg(feature = "app-gameuserglobaldata")]
576impl GameUserGlobalData_FlagsField {
577 #[doc = "`.ctor()` — no args"]
578 pub fn new() -> Self {
579 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
580 panic!(
581 "{}
582::{}
583 failed to instantiate",
584 ::core::stringify!(GameUserGlobalData_FlagsField),
585 ::core::stringify!(new),
586 )
587 });
588 <Self as IGameUserGlobalData_FlagsFieldMethods>::ctor(this);
589 this
590 }
591}
592
593#[cfg(feature = "app-gameuserglobaldata")]
594#[doc(hidden)]
595pub mod prelude {
596 pub use super::{
597 GameUserGlobalData, GameUserGlobalData_Flags, GameUserGlobalData_FlagsField, IGameUserGlobalData, IGameUserGlobalDataMethods,
598 IGameUserGlobalData_FlagsField, IGameUserGlobalData_FlagsFieldMethods,
599 };
600 #[cfg(feature = "app-bitfield32")]
601 pub use crate::app::bitfield32::IBitField32Methods;
602 #[cfg(feature = "app-bitfieldcommon")]
603 pub use crate::app::bitfieldcommon::IBitFieldCommonMethods;
604 #[cfg(feature = "app-bitfieldtemplate32_1")]
605 pub use crate::app::bitfieldtemplate32_1::IBitFieldTemplate32_1Methods;
606 #[cfg(feature = "app-singletonclass_1")]
607 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
608 #[cfg(feature = "system-object")]
609 pub use crate::system::object::IObjectMethods;
610 #[cfg(feature = "system-enum")]
611 pub use crate::system::r#enum::IEnumMethods;
612 #[cfg(feature = "system-valuetype")]
613 pub use crate::system::valuetype::IValueTypeMethods;
614 pub use crate::{
615 app::{
616 bitfield32::IBitField32, bitfieldcommon::IBitFieldCommon, bitfieldtemplate32_1::IBitFieldTemplate32_1,
617 singletonclass_1::ISingletonClass_1,
618 },
619 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
620 };
621}