Skip to main content

engage/generated/app/
mapeditorobjectdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapeditorobjectdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapeditorobjectdata/MapEditorObjectData.md"))]
18    #[::unity::class(namespace = "App", name = "MapEditorObjectData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::mapeditorobjectdata::MapEditorObjectData>)]
20    pub struct MapEditorObjectData {}
21}
22
23#[cfg(feature = "app-mapeditorobjectdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapeditorobjectdata")]
27impl MapEditorObjectData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1db87c0usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-mapeditorobjectdata")]
38pub trait IMapEditorObjectDataMethods: IMapEditorObjectData {
39    #[doc = "`get_ObjectName()` overload"]
40    fn get_object_name(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1db8870usize)as*mut u8, ::unity::Il2CppString;
44(MapEditorObjectData)__receiver)
45        }
46    }
47    #[doc = "`set_ObjectName(::unity::Il2CppString)` overload"]
48    fn set_object_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1db8880usize)as*mut u8,();
52(MapEditorObjectData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_SoundEvent()` overload"]
56    fn get_sound_event(self) -> ::unity::Il2CppString {
57        unsafe {
58            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1db8890usize)as*mut u8, ::unity::Il2CppString;
60(MapEditorObjectData)__receiver)
61        }
62    }
63    #[doc = "`set_SoundEvent(::unity::Il2CppString)` overload"]
64    fn set_sound_event(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65        unsafe {
66            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x1db88a0usize)as*mut u8,();
68(MapEditorObjectData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_Category()` overload"]
72    fn get_category(self) -> ::unity::Il2CppString {
73        unsafe {
74            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1db88b0usize)as*mut u8, ::unity::Il2CppString;
76(MapEditorObjectData)__receiver)
77        }
78    }
79    #[doc = "`set_Category(::unity::Il2CppString)` overload"]
80    fn set_category(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
81        unsafe {
82            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1db88c0usize)as*mut u8,();
84(MapEditorObjectData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`get_ObjectKey()` overload"]
88    fn get_object_key(self) -> i32 {
89        unsafe {
90            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x1db88d0usize)as*mut u8,i32;
92(MapEditorObjectData)__receiver)
93        }
94    }
95    #[doc = "`set_ObjectKey(i32)` overload"]
96    fn set_object_key(self, value: impl ::core::convert::Into<i32>) -> () {
97        unsafe {
98            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x1db88e0usize)as*mut u8,();
100(MapEditorObjectData)__receiver,(i32)::core::convert::Into::into(value))
101        }
102    }
103    #[doc = "`GetDebugName()` overload"]
104    fn get_debug_name(self) -> ::unity::Il2CppString {
105        unsafe {
106            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        8usize,
117                        __vt.len(),
118                        <MapEditorObjectData as ::unity::ClassIdentity>::NAME,
119                        "GetDebugName",
120                    )
121                });
122                let __inner: extern "C" fn(MapEditorObjectData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
123                    ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, __mi)
126            }
127        }
128    }
129    #[doc = "`OnCompleted()` overload"]
130    fn on_completed(self) -> () {
131        unsafe {
132            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            {
134                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
136                    panic!(
137                        "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142                        5usize,
143                        __vt.len(),
144                        <MapEditorObjectData as ::unity::ClassIdentity>::NAME,
145                        "OnCompleted",
146                    )
147                });
148                let __inner: extern "C" fn(MapEditorObjectData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
149                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150                __inner(__receiver, __mi)
151            }
152        }
153    }
154    #[doc = "`.ctor()` overload"]
155    fn ctor(self) -> () {
156        unsafe {
157            let __receiver = <MapEditorObjectData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x1db8980usize)as*mut u8,();
159(MapEditorObjectData)__receiver)
160        }
161    }
162}
163
164#[cfg(feature = "app-mapeditorobjectdata")]
165impl<__T: IMapEditorObjectData> IMapEditorObjectDataMethods for __T {}
166
167#[cfg(feature = "app-mapeditorobjectdata")]
168impl MapEditorObjectData {
169    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
171    }
172
173    pub fn get_object_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
175    }
176
177    pub fn set_object_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
179    }
180
181    pub fn get_sound_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
183    }
184
185    pub fn set_sound_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
187    }
188
189    pub fn get_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
191    }
192
193    pub fn set_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
195    }
196
197    pub fn get_object_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
199    }
200
201    pub fn set_object_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
203    }
204
205    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
207    }
208
209    pub fn on_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
211    }
212
213    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
215    }
216}
217
218#[cfg(feature = "app-mapeditorobjectdata")]
219impl MapEditorObjectData {
220    #[doc = "Direct (non-virtual) call to `MapEditorObjectData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
221    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
222        let __mi = Self::get_debug_name_method_info();
223        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
224        __inner(this.into(), ::core::option::Option::None)
225    }
226
227    #[doc = "Direct (non-virtual) call to `MapEditorObjectData`'s own `OnCompleted`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
228    pub unsafe fn on_completed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
229        let __mi = Self::on_completed_method_info();
230        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
231        __inner(this.into(), ::core::option::Option::None)
232    }
233}
234
235#[cfg(feature = "app-mapeditorobjectdata")]
236impl MapEditorObjectData {
237    #[doc = "`.ctor()` — no args"]
238    pub fn new() -> Self {
239        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
240            panic!(
241                "{}
242::{}
243 failed to instantiate",
244                ::core::stringify!(MapEditorObjectData),
245                ::core::stringify!(new),
246            )
247        });
248        <Self as IMapEditorObjectDataMethods>::ctor(this);
249        this
250    }
251}
252
253#[cfg(feature = "app-mapeditorobjectdata")]
254#[doc(hidden)]
255pub mod prelude {
256    pub use super::{IMapEditorObjectData, IMapEditorObjectDataMethods, MapEditorObjectData};
257    #[cfg(feature = "app-structbase")]
258    pub use crate::app::structbase::IStructBaseMethods;
259    #[cfg(feature = "app-structdata_1")]
260    pub use crate::app::structdata_1::IStructData_1Methods;
261    #[cfg(feature = "app-structtemplate_1")]
262    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
263    #[cfg(feature = "system-object")]
264    pub use crate::system::object::IObjectMethods;
265    pub use crate::{
266        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
267        system::object::IObject,
268    };
269}