engage/generated/app/
mapbackuplist.rs1#[cfg(feature = "app-mapbackuplist-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 collections::generic::list_1::{IList_1, List_1},
10 object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapbackuplist/MapBackupList.md"))]
14 #[::unity::class(namespace = "App", name = "MapBackupList")]
15 #[parent(crate::system::collections::generic::list_1::List_1<crate::app::mapbackup::MapBackup>)]
16 pub struct MapBackupList {
17 #[static_field]
18 #[rename(name = "Version")]
19 pub version: i32,
20 }
21}
22
23#[cfg(feature = "app-mapbackuplist-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapbackuplist")]
27pub trait IMapBackupListMethods: IMapBackupList {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <MapBackupList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x1f02ff0usize)as*mut u8,();
33(MapBackupList)__receiver)
34 }
35 }
36 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
37 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
38 unsafe {
39 let __receiver = <MapBackupList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x1f03080usize)as*mut u8,();
41(MapBackupList)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
42 }
43 }
44 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
45 fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
46 unsafe {
47 let __receiver = <MapBackupList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x1f032f0usize)as*mut u8,();
49(MapBackupList)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
50 }
51 }
52 #[doc = "`Commit()` overload"]
53 fn commit(self) -> () {
54 unsafe {
55 let __receiver = <MapBackupList as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1f03460usize)as*mut u8,();
57(MapBackupList)__receiver)
58 }
59 }
60}
61
62#[cfg(feature = "app-mapbackuplist")]
63impl<__T: IMapBackupList> IMapBackupListMethods for __T {}
64
65#[cfg(feature = "app-mapbackuplist")]
66impl MapBackupList {
67 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
69 }
70
71 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
73 }
74
75 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
77 }
78
79 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
81 }
82}
83
84#[cfg(feature = "app-mapbackuplist")]
85impl MapBackupList {
86 #[doc = "`.ctor()` — no args"]
87 pub fn new() -> Self {
88 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
89 panic!(
90 "{}
91::{}
92 failed to instantiate",
93 ::core::stringify!(MapBackupList),
94 ::core::stringify!(new),
95 )
96 });
97 <Self as IMapBackupListMethods>::ctor(this);
98 this
99 }
100}
101
102#[cfg(feature = "app-mapbackuplist")]
103#[doc(hidden)]
104pub mod prelude {
105 pub use super::{IMapBackupList, IMapBackupListMethods, MapBackupList};
106 #[cfg(feature = "system-collections-generic-list_1")]
107 pub use crate::system::collections::generic::list_1::IList_1Methods;
108 #[cfg(feature = "system-object")]
109 pub use crate::system::object::IObjectMethods;
110 pub use crate::system::{collections::generic::list_1::IList_1, object::IObject};
111}