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