Skip to main content

engage/generated/app/
maphistorydata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-maphistorydata-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/maphistorydata/MapHistoryData.md"))]
18    #[::unity::class(namespace = "App", name = "MapHistoryData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::maphistorydata::MapHistoryData>)]
20    pub struct MapHistoryData {}
21}
22
23#[cfg(feature = "app-maphistorydata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-maphistorydata")]
27impl MapHistoryData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1de1dc0usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-maphistorydata")]
38pub trait IMapHistoryDataMethods: IMapHistoryData {
39    #[doc = "`get_Mhid()` overload"]
40    fn get_mhid(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1de1e70usize)as*mut u8, ::unity::Il2CppString;
44(MapHistoryData)__receiver)
45        }
46    }
47    #[doc = "`set_Mhid(::unity::Il2CppString)` overload"]
48    fn set_mhid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1de1e80usize)as*mut u8,();
52(MapHistoryData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_Action()` overload"]
56    fn get_action(self) -> ::unity::Il2CppString {
57        unsafe {
58            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1de1e90usize)as*mut u8, ::unity::Il2CppString;
60(MapHistoryData)__receiver)
61        }
62    }
63    #[doc = "`set_Action(::unity::Il2CppString)` overload"]
64    fn set_action(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65        unsafe {
66            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x1de1ea0usize)as*mut u8,();
68(MapHistoryData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_Priority()` overload"]
72    fn get_priority(self) -> u8 {
73        unsafe {
74            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1de1eb0usize)as*mut u8,u8;
76(MapHistoryData)__receiver)
77        }
78    }
79    #[doc = "`set_Priority(u8)` overload"]
80    fn set_priority(self, value: impl ::core::convert::Into<u8>) -> () {
81        unsafe {
82            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1de1ec0usize)as*mut u8,();
84(MapHistoryData)__receiver,(u8)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`GetActionText()` overload"]
88    fn get_action_text(self) -> ::unity::Il2CppString {
89        unsafe {
90            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x1de1ed0usize)as*mut u8, ::unity::Il2CppString;
92(MapHistoryData)__receiver)
93        }
94    }
95    #[doc = "`GetDebugName()` overload"]
96    fn get_debug_name(self) -> ::unity::Il2CppString {
97        unsafe {
98            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            {
100                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
102                    panic!(
103                        "unity: virtual slot {}
104 out of range (vtable len {}
105) on the runtime class behind {}
106 (method `{}
107`)",
108                        8usize,
109                        __vt.len(),
110                        <MapHistoryData as ::unity::ClassIdentity>::NAME,
111                        "GetDebugName",
112                    )
113                });
114                let __inner: extern "C" fn(MapHistoryData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
115                    ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, __mi)
118            }
119        }
120    }
121    #[doc = "`.ctor()` overload"]
122    fn ctor(self) -> () {
123        unsafe {
124            let __receiver = <MapHistoryData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x1de1f50usize)as*mut u8,();
126(MapHistoryData)__receiver)
127        }
128    }
129}
130
131#[cfg(feature = "app-maphistorydata")]
132impl<__T: IMapHistoryData> IMapHistoryDataMethods for __T {}
133
134#[cfg(feature = "app-maphistorydata")]
135impl MapHistoryData {
136    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138    }
139
140    pub fn get_mhid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142    }
143
144    pub fn set_mhid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146    }
147
148    pub fn get_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150    }
151
152    pub fn set_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154    }
155
156    pub fn get_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
158    }
159
160    pub fn set_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
162    }
163
164    pub fn get_action_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
166    }
167
168    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
170    }
171
172    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
174    }
175}
176
177#[cfg(feature = "app-maphistorydata")]
178impl MapHistoryData {
179    #[doc = "Direct (non-virtual) call to `MapHistoryData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
180    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
181        let __mi = Self::get_debug_name_method_info();
182        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
183        __inner(this.into(), ::core::option::Option::None)
184    }
185}
186
187#[cfg(feature = "app-maphistorydata")]
188impl MapHistoryData {
189    #[doc = "`.ctor()` — no args"]
190    pub fn new() -> Self {
191        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
192            panic!(
193                "{}
194::{}
195 failed to instantiate",
196                ::core::stringify!(MapHistoryData),
197                ::core::stringify!(new),
198            )
199        });
200        <Self as IMapHistoryDataMethods>::ctor(this);
201        this
202    }
203}
204
205#[cfg(feature = "app-maphistorydata")]
206#[doc(hidden)]
207pub mod prelude {
208    pub use super::{IMapHistoryData, IMapHistoryDataMethods, MapHistoryData};
209    #[cfg(feature = "app-structbase")]
210    pub use crate::app::structbase::IStructBaseMethods;
211    #[cfg(feature = "app-structdata_1")]
212    pub use crate::app::structdata_1::IStructData_1Methods;
213    #[cfg(feature = "app-structtemplate_1")]
214    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
215    #[cfg(feature = "system-object")]
216    pub use crate::system::object::IObjectMethods;
217    pub use crate::{
218        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
219        system::object::IObject,
220    };
221}