engage/generated/app/
structheader.rs1#[cfg(feature = "app-structheader-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/structheader/StructHeader.md"))]
11 #[::unity::class(namespace = "App", name = "StructHeader")]
12 #[parent(crate::system::object::Object)]
13 pub struct StructHeader {}
14
15 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/structheader/StructHeader_Param.md"))]
16 #[::unity::class(namespace = "App", name = "StructHeader.Param")]
17 #[parent(crate::system::object::Object)]
18 pub struct StructHeader_Param {
19 #[offset(16)]
20 #[rename(name = "_name")]
21 pub name_field: ::unity::Il2CppString,
22 #[offset(24)]
23 #[rename(name = "_type")]
24 pub r#type: ::unity::Il2CppString,
25 #[offset(32)]
26 #[rename(name = "_ident")]
27 pub ident_field: ::unity::Il2CppString,
28 #[offset(40)]
29 #[rename(name = "_min")]
30 pub min_field: ::unity::Il2CppString,
31 #[offset(48)]
32 #[rename(name = "_max")]
33 pub max_field: ::unity::Il2CppString,
34 #[offset(56)]
35 #[rename(name = "_chg")]
36 pub chg_field: ::unity::Il2CppString,
37 }
38}
39
40#[cfg(feature = "app-structheader-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-structheader")]
44pub trait IStructHeaderMethods: IStructHeader {
45 #[doc = "`get_param()` overload"]
46 fn get_param(self) -> crate::system::collections::generic::list_1::List_1<crate::app::structheader::StructHeader_Param> {
47 unsafe {
48 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x250ae70usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::structheader::StructHeader_Param> ;
50(StructHeader)__receiver)
51 }
52 }
53 #[doc = "`set_param(crate::system::collections::generic::list_1::List_1<crate::app::structheader::StructHeader_Param>)` overload"]
54 fn set_param(
55 self,
56 value: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::structheader::StructHeader_Param>>,
57 ) -> () {
58 unsafe {
59 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x250ae80usize)as*mut u8,();
61(StructHeader)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::structheader::StructHeader_Param>)::core::convert::Into::into(value))
62 }
63 }
64 #[doc = "`get_sheetName()` overload"]
65 fn get_sheet_name(self) -> ::unity::Il2CppString {
66 unsafe {
67 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x250ae90usize)as*mut u8, ::unity::Il2CppString;
69(StructHeader)__receiver)
70 }
71 }
72 #[doc = "`set_sheetName(::unity::Il2CppString)` overload"]
73 fn set_sheet_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
74 unsafe {
75 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x250aea0usize)as*mut u8,();
77(StructHeader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
78 }
79 }
80 #[doc = "`get_filePath()` overload"]
81 fn get_file_path(self) -> ::unity::Il2CppString {
82 unsafe {
83 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x250aeb0usize)as*mut u8, ::unity::Il2CppString;
85(StructHeader)__receiver)
86 }
87 }
88 #[doc = "`set_filePath(::unity::Il2CppString)` overload"]
89 fn set_file_path(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
90 unsafe {
91 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x250aec0usize)as*mut u8,();
93(StructHeader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
94 }
95 }
96 #[doc = "`.ctor()` overload"]
97 fn ctor(self) -> () {
98 unsafe {
99 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x250aed0usize)as*mut u8,();
101(StructHeader)__receiver)
102 }
103 }
104 fn get_propertys<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
105 self,
106 ) -> crate::system::collections::generic::list_1::List_1<crate::app::structproperty::StructProperty> {
107 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
108 ::unity::lookup::method_info_on_class(<StructHeader as ::unity::ClassIdentity>::class(), "GetPropertys", 0)
109 });
110 #[allow(clippy::type_complexity)]
111 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
112 ::std::sync::OnceLock::new();
113 let _ = false;
114 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
115 ::core::result::Result::Ok(mi) => *mi,
116 ::core::result::Result::Err(e) => {
117 panic!(
118 "method lookup failed: {}
119::{}
120: {}
121",
122 <StructHeader as ::unity::ClassIdentity>::NAME,
123 "GetPropertys",
124 e
125 )
126 },
127 };
128 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
129 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
130 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
131 let mut __guard = __cache.lock().unwrap();
132 *__guard
133 .entry(__key)
134 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
135 };
136 unsafe {
137 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 let __f: extern "C" fn(
139 StructHeader,
140 ::unity::OptionalMethod,
141 ) -> crate::system::collections::generic::list_1::List_1<crate::app::structproperty::StructProperty> =
142 ::core::mem::transmute(__inflated.method_ptr);
143 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
144 __f(__receiver, ::core::option::Option::Some(__mi_opaque))
145 }
146 }
147 #[doc = "`GetArrayIdent()` overload"]
148 fn get_array_ident(self) -> ::unity::Il2CppString {
149 unsafe {
150 let __receiver = <StructHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x250af60usize)as*mut u8, ::unity::Il2CppString;
152(StructHeader)__receiver)
153 }
154 }
155}
156
157#[cfg(feature = "app-structheader")]
158impl<__T: IStructHeader> IStructHeaderMethods for __T {}
159
160#[cfg(feature = "app-structheader")]
161impl StructHeader {
162 pub fn get_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
164 }
165
166 pub fn set_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
168 }
169
170 pub fn get_sheet_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
172 }
173
174 pub fn set_sheet_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
176 }
177
178 pub fn get_file_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
180 }
181
182 pub fn set_file_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
184 }
185
186 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
188 }
189
190 pub fn get_array_ident_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
192 }
193}
194
195#[cfg(feature = "app-structheader")]
196impl StructHeader {
197 #[doc = "`.ctor()` — no args"]
198 pub fn new() -> Self {
199 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
200 panic!(
201 "{}
202::{}
203 failed to instantiate",
204 ::core::stringify!(StructHeader),
205 ::core::stringify!(new),
206 )
207 });
208 <Self as IStructHeaderMethods>::ctor(this);
209 this
210 }
211}
212
213#[cfg(feature = "app-structheader")]
214pub trait IStructHeader_ParamMethods: IStructHeader_Param {
215 #[doc = "`get_name()` overload"]
216 fn get_name(self) -> ::unity::Il2CppString {
217 unsafe {
218 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a00usize)as*mut u8, ::unity::Il2CppString;
220(StructHeader_Param)__receiver)
221 }
222 }
223 #[doc = "`set_name(::unity::Il2CppString)` overload"]
224 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
225 unsafe {
226 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a10usize)as*mut u8,();
228(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
229 }
230 }
231 #[doc = "`get_type()` overload"]
232 fn get_type(self) -> ::unity::Il2CppString {
233 unsafe {
234 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a20usize)as*mut u8, ::unity::Il2CppString;
236(StructHeader_Param)__receiver)
237 }
238 }
239 #[doc = "`set_type(::unity::Il2CppString)` overload"]
240 fn set_type(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
241 unsafe {
242 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a30usize)as*mut u8,();
244(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
245 }
246 }
247 #[doc = "`get_ident()` overload"]
248 fn get_ident(self) -> ::unity::Il2CppString {
249 unsafe {
250 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a40usize)as*mut u8, ::unity::Il2CppString;
252(StructHeader_Param)__receiver)
253 }
254 }
255 #[doc = "`set_ident(::unity::Il2CppString)` overload"]
256 fn set_ident(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
257 unsafe {
258 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a50usize)as*mut u8,();
260(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
261 }
262 }
263 #[doc = "`get_min()` overload"]
264 fn get_min(self) -> ::unity::Il2CppString {
265 unsafe {
266 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a60usize)as*mut u8, ::unity::Il2CppString;
268(StructHeader_Param)__receiver)
269 }
270 }
271 #[doc = "`set_min(::unity::Il2CppString)` overload"]
272 fn set_min(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
273 unsafe {
274 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a70usize)as*mut u8,();
276(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
277 }
278 }
279 #[doc = "`get_max()` overload"]
280 fn get_max(self) -> ::unity::Il2CppString {
281 unsafe {
282 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a80usize)as*mut u8, ::unity::Il2CppString;
284(StructHeader_Param)__receiver)
285 }
286 }
287 #[doc = "`set_max(::unity::Il2CppString)` overload"]
288 fn set_max(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
289 unsafe {
290 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x21f5a90usize)as*mut u8,();
292(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
293 }
294 }
295 #[doc = "`get_chg()` overload"]
296 fn get_chg(self) -> ::unity::Il2CppString {
297 unsafe {
298 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x21f5aa0usize)as*mut u8, ::unity::Il2CppString;
300(StructHeader_Param)__receiver)
301 }
302 }
303 #[doc = "`set_chg(::unity::Il2CppString)` overload"]
304 fn set_chg(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
305 unsafe {
306 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 ::unity::il2cpp_call!((::unity::module_base()+0x21f5ab0usize)as*mut u8,();
308(StructHeader_Param)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
309 }
310 }
311 #[doc = "`.ctor()` overload"]
312 fn ctor(self) -> () {
313 unsafe {
314 let __receiver = <StructHeader_Param as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x21f5ac0usize)as*mut u8,();
316(StructHeader_Param)__receiver)
317 }
318 }
319}
320
321#[cfg(feature = "app-structheader")]
322impl<__T: IStructHeader_Param> IStructHeader_ParamMethods for __T {}
323
324#[cfg(feature = "app-structheader")]
325impl StructHeader_Param {
326 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
328 }
329
330 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
332 }
333
334 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
336 }
337
338 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
340 }
341
342 pub fn get_ident_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
344 }
345
346 pub fn set_ident_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
348 }
349
350 pub fn get_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
352 }
353
354 pub fn set_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
356 }
357
358 pub fn get_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
360 }
361
362 pub fn set_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
364 }
365
366 pub fn get_chg_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
368 }
369
370 pub fn set_chg_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
372 }
373
374 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
376 }
377}
378
379#[cfg(feature = "app-structheader")]
380impl StructHeader_Param {
381 #[doc = "`.ctor()` — no args"]
382 pub fn new() -> Self {
383 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
384 panic!(
385 "{}
386::{}
387 failed to instantiate",
388 ::core::stringify!(StructHeader_Param),
389 ::core::stringify!(new),
390 )
391 });
392 <Self as IStructHeader_ParamMethods>::ctor(this);
393 this
394 }
395}
396
397#[cfg(feature = "app-structheader")]
398#[doc(hidden)]
399pub mod prelude {
400 pub use super::{IStructHeader, IStructHeaderMethods, IStructHeader_Param, IStructHeader_ParamMethods, StructHeader, StructHeader_Param};
401 pub use crate::system::object::IObject;
402 #[cfg(feature = "system-object")]
403 pub use crate::system::object::IObjectMethods;
404}