Skip to main content

engage/generated/app/
gamevariable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gamevariable-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gamevariable/GameVariable_Value.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct GameVariable_Value {
17        pub number: i32,
18        pub string: ::unity::Il2CppString,
19    }
20    impl ::unity::ClassIdentity for GameVariable_Value {
21        const NAME: &'static str = "GameVariable.Value";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for GameVariable_Value {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34
35    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gamevariable/GameVariable.md"))]
36    #[::unity::class(namespace = "App", name = "GameVariable")]
37    #[parent(crate::system::object::Object)]
38    pub struct GameVariable {
39        #[static_field]
40        #[rename(name = "Type_Number")]
41        pub type_number: u8,
42        #[static_field]
43        #[rename(name = "Type_String")]
44        pub type_string: u8,
45        #[static_field]
46        #[rename(name = "Version")]
47        pub version: i32,
48        #[static_field]
49        #[rename(name = "VersionForOnline")]
50        pub version_for_online: i32,
51        #[offset(16)]
52        #[rename(name = "m_Capacity")]
53        pub m_capacity: i32,
54        #[offset(24)]
55        #[rename(name = "m_Dictionary")]
56        pub m_dictionary:
57            crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::gamevariable::GameVariable_Value>,
58        #[offset(32)]
59        #[rename(name = "m_Rewindable")]
60        pub m_rewindable: crate::system::collections::generic::hashset_1::HashSet_1<::unity::Il2CppString>,
61        #[offset(40)]
62        #[rename(name = "m_Monitors")]
63        pub m_monitors: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
64    }
65}
66
67#[cfg(feature = "app-gamevariable-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-gamevariable")]
71impl GameVariable_Value {
72    #[doc = "`.ctor(i32)` overload"]
73    pub fn ctor(&mut self, num: impl ::core::convert::Into<i32>) -> () {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x1e70b80usize)as*mut u8,();
76(*mut GameVariable_Value)self as*mut GameVariable_Value,(i32)::core::convert::Into::into(num))
77        }
78    }
79
80    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
81    pub fn ctor_2(&mut self, str: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x1e70b90usize)as*mut u8,();
84(*mut GameVariable_Value)self as*mut GameVariable_Value,(::unity::Il2CppString)::core::convert::Into::into(str))
85        }
86    }
87
88    #[doc = "`IsNumber()` overload"]
89    pub fn is_number(&mut self) -> bool {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x1e70ba0usize)as*mut u8,bool;
92(*mut GameVariable_Value)self as*mut GameVariable_Value)
93        }
94    }
95
96    #[doc = "`IsString()` overload"]
97    pub fn is_string(&mut self) -> bool {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x1e70bb0usize)as*mut u8,bool;
100(*mut GameVariable_Value)self as*mut GameVariable_Value)
101        }
102    }
103
104    #[doc = "`ToString()` overload"]
105    pub fn to_string(&mut self) -> ::unity::Il2CppString {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x1e70bc0usize)as*mut u8, ::unity::Il2CppString;
108(*mut GameVariable_Value)self as*mut GameVariable_Value)
109        }
110    }
111}
112
113#[cfg(feature = "app-gamevariable")]
114impl GameVariable_Value {
115    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn is_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn is_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134}
135
136#[cfg(feature = "app-gamevariable")]
137impl GameVariable {
138    #[doc = "`IsLocal(::unity::Il2CppString)` overload"]
139    pub fn is_local(key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
140        unsafe {
141            ::unity::il2cpp_call!((::unity::module_base()+0x251feb0usize)as*mut u8,bool;
142(::unity::Il2CppString)::core::convert::Into::into(key))
143        }
144    }
145
146    #[doc = "`IsChapter(::unity::Il2CppString)` overload"]
147    pub fn is_chapter(key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
148        unsafe {
149            ::unity::il2cpp_call!((::unity::module_base()+0x251ff70usize)as*mut u8,bool;
150(::unity::Il2CppString)::core::convert::Into::into(key))
151        }
152    }
153
154    #[doc = "`IsHub(::unity::Il2CppString)` overload"]
155    pub fn is_hub(key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
156        unsafe {
157            ::unity::il2cpp_call!((::unity::module_base()+0x251ffe0usize)as*mut u8,bool;
158(::unity::Il2CppString)::core::convert::Into::into(key))
159        }
160    }
161
162    #[doc = "`IsGlobal(::unity::Il2CppString)` overload"]
163    pub fn is_global(key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
164        unsafe {
165            ::unity::il2cpp_call!((::unity::module_base()+0x25200a0usize)as*mut u8,bool;
166(::unity::Il2CppString)::core::convert::Into::into(key))
167        }
168    }
169}
170
171#[cfg(feature = "app-gamevariable")]
172pub trait IGameVariableMethods: IGameVariable {
173    #[doc = "`.ctor(i32)` overload"]
174    fn ctor(self, capacity: impl ::core::convert::Into<i32>) -> () {
175        unsafe {
176            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x251ab90usize)as*mut u8,();
178(GameVariable)__receiver,(i32)::core::convert::Into::into(capacity))
179        }
180    }
181    #[doc = "`get_Count()` overload"]
182    fn get_count(self) -> i32 {
183        unsafe {
184            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x251e300usize)as*mut u8,i32;
186(GameVariable)__receiver)
187        }
188    }
189    #[doc = "`get_Capacity()` overload"]
190    fn get_capacity(self) -> i32 {
191        unsafe {
192            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x251e360usize)as*mut u8,i32;
194(GameVariable)__receiver)
195        }
196    }
197    #[doc = "`CanRwind(::unity::Il2CppString)` overload"]
198    fn can_rwind(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
199        unsafe {
200            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            ::unity::il2cpp_call!((::unity::module_base()+0x251e370usize)as*mut u8,bool;
202(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
203        }
204    }
205    #[doc = "`Entry(::unity::Il2CppString, i32)` overload"]
206    fn entry(self, key: impl ::core::convert::Into<::unity::Il2CppString>, num: impl ::core::convert::Into<i32>) -> bool {
207        unsafe {
208            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x2512870usize)as*mut u8,bool;
210(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(num))
211        }
212    }
213    #[doc = "`Entry(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
214    fn entry_2(self, key: impl ::core::convert::Into<::unity::Il2CppString>, str: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
215        unsafe {
216            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x251e4b0usize)as*mut u8,bool;
218(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(str))
219        }
220    }
221    #[doc = "`EntryNoRewind(::unity::Il2CppString, i32)` overload"]
222    fn entry_no_rewind(self, key: impl ::core::convert::Into<::unity::Il2CppString>, num: impl ::core::convert::Into<i32>) -> bool {
223        unsafe {
224            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x251e560usize)as*mut u8,bool;
226(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(num))
227        }
228    }
229    #[doc = "`EntryNoRewind(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
230    fn entry_no_rewind_2(
231        self,
232        key: impl ::core::convert::Into<::unity::Il2CppString>,
233        str: impl ::core::convert::Into<::unity::Il2CppString>,
234    ) -> bool {
235        unsafe {
236            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x251e660usize)as*mut u8,bool;
238(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(str))
239        }
240    }
241    #[doc = "`EntryImpl(::unity::Il2CppString, crate::app::gamevariable::GameVariable_Value, bool)` overload"]
242    fn entry_impl(
243        self,
244        key: impl ::core::convert::Into<::unity::Il2CppString>,
245        value: impl ::core::convert::Into<crate::app::gamevariable::GameVariable_Value>,
246        rewindable: impl ::core::convert::Into<bool>,
247    ) -> () {
248        unsafe {
249            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x251e3d0usize)as*mut u8,();
251(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(crate::app::gamevariable::GameVariable_Value)::core::convert::Into::into(value),(bool)::core::convert::Into::into(rewindable))
252        }
253    }
254    #[doc = "`Remove(::unity::Il2CppString)` overload"]
255    fn remove(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
256        unsafe {
257            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x251e760usize)as*mut u8,bool;
259(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
260        }
261    }
262    #[doc = "`RemoveImpl(::unity::Il2CppString)` overload"]
263    fn remove_impl(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
264        unsafe {
265            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x251e7f0usize)as*mut u8,();
267(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
268        }
269    }
270    #[doc = "`Get(::unity::Il2CppString)` overload"]
271    fn get(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
272        unsafe {
273            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x251e8d0usize)as*mut u8,i32;
275(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
276        }
277    }
278    #[doc = "`IsString(::unity::Il2CppString)` overload"]
279    fn is_string(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
280        unsafe {
281            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x251e950usize)as*mut u8,bool;
283(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
284        }
285    }
286    #[doc = "`GetNumber(::unity::Il2CppString)` overload"]
287    fn get_number(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
288        unsafe {
289            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x251e9d0usize)as*mut u8,i32;
291(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
292        }
293    }
294    #[doc = "`GetBool(::unity::Il2CppString)` overload"]
295    fn get_bool(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
296        unsafe {
297            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x251ea50usize)as*mut u8,bool;
299(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
300        }
301    }
302    #[doc = "`TryGetBool(::unity::Il2CppString)` overload"]
303    fn try_get_bool(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
304        unsafe {
305            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306            ::unity::il2cpp_call!((::unity::module_base()+0x251eae0usize)as*mut u8,bool;
307(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
308        }
309    }
310    #[doc = "`GetString(::unity::Il2CppString)` overload"]
311    fn get_string(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
312        unsafe {
313            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x251eb70usize)as*mut u8, ::unity::Il2CppString;
315(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
316        }
317    }
318    #[doc = "`TryGet(::unity::Il2CppString, i32)` overload"]
319    fn try_get(self, key: impl ::core::convert::Into<::unity::Il2CppString>, empty: impl ::core::convert::Into<i32>) -> i32 {
320        unsafe {
321            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            ::unity::il2cpp_call!((::unity::module_base()+0x251ebf0usize)as*mut u8,i32;
323(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(empty))
324        }
325    }
326    #[doc = "`TryGet(::unity::Il2CppString, *muti32)` overload"]
327    fn try_get_2(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> (bool, i32) {
328        unsafe {
329            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
330            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
331            let __ret = {
332                ::unity::il2cpp_call!((::unity::module_base()+0x251ec80usize)as*mut u8,bool;
333(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(*mut i32)__out_0.as_mut_ptr())
334            };
335            (__ret, __out_0.assume_init())
336        }
337    }
338    #[doc = "`Set(::unity::Il2CppString, bool)` overload"]
339    fn set(self, key: impl ::core::convert::Into<::unity::Il2CppString>, enable: impl ::core::convert::Into<bool>) -> () {
340        unsafe {
341            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342            ::unity::il2cpp_call!((::unity::module_base()+0x251ed10usize)as*mut u8,();
343(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(bool)::core::convert::Into::into(enable))
344        }
345    }
346    #[doc = "`Set(::unity::Il2CppString, i32)` overload"]
347    fn set_2(self, key: impl ::core::convert::Into<::unity::Il2CppString>, num: impl ::core::convert::Into<i32>) -> () {
348        unsafe {
349            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            ::unity::il2cpp_call!((::unity::module_base()+0x251efb0usize)as*mut u8,();
351(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(num))
352        }
353    }
354    #[doc = "`Set(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
355    fn set_3(self, key: impl ::core::convert::Into<::unity::Il2CppString>, str: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
356        unsafe {
357            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358            ::unity::il2cpp_call!((::unity::module_base()+0x251f120usize)as*mut u8,();
359(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(str))
360        }
361    }
362    #[doc = "`SetNumber(::unity::Il2CppString, i32)` overload"]
363    fn set_number(self, key: impl ::core::convert::Into<::unity::Il2CppString>, num: impl ::core::convert::Into<i32>) -> () {
364        unsafe {
365            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366            ::unity::il2cpp_call!((::unity::module_base()+0x251f290usize)as*mut u8,();
367(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(num))
368        }
369    }
370    #[doc = "`SetString(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
371    fn set_string(self, key: impl ::core::convert::Into<::unity::Il2CppString>, str: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
372        unsafe {
373            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
374            ::unity::il2cpp_call!((::unity::module_base()+0x251f3f0usize)as*mut u8,();
375(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(::unity::Il2CppString)::core::convert::Into::into(str))
376        }
377    }
378    #[doc = "`Add(::unity::Il2CppString, i32, i32, i32)` overload"]
379    fn add(
380        self,
381        key: impl ::core::convert::Into<::unity::Il2CppString>,
382        count: impl ::core::convert::Into<i32>,
383        min: impl ::core::convert::Into<i32>,
384        max: impl ::core::convert::Into<i32>,
385    ) -> i32 {
386        unsafe {
387            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388            ::unity::il2cpp_call!((::unity::module_base()+0x251f550usize)as*mut u8,i32;
389(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key),(i32)::core::convert::Into::into(count),(i32)::core::convert::Into::into(min),(i32)::core::convert::Into::into(max))
390        }
391    }
392    #[doc = "`ClearAll()` overload"]
393    fn clear_all(self) -> () {
394        unsafe {
395            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396            ::unity::il2cpp_call!((::unity::module_base()+0x2511840usize)as*mut u8,();
397(GameVariable)__receiver)
398        }
399    }
400    #[doc = "`ClearLocal()` overload"]
401    fn clear_local(self) -> () {
402        unsafe {
403            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404            ::unity::il2cpp_call!((::unity::module_base()+0x2512ba0usize)as*mut u8,();
405(GameVariable)__receiver)
406        }
407    }
408    #[doc = "`ClearChapter()` overload"]
409    fn clear_chapter(self) -> () {
410        unsafe {
411            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412            ::unity::il2cpp_call!((::unity::module_base()+0x251f860usize)as*mut u8,();
413(GameVariable)__receiver)
414        }
415    }
416    #[doc = "`ClearHub()` overload"]
417    fn clear_hub(self) -> () {
418        unsafe {
419            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
420            ::unity::il2cpp_call!((::unity::module_base()+0x251fa40usize)as*mut u8,();
421(GameVariable)__receiver)
422        }
423    }
424    #[doc = "`ClearStartsWith(::unity::Il2CppString)` overload"]
425    fn clear_starts_with(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
426        unsafe {
427            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
428            ::unity::il2cpp_call!((::unity::module_base()+0x251fc70usize)as*mut u8,();
429(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
430        }
431    }
432    #[doc = "`FindStartsWith(::unity::Il2CppString)` overload"]
433    fn find_starts_with(
434        self,
435        name: impl ::core::convert::Into<::unity::Il2CppString>,
436    ) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
437        unsafe {
438            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439            ::unity::il2cpp_call!((::unity::module_base()+0x251fca0usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
440(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
441        }
442    }
443    #[doc = "`ClearKeys(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>)` overload"]
444    fn clear_keys(self, keys: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>>) -> () {
445        unsafe {
446            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
447            ::unity::il2cpp_call!((::unity::module_base()+0x251f730usize)as*mut u8,();
448(GameVariable)__receiver,(crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString>)::core::convert::Into::into(keys))
449        }
450    }
451    #[doc = "`IsExist(::unity::Il2CppString)` overload"]
452    fn is_exist(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
453        unsafe {
454            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455            ::unity::il2cpp_call!((::unity::module_base()+0x251fe50usize)as*mut u8,bool;
456(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
457        }
458    }
459    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
460    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
461        unsafe {
462            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463            ::unity::il2cpp_call!((::unity::module_base()+0x2517b50usize)as*mut u8,();
464(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
465        }
466    }
467    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
468    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
469        unsafe {
470            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471            ::unity::il2cpp_call!((::unity::module_base()+0x25191e0usize)as*mut u8,();
472(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
473        }
474    }
475    #[doc = "`SerializeKeyValue(crate::app::stream_2::Stream_2, crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<::unity::Il2CppString,crate::app::gamevariable::GameVariable_Value>)` overload"]
476    fn serialize_key_value(
477        self,
478        stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>,
479        key_value: impl ::core::convert::Into<
480            crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<::unity::Il2CppString, crate::app::gamevariable::GameVariable_Value>,
481        >,
482    ) -> () {
483        unsafe {
484            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485            ::unity::il2cpp_call!((::unity::module_base()+0x2520110usize)as*mut u8,();
486(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream),(crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2< ::unity::Il2CppString,crate::app::gamevariable::GameVariable_Value>)::core::convert::Into::into(key_value))
487        }
488    }
489    #[doc = "`DeserializeKeyValue(crate::app::stream_2::Stream_2)` overload"]
490    fn deserialize_key_value(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
491        unsafe {
492            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493            ::unity::il2cpp_call!((::unity::module_base()+0x25201d0usize)as*mut u8,();
494(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
495        }
496    }
497    #[doc = "`SerializeForOnline(crate::app::stream_2::Stream_2)` overload"]
498    fn serialize_for_online(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
499        unsafe {
500            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
501            ::unity::il2cpp_call!((::unity::module_base()+0x251a500usize)as*mut u8,();
502(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
503        }
504    }
505    #[doc = "`DeserializeForOnline(crate::app::stream_2::Stream_2)` overload"]
506    fn deserialize_for_online(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
507        unsafe {
508            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
509            ::unity::il2cpp_call!((::unity::module_base()+0x251a750usize)as*mut u8,();
510(GameVariable)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
511        }
512    }
513    #[doc = "`FindKeys(::unity::Il2CppString)` overload"]
514    fn find_keys(
515        self,
516        header: impl ::core::convert::Into<::unity::Il2CppString>,
517    ) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
518        unsafe {
519            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520            ::unity::il2cpp_call!((::unity::module_base()+0x2520a40usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
521(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(header))
522        }
523    }
524    #[doc = "`GetName(::unity::Il2CppString)` overload"]
525    fn get_name(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
526        unsafe {
527            let __receiver = <GameVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
528            ::unity::il2cpp_call!((::unity::module_base()+0x2520bf0usize)as*mut u8, ::unity::Il2CppString;
529(GameVariable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
530        }
531    }
532}
533
534#[cfg(feature = "app-gamevariable")]
535impl<__T: IGameVariable> IGameVariableMethods for __T {}
536
537#[cfg(feature = "app-gamevariable")]
538impl GameVariable {
539    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
541    }
542
543    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
545    }
546
547    pub fn get_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
549    }
550
551    pub fn can_rwind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
553    }
554
555    pub fn entry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
557    }
558
559    pub fn entry_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
561    }
562
563    pub fn entry_no_rewind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
565    }
566
567    pub fn entry_no_rewind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
569    }
570
571    pub fn entry_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
573    }
574
575    pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
577    }
578
579    pub fn remove_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
581    }
582
583    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
585    }
586
587    pub fn is_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
589    }
590
591    pub fn get_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
593    }
594
595    pub fn get_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
597    }
598
599    pub fn try_get_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
601    }
602
603    pub fn get_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
605    }
606
607    pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
609    }
610
611    pub fn try_get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
613    }
614
615    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
617    }
618
619    pub fn set_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
621    }
622
623    pub fn set_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
625    }
626
627    pub fn set_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
629    }
630
631    pub fn set_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
633    }
634
635    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
637    }
638
639    pub fn clear_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
641    }
642
643    pub fn clear_local_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
645    }
646
647    pub fn clear_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
649    }
650
651    pub fn clear_hub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
653    }
654
655    pub fn clear_starts_with_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
657    }
658
659    pub fn find_starts_with_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
661    }
662
663    pub fn clear_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
665    }
666
667    pub fn is_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
669    }
670
671    pub fn is_local_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
673    }
674
675    pub fn is_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
677    }
678
679    pub fn is_hub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
681    }
682
683    pub fn is_global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
685    }
686
687    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
689    }
690
691    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
693    }
694
695    pub fn serialize_key_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
697    }
698
699    pub fn deserialize_key_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
701    }
702
703    pub fn serialize_for_online_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
705    }
706
707    pub fn deserialize_for_online_method_info() -> &'static ::unity::il2cpp::MethodInfo {
708        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
709    }
710
711    pub fn find_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
712        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
713    }
714
715    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
716        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
717    }
718}
719
720#[cfg(feature = "app-gamevariable")]
721impl GameVariable {
722    #[doc = "`.ctor(i32)` — overload selector"]
723    pub fn new(capacity: i32) -> Self {
724        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
725            panic!(
726                "{}
727::{}
728 failed to instantiate",
729                ::core::stringify!(GameVariable),
730                ::core::stringify!(new),
731            )
732        });
733        <Self as IGameVariableMethods>::ctor(this, capacity);
734        this
735    }
736}
737
738#[cfg(feature = "app-gamevariable")]
739#[doc(hidden)]
740pub mod prelude {
741    pub use super::{GameVariable, GameVariable_Value, IGameVariable, IGameVariableMethods};
742    #[cfg(feature = "system-object")]
743    pub use crate::system::object::IObjectMethods;
744    #[cfg(feature = "system-valuetype")]
745    pub use crate::system::valuetype::IValueTypeMethods;
746    pub use crate::system::{object::IObject, valuetype::IValueType};
747}