Skip to main content

engage/generated/app/
gameuserrestartdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gameuserrestartdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            singletonclass_1::{ISingletonClass_1, SingletonClass_1},
11            stream_2::{IStream_2, Stream_2},
12        },
13        system::{
14            collections::generic::dictionary_2::{Dictionary_2, IDictionary_2},
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_Targtes.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct GameUserRestartData_Targtes {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for GameUserRestartData_Targtes {
28        const NAME: &'static str = "GameUserRestartData.Targtes";
29        const NAMESPACE: &'static str = "App";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for GameUserRestartData_Targtes {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl GameUserRestartData_Targtes {
42        pub fn chapter() -> Self {
43            Self { value: 0 }
44        }
45
46        pub fn sortie() -> Self {
47            Self { value: 1 }
48        }
49
50        pub fn num() -> Self {
51            Self { value: 2 }
52        }
53
54        pub fn none() -> Self {
55            Self { value: -1 }
56        }
57    }
58
59    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_GameConfigWriter.md"))]
60    #[::unity::class(namespace = "App", name = "GameUserRestartData.GameConfigWriter")]
61    #[parent(crate::app::stream_2::Stream_2)]
62    pub struct GameUserRestartData_GameConfigWriter {}
63
64    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_Growth.md"))]
65    #[::unity::class(namespace = "App", name = "GameUserRestartData.Growth")]
66    #[parent(crate::system::object::Object)]
67    pub struct GameUserRestartData_Growth {
68        #[offset(16)]
69        #[rename(name = "Job")]
70        pub job: crate::app::jobdata::JobData,
71        #[offset(24)]
72        #[rename(name = "Level")]
73        pub level: i32,
74        #[offset(28)]
75        #[rename(name = "Exp")]
76        pub exp: i32,
77        #[offset(32)]
78        #[rename(name = "GrowCapability")]
79        pub grow_capability: crate::app::capability::Capability,
80        #[offset(40)]
81        #[rename(name = "LevelCapability")]
82        pub level_capability: crate::app::unitbasecapability::UnitBaseCapability,
83    }
84
85    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_CompleteWriter.md"))]
86    #[::unity::class(namespace = "App", name = "GameUserRestartData.CompleteWriter")]
87    #[parent(crate::system::object::Object)]
88    pub struct GameUserRestartData_CompleteWriter {
89        #[offset(16)]
90        #[rename(name = "m_Chapter")]
91        pub m_chapter: crate::app::chapterdata::ChapterData,
92        #[offset(24)]
93        #[rename(name = "m_Records")]
94        pub m_records: crate::system::collections::generic::list_1::List_1<crate::app::chapterrecord::ChapterRecord_Record>,
95        #[offset(32)]
96        #[rename(name = "m_Encounters")]
97        pub m_encounters: ::unity::Array<i32>,
98    }
99
100    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData.md"))]
101    #[::unity::class(namespace = "App", name = "GameUserRestartData")]
102    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::gameuserrestartdata::GameUserRestartData>)]
103    pub struct GameUserRestartData {
104        #[offset(32)]
105        #[rename(name = "m_Streams")]
106        pub m_streams: ::unity::Array<crate::app::gameuserrestartdata::GameUserRestartData_RestartStream>,
107        #[offset(40)]
108        #[rename(name = "m_Target")]
109        pub m_target: crate::app::gameuserrestartdata::GameUserRestartData_Targtes,
110        #[offset(44)]
111        #[rename(name = "m_KeepLevel")]
112        pub m_keep_level: bool,
113    }
114
115    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_GrowthWriter.md"))]
116    #[::unity::class(namespace = "App", name = "GameUserRestartData.GrowthWriter")]
117    #[parent(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,crate::app::gameuserrestartdata::GameUserRestartData_Growth>)]
118    pub struct GameUserRestartData_GrowthWriter {}
119
120    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_RestartStream.md"))]
121    #[::unity::class(namespace = "App", name = "GameUserRestartData.RestartStream")]
122    #[parent(crate::app::stream_2::Stream_2)]
123    pub struct GameUserRestartData_RestartStream {
124        #[static_field]
125        #[rename(name = "Version")]
126        pub version: i32,
127        #[static_field]
128        #[rename(name = "MaxSize")]
129        pub max_size: i32,
130        #[static_field]
131        #[rename(name = "MagicNumber")]
132        pub magic_number: i32,
133    }
134
135    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_RecordWriter.md"))]
136    #[::unity::class(namespace = "App", name = "GameUserRestartData.RecordWriter")]
137    #[parent(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,i32>)]
138    pub struct GameUserRestartData_RecordWriter {}
139
140    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameuserrestartdata/GameUserRestartData_VariableWriter.md"))]
141    #[::unity::class(namespace = "App", name = "GameUserRestartData.VariableWriter")]
142    #[parent(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,i32>)]
143    pub struct GameUserRestartData_VariableWriter {}
144}
145
146#[cfg(feature = "app-gameuserrestartdata-types")]
147pub use __types::*;
148
149#[cfg(feature = "app-gameuserrestartdata")]
150pub trait IGameUserRestartData_GameConfigWriterMethods: IGameUserRestartData_GameConfigWriter {
151    #[doc = "`.ctor()` overload"]
152    fn ctor(self) -> () {
153        unsafe {
154            let __receiver = <GameUserRestartData_GameConfigWriter as ::unity::FromIlInstance>::from_il_instance(
155                <Self as ::unity::SystemObject>::as_instance(self),
156            );
157            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e820usize)as*mut u8,();
158(GameUserRestartData_GameConfigWriter)__receiver)
159        }
160    }
161    #[doc = "`Read()` overload"]
162    fn read(self) -> () {
163        unsafe {
164            let __receiver = <GameUserRestartData_GameConfigWriter as ::unity::FromIlInstance>::from_il_instance(
165                <Self as ::unity::SystemObject>::as_instance(self),
166            );
167            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e830usize)as*mut u8,();
168(GameUserRestartData_GameConfigWriter)__receiver)
169        }
170    }
171    #[doc = "`Write()` overload"]
172    fn write(self) -> () {
173        unsafe {
174            let __receiver = <GameUserRestartData_GameConfigWriter as ::unity::FromIlInstance>::from_il_instance(
175                <Self as ::unity::SystemObject>::as_instance(self),
176            );
177            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e8c0usize)as*mut u8,();
178(GameUserRestartData_GameConfigWriter)__receiver)
179        }
180    }
181}
182
183#[cfg(feature = "app-gameuserrestartdata")]
184impl<__T: IGameUserRestartData_GameConfigWriter> IGameUserRestartData_GameConfigWriterMethods for __T {}
185
186#[cfg(feature = "app-gameuserrestartdata")]
187impl GameUserRestartData_GameConfigWriter {
188    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
190    }
191
192    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
194    }
195
196    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
198    }
199}
200
201#[cfg(feature = "app-gameuserrestartdata")]
202impl GameUserRestartData_GameConfigWriter {
203    #[doc = "`.ctor()` — no args"]
204    pub fn new() -> Self {
205        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206            panic!(
207                "{}
208::{}
209 failed to instantiate",
210                ::core::stringify!(GameUserRestartData_GameConfigWriter),
211                ::core::stringify!(new),
212            )
213        });
214        <Self as IGameUserRestartData_GameConfigWriterMethods>::ctor(this);
215        this
216    }
217}
218
219#[cfg(feature = "app-gameuserrestartdata")]
220pub trait IGameUserRestartData_GrowthMethods: IGameUserRestartData_Growth {
221    #[doc = "`.ctor()` overload"]
222    fn ctor(self) -> () {
223        unsafe {
224            let __receiver =
225                <GameUserRestartData_Growth as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e950usize)as*mut u8,();
227(GameUserRestartData_Growth)__receiver)
228        }
229    }
230}
231
232#[cfg(feature = "app-gameuserrestartdata")]
233impl<__T: IGameUserRestartData_Growth> IGameUserRestartData_GrowthMethods for __T {}
234
235#[cfg(feature = "app-gameuserrestartdata")]
236impl GameUserRestartData_Growth {
237    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
239    }
240}
241
242#[cfg(feature = "app-gameuserrestartdata")]
243impl GameUserRestartData_Growth {
244    #[doc = "`.ctor()` — no args"]
245    pub fn new() -> Self {
246        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
247            panic!(
248                "{}
249::{}
250 failed to instantiate",
251                ::core::stringify!(GameUserRestartData_Growth),
252                ::core::stringify!(new),
253            )
254        });
255        <Self as IGameUserRestartData_GrowthMethods>::ctor(this);
256        this
257    }
258}
259
260#[cfg(feature = "app-gameuserrestartdata")]
261pub trait IGameUserRestartData_CompleteWriterMethods: IGameUserRestartData_CompleteWriter {
262    #[doc = "`Read()` overload"]
263    fn read(self) -> () {
264        unsafe {
265            let __receiver =
266                <GameUserRestartData_CompleteWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e250usize)as*mut u8,();
268(GameUserRestartData_CompleteWriter)__receiver)
269        }
270    }
271    #[doc = "`Write()` overload"]
272    fn write(self) -> () {
273        unsafe {
274            let __receiver =
275                <GameUserRestartData_CompleteWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e430usize)as*mut u8,();
277(GameUserRestartData_CompleteWriter)__receiver)
278        }
279    }
280    #[doc = "`.ctor()` overload"]
281    fn ctor(self) -> () {
282        unsafe {
283            let __receiver =
284                <GameUserRestartData_CompleteWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            ::unity::il2cpp_call!((::unity::module_base()+0x1e6e750usize)as*mut u8,();
286(GameUserRestartData_CompleteWriter)__receiver)
287        }
288    }
289}
290
291#[cfg(feature = "app-gameuserrestartdata")]
292impl<__T: IGameUserRestartData_CompleteWriter> IGameUserRestartData_CompleteWriterMethods for __T {}
293
294#[cfg(feature = "app-gameuserrestartdata")]
295impl GameUserRestartData_CompleteWriter {
296    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298    }
299
300    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302    }
303
304    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306    }
307}
308
309#[cfg(feature = "app-gameuserrestartdata")]
310impl GameUserRestartData_CompleteWriter {
311    #[doc = "`.ctor()` — no args"]
312    pub fn new() -> Self {
313        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
314            panic!(
315                "{}
316::{}
317 failed to instantiate",
318                ::core::stringify!(GameUserRestartData_CompleteWriter),
319                ::core::stringify!(new),
320            )
321        });
322        <Self as IGameUserRestartData_CompleteWriterMethods>::ctor(this);
323        this
324    }
325}
326
327#[cfg(feature = "app-gameuserrestartdata")]
328impl GameUserRestartData {
329    #[doc = "`Save(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)` overload"]
330    pub fn save(target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>) -> () {
331        unsafe {
332            ::unity::il2cpp_call!((::unity::module_base()+0x251dcf0usize)as*mut u8,();
333(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target))
334        }
335    }
336
337    #[doc = "`Load(crate::app::gameuserrestartdata::GameUserRestartData_Targtes, bool, bool, bool)` overload"]
338    pub fn load(
339        target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>,
340        keep_level: impl ::core::convert::Into<bool>,
341        keep_achieve: impl ::core::convert::Into<bool>,
342        completed: impl ::core::convert::Into<bool>,
343    ) -> bool {
344        unsafe {
345            ::unity::il2cpp_call!((::unity::module_base()+0x251ddb0usize)as*mut u8,bool;
346(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target),(bool)::core::convert::Into::into(keep_level),(bool)::core::convert::Into::into(keep_achieve),(bool)::core::convert::Into::into(completed))
347        }
348    }
349
350    #[doc = "`Clear()` overload"]
351    pub fn clear() -> () {
352        unsafe {
353            ::unity::il2cpp_call!((::unity::module_base()+0x251dc30usize)as*mut u8,();
354            )
355        }
356    }
357
358    #[doc = "`IsEnable(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)` overload"]
359    pub fn is_enable(target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>) -> bool {
360        unsafe {
361            ::unity::il2cpp_call!((::unity::module_base()+0x251dea0usize)as*mut u8,bool;
362(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target))
363        }
364    }
365
366    #[doc = "`GetSize(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)` overload"]
367    pub fn get_size(target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>) -> i32 {
368        unsafe {
369            ::unity::il2cpp_call!((::unity::module_base()+0x251df60usize)as*mut u8,i32;
370(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target))
371        }
372    }
373
374    #[doc = "`GetChapter(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)` overload"]
375    pub fn get_chapter(
376        target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>,
377    ) -> crate::app::chapterdata::ChapterData {
378        unsafe {
379            ::unity::il2cpp_call!((::unity::module_base()+0x251e020usize)as*mut u8,crate::app::chapterdata::ChapterData;
380(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target))
381        }
382    }
383
384    #[doc = "`GetTarget()` overload"]
385    pub fn get_target() -> crate::app::gameuserrestartdata::GameUserRestartData_Targtes {
386        unsafe {
387            ::unity::il2cpp_call!((::unity::module_base()+0x251e0d0usize)as*mut u8,crate::app::gameuserrestartdata::GameUserRestartData_Targtes;
388            )
389        }
390    }
391
392    #[doc = "`IsKeepLevel()` overload"]
393    pub fn is_keep_level() -> bool {
394        unsafe {
395            ::unity::il2cpp_call!((::unity::module_base()+0x251e150usize)as*mut u8,bool;
396            )
397        }
398    }
399
400    #[doc = "`SetTarget(crate::app::gameuserrestartdata::GameUserRestartData_Targtes, bool)` overload"]
401    pub fn set_target(
402        target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>,
403        keep_level: impl ::core::convert::Into<bool>,
404    ) -> () {
405        unsafe {
406            ::unity::il2cpp_call!((::unity::module_base()+0x251e1d0usize)as*mut u8,();
407(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target),(bool)::core::convert::Into::into(keep_level))
408        }
409    }
410}
411
412#[cfg(feature = "app-gameuserrestartdata")]
413pub trait IGameUserRestartDataMethods: IGameUserRestartData {
414    #[doc = "`GetStream(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)` overload"]
415    fn get_stream(
416        self,
417        target: impl ::core::convert::Into<crate::app::gameuserrestartdata::GameUserRestartData_Targtes>,
418    ) -> crate::app::gameuserrestartdata::GameUserRestartData_RestartStream {
419        unsafe {
420            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421            ::unity::il2cpp_call!((::unity::module_base()+0x251d7e0usize)as*mut u8,crate::app::gameuserrestartdata::GameUserRestartData_RestartStream;
422(GameUserRestartData)__receiver,(crate::app::gameuserrestartdata::GameUserRestartData_Targtes)::core::convert::Into::into(target))
423        }
424    }
425    #[doc = "`OnCreate()` overload"]
426    fn on_create(self) -> () {
427        unsafe {
428            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429            {
430                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
431                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
432                    panic!(
433                        "unity: virtual slot {}
434 out of range (vtable len {}
435) on the runtime class behind {}
436 (method `{}
437`)",
438                        5usize,
439                        __vt.len(),
440                        <GameUserRestartData as ::unity::ClassIdentity>::NAME,
441                        "OnCreate",
442                    )
443                });
444                let __inner: extern "C" fn(GameUserRestartData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
445                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
446                __inner(__receiver, __mi)
447            }
448        }
449    }
450    #[doc = "`OnDispose()` overload"]
451    fn on_dispose(self) -> () {
452        unsafe {
453            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
454            {
455                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
456                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
457                    panic!(
458                        "unity: virtual slot {}
459 out of range (vtable len {}
460) on the runtime class behind {}
461 (method `{}
462`)",
463                        6usize,
464                        __vt.len(),
465                        <GameUserRestartData as ::unity::ClassIdentity>::NAME,
466                        "OnDispose",
467                    )
468                });
469                let __inner: extern "C" fn(GameUserRestartData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
470                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
471                __inner(__receiver, __mi)
472            }
473        }
474    }
475    #[doc = "`get_Version()` overload"]
476    fn get_version(self) -> i32 {
477        unsafe {
478            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479            {
480                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
481                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
482                    panic!(
483                        "unity: virtual slot {}
484 out of range (vtable len {}
485) on the runtime class behind {}
486 (method `{}
487`)",
488                        4usize,
489                        __vt.len(),
490                        <GameUserRestartData as ::unity::ClassIdentity>::NAME,
491                        "get_Version",
492                    )
493                });
494                let __inner: extern "C" fn(GameUserRestartData, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
495                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
496                __inner(__receiver, __mi)
497            }
498        }
499    }
500    #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
501    fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
502        unsafe {
503            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
504            {
505                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
506                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
507                    panic!(
508                        "unity: virtual slot {}
509 out of range (vtable len {}
510) on the runtime class behind {}
511 (method `{}
512`)",
513                        11usize,
514                        __vt.len(),
515                        <GameUserRestartData as ::unity::ClassIdentity>::NAME,
516                        "OnSerialize",
517                    )
518                });
519                let __inner: extern "C" fn(GameUserRestartData, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
520                    ::core::mem::transmute(__vi.method_ptr);
521                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
522                __inner(__receiver, ::core::convert::Into::into(stream), __mi)
523            }
524        }
525    }
526    #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
527    fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
528        unsafe {
529            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
530            {
531                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
532                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
533                    panic!(
534                        "unity: virtual slot {}
535 out of range (vtable len {}
536) on the runtime class behind {}
537 (method `{}
538`)",
539                        12usize,
540                        __vt.len(),
541                        <GameUserRestartData as ::unity::ClassIdentity>::NAME,
542                        "OnDeserialize",
543                    )
544                });
545                let __inner: extern "C" fn(GameUserRestartData, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
546                    ::core::mem::transmute(__vi.method_ptr);
547                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
548                __inner(
549                    __receiver,
550                    ::core::convert::Into::into(stream),
551                    ::core::convert::Into::into(version),
552                    __mi,
553                )
554            }
555        }
556    }
557    #[doc = "`.ctor()` overload"]
558    fn ctor(self) -> () {
559        unsafe {
560            let __receiver = <GameUserRestartData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561            ::unity::il2cpp_call!((::unity::module_base()+0x251e270usize)as*mut u8,();
562(GameUserRestartData)__receiver)
563        }
564    }
565}
566
567#[cfg(feature = "app-gameuserrestartdata")]
568impl<__T: IGameUserRestartData> IGameUserRestartDataMethods for __T {}
569
570#[cfg(feature = "app-gameuserrestartdata")]
571impl GameUserRestartData {
572    pub fn get_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
574    }
575
576    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
578    }
579
580    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
582    }
583
584    pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
586    }
587
588    pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
590    }
591
592    pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
594    }
595
596    pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
598    }
599
600    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
602    }
603
604    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
606    }
607
608    pub fn is_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
610    }
611
612    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
614    }
615
616    pub fn get_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
618    }
619
620    pub fn get_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
622    }
623
624    pub fn is_keep_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
626    }
627
628    pub fn set_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
630    }
631
632    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
634    }
635}
636
637#[cfg(feature = "app-gameuserrestartdata")]
638impl GameUserRestartData {
639    #[doc = "Direct (non-virtual) call to `GameUserRestartData`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
640    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
641        let __mi = Self::on_create_method_info();
642        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
643        __inner(this.into(), ::core::option::Option::None)
644    }
645
646    #[doc = "Direct (non-virtual) call to `GameUserRestartData`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
647    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
648        let __mi = Self::on_dispose_method_info();
649        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
650        __inner(this.into(), ::core::option::Option::None)
651    }
652
653    #[doc = "Direct (non-virtual) call to `GameUserRestartData`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
654    pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
655        let __mi = Self::get_version_method_info();
656        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
657        __inner(this.into(), ::core::option::Option::None)
658    }
659
660    #[doc = "Direct (non-virtual) call to `GameUserRestartData`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
661    pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
662        let __mi = Self::on_serialize_method_info();
663        let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
664            ::core::mem::transmute(__mi.method_ptr);
665        __inner(this.into(), stream, ::core::option::Option::None)
666    }
667
668    #[doc = "Direct (non-virtual) call to `GameUserRestartData`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
669    pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
670        let __mi = Self::on_deserialize_method_info();
671        let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
672            ::core::mem::transmute(__mi.method_ptr);
673        __inner(this.into(), stream, version, ::core::option::Option::None)
674    }
675}
676
677#[cfg(feature = "app-gameuserrestartdata")]
678impl GameUserRestartData {
679    #[doc = "`.ctor()` — no args"]
680    pub fn new() -> Self {
681        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
682            panic!(
683                "{}
684::{}
685 failed to instantiate",
686                ::core::stringify!(GameUserRestartData),
687                ::core::stringify!(new),
688            )
689        });
690        <Self as IGameUserRestartDataMethods>::ctor(this);
691        this
692    }
693}
694
695#[cfg(feature = "app-gameuserrestartdata")]
696pub trait IGameUserRestartData_GrowthWriterMethods: IGameUserRestartData_GrowthWriter {
697    #[doc = "`Read()` overload"]
698    fn read(self) -> () {
699        unsafe {
700            let __receiver =
701                <GameUserRestartData_GrowthWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
702            ::unity::il2cpp_call!((::unity::module_base()+0x1e6ea10usize)as*mut u8,();
703(GameUserRestartData_GrowthWriter)__receiver)
704        }
705    }
706    #[doc = "`Write()` overload"]
707    fn write(self) -> () {
708        unsafe {
709            let __receiver =
710                <GameUserRestartData_GrowthWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
711            ::unity::il2cpp_call!((::unity::module_base()+0x1e6ed00usize)as*mut u8,();
712(GameUserRestartData_GrowthWriter)__receiver)
713        }
714    }
715    #[doc = "`.ctor()` overload"]
716    fn ctor(self) -> () {
717        unsafe {
718            let __receiver =
719                <GameUserRestartData_GrowthWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
720            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f3a0usize)as*mut u8,();
721(GameUserRestartData_GrowthWriter)__receiver)
722        }
723    }
724}
725
726#[cfg(feature = "app-gameuserrestartdata")]
727impl<__T: IGameUserRestartData_GrowthWriter> IGameUserRestartData_GrowthWriterMethods for __T {}
728
729#[cfg(feature = "app-gameuserrestartdata")]
730impl GameUserRestartData_GrowthWriter {
731    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
732        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
733    }
734
735    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
736        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
737    }
738
739    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
740        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
741    }
742}
743
744#[cfg(feature = "app-gameuserrestartdata")]
745impl GameUserRestartData_GrowthWriter {
746    #[doc = "`.ctor()` — no args"]
747    pub fn new() -> Self {
748        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
749            panic!(
750                "{}
751::{}
752 failed to instantiate",
753                ::core::stringify!(GameUserRestartData_GrowthWriter),
754                ::core::stringify!(new),
755            )
756        });
757        <Self as IGameUserRestartData_GrowthWriterMethods>::ctor(this);
758        this
759    }
760}
761
762#[cfg(feature = "app-gameuserrestartdata")]
763pub trait IGameUserRestartData_RestartStreamMethods: IGameUserRestartData_RestartStream {
764    #[doc = "`.ctor()` overload"]
765    fn ctor(self) -> () {
766        unsafe {
767            let __receiver =
768                <GameUserRestartData_RestartStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
769            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f920usize)as*mut u8,();
770(GameUserRestartData_RestartStream)__receiver)
771        }
772    }
773    #[doc = "`TryReadHeader()` overload"]
774    fn try_read_header(self) -> crate::app::chapterdata::ChapterData {
775        unsafe {
776            let __receiver =
777                <GameUserRestartData_RestartStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
778            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f930usize)as*mut u8,crate::app::chapterdata::ChapterData;
779(GameUserRestartData_RestartStream)__receiver)
780        }
781    }
782    #[doc = "`IsEnable()` overload"]
783    fn is_enable(self) -> bool {
784        unsafe {
785            let __receiver =
786                <GameUserRestartData_RestartStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
787            ::unity::il2cpp_call!((::unity::module_base()+0x1e6fac0usize)as*mut u8,bool;
788(GameUserRestartData_RestartStream)__receiver)
789        }
790    }
791    #[doc = "`Save()` overload"]
792    fn save(self) -> () {
793        unsafe {
794            let __receiver =
795                <GameUserRestartData_RestartStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
796            ::unity::il2cpp_call!((::unity::module_base()+0x1e6fae0usize)as*mut u8,();
797(GameUserRestartData_RestartStream)__receiver)
798        }
799    }
800    #[doc = "`Load(bool, bool, bool)` overload"]
801    fn load(
802        self,
803        keep_level: impl ::core::convert::Into<bool>,
804        keep_achieve: impl ::core::convert::Into<bool>,
805        completed: impl ::core::convert::Into<bool>,
806    ) -> bool {
807        unsafe {
808            let __receiver =
809                <GameUserRestartData_RestartStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
810            ::unity::il2cpp_call!((::unity::module_base()+0x1e6fdd0usize)as*mut u8,bool;
811(GameUserRestartData_RestartStream)__receiver,(bool)::core::convert::Into::into(keep_level),(bool)::core::convert::Into::into(keep_achieve),(bool)::core::convert::Into::into(completed))
812        }
813    }
814}
815
816#[cfg(feature = "app-gameuserrestartdata")]
817impl<__T: IGameUserRestartData_RestartStream> IGameUserRestartData_RestartStreamMethods for __T {}
818
819#[cfg(feature = "app-gameuserrestartdata")]
820impl GameUserRestartData_RestartStream {
821    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
822        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
823    }
824
825    pub fn try_read_header_method_info() -> &'static ::unity::il2cpp::MethodInfo {
826        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
827    }
828
829    pub fn is_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
830        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
831    }
832
833    pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
834        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
835    }
836
837    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
838        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
839    }
840}
841
842#[cfg(feature = "app-gameuserrestartdata")]
843impl GameUserRestartData_RestartStream {
844    #[doc = "`.ctor()` — no args"]
845    pub fn new() -> Self {
846        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
847            panic!(
848                "{}
849::{}
850 failed to instantiate",
851                ::core::stringify!(GameUserRestartData_RestartStream),
852                ::core::stringify!(new),
853            )
854        });
855        <Self as IGameUserRestartData_RestartStreamMethods>::ctor(this);
856        this
857    }
858}
859
860#[cfg(feature = "app-gameuserrestartdata")]
861pub trait IGameUserRestartData_RecordWriterMethods: IGameUserRestartData_RecordWriter {
862    #[doc = "`Read(crate::app::unitrecord::UnitRecord_Kinds)` overload"]
863    fn read(self, kind: impl ::core::convert::Into<crate::app::unitrecord::UnitRecord_Kinds>) -> () {
864        unsafe {
865            let __receiver =
866                <GameUserRestartData_RecordWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
867            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f400usize)as*mut u8,();
868(GameUserRestartData_RecordWriter)__receiver,(crate::app::unitrecord::UnitRecord_Kinds)::core::convert::Into::into(kind))
869        }
870    }
871    #[doc = "`Write(crate::app::unitrecord::UnitRecord_Kinds)` overload"]
872    fn write(self, kind: impl ::core::convert::Into<crate::app::unitrecord::UnitRecord_Kinds>) -> () {
873        unsafe {
874            let __receiver =
875                <GameUserRestartData_RecordWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
876            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f660usize)as*mut u8,();
877(GameUserRestartData_RecordWriter)__receiver,(crate::app::unitrecord::UnitRecord_Kinds)::core::convert::Into::into(kind))
878        }
879    }
880    #[doc = "`.ctor()` overload"]
881    fn ctor(self) -> () {
882        unsafe {
883            let __receiver =
884                <GameUserRestartData_RecordWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
885            ::unity::il2cpp_call!((::unity::module_base()+0x1e6f8c0usize)as*mut u8,();
886(GameUserRestartData_RecordWriter)__receiver)
887        }
888    }
889}
890
891#[cfg(feature = "app-gameuserrestartdata")]
892impl<__T: IGameUserRestartData_RecordWriter> IGameUserRestartData_RecordWriterMethods for __T {}
893
894#[cfg(feature = "app-gameuserrestartdata")]
895impl GameUserRestartData_RecordWriter {
896    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
897        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
898    }
899
900    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
901        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
902    }
903
904    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
905        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
906    }
907}
908
909#[cfg(feature = "app-gameuserrestartdata")]
910impl GameUserRestartData_RecordWriter {
911    #[doc = "`.ctor()` — no args"]
912    pub fn new() -> Self {
913        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
914            panic!(
915                "{}
916::{}
917 failed to instantiate",
918                ::core::stringify!(GameUserRestartData_RecordWriter),
919                ::core::stringify!(new),
920            )
921        });
922        <Self as IGameUserRestartData_RecordWriterMethods>::ctor(this);
923        this
924    }
925}
926
927#[cfg(feature = "app-gameuserrestartdata")]
928pub trait IGameUserRestartData_VariableWriterMethods: IGameUserRestartData_VariableWriter {
929    #[doc = "`Read(bool)` overload"]
930    fn read(self, is_network: impl ::core::convert::Into<bool>) -> () {
931        unsafe {
932            let __receiver =
933                <GameUserRestartData_VariableWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
934            ::unity::il2cpp_call!((::unity::module_base()+0x1e705a0usize)as*mut u8,();
935(GameUserRestartData_VariableWriter)__receiver,(bool)::core::convert::Into::into(is_network))
936        }
937    }
938    #[doc = "`Read(::unity::Il2CppString)` overload"]
939    fn read_2(self, header: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
940        unsafe {
941            let __receiver =
942                <GameUserRestartData_VariableWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
943            ::unity::il2cpp_call!((::unity::module_base()+0x1e70970usize)as*mut u8,();
944(GameUserRestartData_VariableWriter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(header))
945        }
946    }
947    #[doc = "`Write()` overload"]
948    fn write(self) -> () {
949        unsafe {
950            let __receiver =
951                <GameUserRestartData_VariableWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
952            ::unity::il2cpp_call!((::unity::module_base()+0x1e70680usize)as*mut u8,();
953(GameUserRestartData_VariableWriter)__receiver)
954        }
955    }
956    #[doc = "`.ctor()` overload"]
957    fn ctor(self) -> () {
958        unsafe {
959            let __receiver =
960                <GameUserRestartData_VariableWriter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
961            ::unity::il2cpp_call!((::unity::module_base()+0x1e70540usize)as*mut u8,();
962(GameUserRestartData_VariableWriter)__receiver)
963        }
964    }
965}
966
967#[cfg(feature = "app-gameuserrestartdata")]
968impl<__T: IGameUserRestartData_VariableWriter> IGameUserRestartData_VariableWriterMethods for __T {}
969
970#[cfg(feature = "app-gameuserrestartdata")]
971impl GameUserRestartData_VariableWriter {
972    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
973        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
974    }
975
976    pub fn read_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
977        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
978    }
979
980    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
981        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
982    }
983
984    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
985        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
986    }
987}
988
989#[cfg(feature = "app-gameuserrestartdata")]
990impl GameUserRestartData_VariableWriter {
991    #[doc = "`.ctor()` — no args"]
992    pub fn new() -> Self {
993        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
994            panic!(
995                "{}
996::{}
997 failed to instantiate",
998                ::core::stringify!(GameUserRestartData_VariableWriter),
999                ::core::stringify!(new),
1000            )
1001        });
1002        <Self as IGameUserRestartData_VariableWriterMethods>::ctor(this);
1003        this
1004    }
1005}
1006
1007#[cfg(feature = "app-gameuserrestartdata")]
1008#[doc(hidden)]
1009pub mod prelude {
1010    pub use super::{
1011        GameUserRestartData, GameUserRestartData_CompleteWriter, GameUserRestartData_GameConfigWriter, GameUserRestartData_Growth,
1012        GameUserRestartData_GrowthWriter, GameUserRestartData_RecordWriter, GameUserRestartData_RestartStream, GameUserRestartData_Targtes,
1013        GameUserRestartData_VariableWriter, IGameUserRestartData, IGameUserRestartDataMethods, IGameUserRestartData_CompleteWriter,
1014        IGameUserRestartData_CompleteWriterMethods, IGameUserRestartData_GameConfigWriter, IGameUserRestartData_GameConfigWriterMethods,
1015        IGameUserRestartData_Growth, IGameUserRestartData_GrowthMethods, IGameUserRestartData_GrowthWriter, IGameUserRestartData_GrowthWriterMethods,
1016        IGameUserRestartData_RecordWriter, IGameUserRestartData_RecordWriterMethods, IGameUserRestartData_RestartStream,
1017        IGameUserRestartData_RestartStreamMethods, IGameUserRestartData_VariableWriter, IGameUserRestartData_VariableWriterMethods,
1018    };
1019    #[cfg(feature = "app-singletonclass_1")]
1020    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
1021    #[cfg(feature = "app-stream_2")]
1022    pub use crate::app::stream_2::IStream_2Methods;
1023    #[cfg(feature = "system-collections-generic-dictionary_2")]
1024    pub use crate::system::collections::generic::dictionary_2::IDictionary_2Methods;
1025    #[cfg(feature = "system-object")]
1026    pub use crate::system::object::IObjectMethods;
1027    #[cfg(feature = "system-enum")]
1028    pub use crate::system::r#enum::IEnumMethods;
1029    #[cfg(feature = "system-valuetype")]
1030    pub use crate::system::valuetype::IValueTypeMethods;
1031    pub use crate::{
1032        app::{singletonclass_1::ISingletonClass_1, stream_2::IStream_2},
1033        system::{collections::generic::dictionary_2::IDictionary_2, object::IObject, r#enum::IEnum, valuetype::IValueType},
1034    };
1035}