engage/generated/app/
mapbackup.rs1#[cfg(feature = "app-mapbackup-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapbackup/MapBackup.md"))]
11 #[::unity::class(namespace = "App", name = "MapBackup")]
12 #[parent(crate::system::object::Object)]
13 pub struct MapBackup {
14 #[offset(16)]
15 #[rename(name = "Key")]
16 pub key: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "State")]
19 pub state: i32,
20 #[offset(28)]
21 #[rename(name = "Action")]
22 pub action: crate::app::mapobject::MapObject_Actions,
23 #[offset(32)]
24 #[rename(name = "MapMaterial")]
25 pub map_material: crate::app::mapmaterial::MapMaterial,
26 }
27}
28
29#[cfg(feature = "app-mapbackup-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-mapbackup")]
33pub trait IMapBackupMethods: IMapBackup {
34 #[doc = "`Dispose()` overload"]
35 fn dispose(self) -> () {
36 unsafe {
37 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 {
39 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
41 panic!(
42 "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47 4usize,
48 __vt.len(),
49 <MapBackup as ::unity::ClassIdentity>::NAME,
50 "Dispose",
51 )
52 });
53 let __inner: extern "C" fn(MapBackup, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
54 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55 __inner(__receiver, __mi)
56 }
57 }
58 }
59 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
60 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
61 unsafe {
62 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x1f01da0usize)as*mut u8,();
64(MapBackup)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
65 }
66 }
67 #[doc = "`Desrialize(crate::app::stream_2::Stream_2)` overload"]
68 fn desrialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
69 unsafe {
70 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x1f02080usize)as*mut u8,();
72(MapBackup)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
73 }
74 }
75 #[doc = "`Write(crate::app::mapobject::MapObject)` overload"]
76 fn write(self, map_object: impl ::core::convert::Into<crate::app::mapobject::MapObject>) -> () {
77 unsafe {
78 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x1f02bb0usize)as*mut u8,();
80(MapBackup)__receiver,(crate::app::mapobject::MapObject)::core::convert::Into::into(map_object))
81 }
82 }
83 #[doc = "`Read(crate::app::mapobject::MapObject)` overload"]
84 fn read(self, map_object: impl ::core::convert::Into<crate::app::mapobject::MapObject>) -> () {
85 unsafe {
86 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x1f02d50usize)as*mut u8,();
88(MapBackup)__receiver,(crate::app::mapobject::MapObject)::core::convert::Into::into(map_object))
89 }
90 }
91 #[doc = "`.ctor()` overload"]
92 fn ctor(self) -> () {
93 unsafe {
94 let __receiver = <MapBackup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x1f02fe0usize)as*mut u8,();
96(MapBackup)__receiver)
97 }
98 }
99}
100
101#[cfg(feature = "app-mapbackup")]
102impl<__T: IMapBackup> IMapBackupMethods for __T {}
103
104#[cfg(feature = "app-mapbackup")]
105impl MapBackup {
106 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108 }
109
110 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112 }
113
114 pub fn desrialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116 }
117
118 pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
120 }
121
122 pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
124 }
125
126 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
128 }
129}
130
131#[cfg(feature = "app-mapbackup")]
132impl MapBackup {
133 #[doc = "Direct (non-virtual) call to `MapBackup`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
134 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
135 let __mi = Self::dispose_method_info();
136 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
137 __inner(this.into(), ::core::option::Option::None)
138 }
139}
140
141#[cfg(feature = "app-mapbackup")]
142impl MapBackup {
143 #[doc = "`.ctor()` — no args"]
144 pub fn new() -> Self {
145 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
146 panic!(
147 "{}
148::{}
149 failed to instantiate",
150 ::core::stringify!(MapBackup),
151 ::core::stringify!(new),
152 )
153 });
154 <Self as IMapBackupMethods>::ctor(this);
155 this
156 }
157}
158
159#[cfg(feature = "app-mapbackup")]
160#[doc(hidden)]
161pub mod prelude {
162 pub use super::{IMapBackup, IMapBackupMethods, MapBackup};
163 pub use crate::system::object::IObject;
164 #[cfg(feature = "system-object")]
165 pub use crate::system::object::IObjectMethods;
166}