1#[cfg(feature = "app-gameparam-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::{
15 delegate::{Delegate, IDelegate},
16 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17 object::{IObject, Object},
18 r#enum::{Enum, IEnum},
19 valuetype::{IValueType, ValueType},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameparam/GameParam_Holder.md"))]
24 #[::unity::class(namespace = "App", name = "GameParam.Holder")]
25 #[parent(crate::system::object::Object)]
26 pub struct GameParam_Holder {
27 #[offset(16)]
28 #[rename(name = "m_Name")]
29 pub m_name: ::unity::Il2CppString,
30 #[offset(24)]
31 #[rename(name = "m_Param")]
32 pub m_param: crate::app::gameparam::GameParam,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameparam/GameParam.md"))]
36 #[::unity::class(namespace = "App", name = "GameParam")]
37 #[parent(crate::app::structdata_1::StructData_1<crate::app::gameparam::GameParam>)]
38 pub struct GameParam {}
39
40 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameparam/GameParam_Kind.md"))]
41 #[repr(C)]
42 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
43 pub struct GameParam_Kind {
44 pub value: i32,
45 }
46 impl ::unity::ClassIdentity for GameParam_Kind {
47 const NAME: &'static str = "GameParam.Kind";
48 const NAMESPACE: &'static str = "App";
49
50 fn class() -> ::unity::Class {
51 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
52 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
53 }
54 }
55 impl ::unity::IlType for GameParam_Kind {
56 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
57 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
58 }
59 }
60 impl GameParam_Kind {
61 pub fn none() -> Self {
62 Self { value: 0 }
63 }
64
65 pub fn value() -> Self {
66 Self { value: 1 }
67 }
68
69 pub fn open() -> Self {
70 Self { value: 2 }
71 }
72
73 pub fn close() -> Self {
74 Self { value: 3 }
75 }
76 }
77
78 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameparam/GameParam_ParamFunction.md"))]
79 #[::unity::class(namespace = "App", name = "GameParam.ParamFunction")]
80 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
81 pub struct GameParam_ParamFunction {}
82}
83
84#[cfg(feature = "app-gameparam-types")]
85pub use __types::*;
86
87#[cfg(feature = "app-gameparam")]
88pub trait IGameParam_HolderMethods: IGameParam_Holder {
89 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
90 fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
91 unsafe {
92 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x1e66580usize)as*mut u8,();
94(GameParam_Holder)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
95 }
96 }
97 #[doc = "`GetParam()` overload"]
98 fn get_param(self) -> crate::app::gameparam::GameParam {
99 unsafe {
100 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x1e665d0usize)as*mut u8,crate::app::gameparam::GameParam;
102(GameParam_Holder)__receiver)
103 }
104 }
105 #[doc = "`Clear()` overload"]
106 fn clear(self) -> () {
107 unsafe {
108 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x1e66690usize)as*mut u8,();
110(GameParam_Holder)__receiver)
111 }
112 }
113 #[doc = "`GetInt()` overload"]
114 fn get_int(self) -> i32 {
115 unsafe {
116 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x1e666a0usize)as*mut u8,i32;
118(GameParam_Holder)__receiver)
119 }
120 }
121 #[doc = "`GetFloat()` overload"]
122 fn get_float(self) -> f32 {
123 unsafe {
124 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x1e66780usize)as*mut u8,f32;
126(GameParam_Holder)__receiver)
127 }
128 }
129 #[doc = "`GetBool()` overload"]
130 fn get_bool(self) -> bool {
131 unsafe {
132 let __receiver = <GameParam_Holder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x1e66840usize)as*mut u8,bool;
134(GameParam_Holder)__receiver)
135 }
136 }
137}
138
139#[cfg(feature = "app-gameparam")]
140impl<__T: IGameParam_Holder> IGameParam_HolderMethods for __T {}
141
142#[cfg(feature = "app-gameparam")]
143impl GameParam_Holder {
144 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146 }
147
148 pub fn get_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150 }
151
152 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154 }
155
156 pub fn get_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158 }
159
160 pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162 }
163
164 pub fn get_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
166 }
167}
168
169#[cfg(feature = "app-gameparam")]
170impl GameParam_Holder {
171 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
172 pub fn new(name: ::unity::Il2CppString) -> Self {
173 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174 panic!(
175 "{}
176::{}
177 failed to instantiate",
178 ::core::stringify!(GameParam_Holder),
179 ::core::stringify!(new),
180 )
181 });
182 <Self as IGameParam_HolderMethods>::ctor(this, name);
183 this
184 }
185}
186
187#[cfg(feature = "app-gameparam")]
188impl GameParam {
189 #[doc = "`Load()` overload"]
190 pub fn load() -> () {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x2280680usize)as*mut u8,();
193 )
194 }
195 }
196
197 #[doc = "`GetBool(::unity::Il2CppString)` overload"]
198 pub fn get_bool(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
199 unsafe {
200 ::unity::il2cpp_call!((::unity::module_base()+0x2280b20usize)as*mut u8,bool;
201(::unity::Il2CppString)::core::convert::Into::into(name))
202 }
203 }
204
205 #[doc = "`GetInt(::unity::Il2CppString)` overload"]
206 pub fn get_int(name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
207 unsafe {
208 ::unity::il2cpp_call!((::unity::module_base()+0x2280c20usize)as*mut u8,i32;
209(::unity::Il2CppString)::core::convert::Into::into(name))
210 }
211 }
212
213 #[doc = "`GetFloat(::unity::Il2CppString)` overload"]
214 pub fn get_float(name: impl ::core::convert::Into<::unity::Il2CppString>) -> f32 {
215 unsafe {
216 ::unity::il2cpp_call!((::unity::module_base()+0x2280d40usize)as*mut u8,f32;
217(::unity::Il2CppString)::core::convert::Into::into(name))
218 }
219 }
220
221 #[doc = "`GetColor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
222 pub fn get_color(
223 name_r: impl ::core::convert::Into<::unity::Il2CppString>,
224 name_g: impl ::core::convert::Into<::unity::Il2CppString>,
225 name_b: impl ::core::convert::Into<::unity::Il2CppString>,
226 ) -> crate::unity_engine::color::Color {
227 unsafe {
228 ::unity::il2cpp_call!((::unity::module_base()+0x2280e40usize)as*mut u8,crate::unity_engine::color::Color;
229(::unity::Il2CppString)::core::convert::Into::into(name_r),(::unity::Il2CppString)::core::convert::Into::into(name_g),(::unity::Il2CppString)::core::convert::Into::into(name_b))
230 }
231 }
232
233 #[doc = "`GetColor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
234 pub fn get_color_2(
235 name_r: impl ::core::convert::Into<::unity::Il2CppString>,
236 name_g: impl ::core::convert::Into<::unity::Il2CppString>,
237 name_b: impl ::core::convert::Into<::unity::Il2CppString>,
238 name_a: impl ::core::convert::Into<::unity::Il2CppString>,
239 ) -> crate::unity_engine::color::Color {
240 unsafe {
241 ::unity::il2cpp_call!((::unity::module_base()+0x2280ec0usize)as*mut u8,crate::unity_engine::color::Color;
242(::unity::Il2CppString)::core::convert::Into::into(name_r),(::unity::Il2CppString)::core::convert::Into::into(name_g),(::unity::Il2CppString)::core::convert::Into::into(name_b),(::unity::Il2CppString)::core::convert::Into::into(name_a))
243 }
244 }
245
246 #[doc = "`TryGetGroupIndex(::unity::Il2CppString)` overload"]
247 pub fn try_get_group_index(group: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
248 unsafe {
249 ::unity::il2cpp_call!((::unity::module_base()+0x2280f60usize)as*mut u8,i32;
250(::unity::Il2CppString)::core::convert::Into::into(group))
251 }
252 }
253
254 #[doc = "`EachFunction(crate::app::gameparam::GameParam_ParamFunction, i32, ::unity::Array<crate::system::object::Object>)` overload"]
255 pub fn each_function(
256 func: impl ::core::convert::Into<crate::app::gameparam::GameParam_ParamFunction>,
257 index: impl ::core::convert::Into<i32>,
258 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
259 ) -> i32 {
260 unsafe {
261 ::unity::il2cpp_call!((::unity::module_base()+0x2281050usize)as*mut u8,i32;
262(crate::app::gameparam::GameParam_ParamFunction)::core::convert::Into::into(func),(i32)::core::convert::Into::into(index),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
263 }
264 }
265
266 #[doc = "`EachFunction(crate::app::gameparam::GameParam_ParamFunction, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
267 pub fn each_function_2(
268 func: impl ::core::convert::Into<crate::app::gameparam::GameParam_ParamFunction>,
269 group: impl ::core::convert::Into<::unity::Il2CppString>,
270 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
271 ) -> () {
272 unsafe {
273 ::unity::il2cpp_call!((::unity::module_base()+0x22811d0usize)as*mut u8,();
274(crate::app::gameparam::GameParam_ParamFunction)::core::convert::Into::into(func),(::unity::Il2CppString)::core::convert::Into::into(group),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
275 }
276 }
277}
278
279#[cfg(feature = "app-gameparam")]
280pub trait IGameParamMethods: IGameParam {
281 #[doc = "`get_Name()` overload"]
282 fn get_name(self) -> ::unity::Il2CppString {
283 unsafe {
284 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x2280730usize)as*mut u8, ::unity::Il2CppString;
286(GameParam)__receiver)
287 }
288 }
289 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
290 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
291 unsafe {
292 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 ::unity::il2cpp_call!((::unity::module_base()+0x2280740usize)as*mut u8,();
294(GameParam)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
295 }
296 }
297 #[doc = "`get_English()` overload"]
298 fn get_english(self) -> ::unity::Il2CppString {
299 unsafe {
300 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 ::unity::il2cpp_call!((::unity::module_base()+0x2280750usize)as*mut u8, ::unity::Il2CppString;
302(GameParam)__receiver)
303 }
304 }
305 #[doc = "`set_English(::unity::Il2CppString)` overload"]
306 fn set_english(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
307 unsafe {
308 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309 ::unity::il2cpp_call!((::unity::module_base()+0x2280760usize)as*mut u8,();
310(GameParam)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
311 }
312 }
313 #[doc = "`get_Value()` overload"]
314 fn get_value(self) -> f32 {
315 unsafe {
316 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317 ::unity::il2cpp_call!((::unity::module_base()+0x2280770usize)as*mut u8,f32;
318(GameParam)__receiver)
319 }
320 }
321 #[doc = "`set_Value(f32)` overload"]
322 fn set_value(self, value: impl ::core::convert::Into<f32>) -> () {
323 unsafe {
324 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325 ::unity::il2cpp_call!((::unity::module_base()+0x2280780usize)as*mut u8,();
326(GameParam)__receiver,(f32)::core::convert::Into::into(value))
327 }
328 }
329 #[doc = "`get_Min()` overload"]
330 fn get_min(self) -> f32 {
331 unsafe {
332 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 ::unity::il2cpp_call!((::unity::module_base()+0x2280790usize)as*mut u8,f32;
334(GameParam)__receiver)
335 }
336 }
337 #[doc = "`set_Min(f32)` overload"]
338 fn set_min(self, value: impl ::core::convert::Into<f32>) -> () {
339 unsafe {
340 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341 ::unity::il2cpp_call!((::unity::module_base()+0x22807a0usize)as*mut u8,();
342(GameParam)__receiver,(f32)::core::convert::Into::into(value))
343 }
344 }
345 #[doc = "`get_Max()` overload"]
346 fn get_max(self) -> f32 {
347 unsafe {
348 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
349 ::unity::il2cpp_call!((::unity::module_base()+0x22807b0usize)as*mut u8,f32;
350(GameParam)__receiver)
351 }
352 }
353 #[doc = "`set_Max(f32)` overload"]
354 fn set_max(self, value: impl ::core::convert::Into<f32>) -> () {
355 unsafe {
356 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357 ::unity::il2cpp_call!((::unity::module_base()+0x22807c0usize)as*mut u8,();
358(GameParam)__receiver,(f32)::core::convert::Into::into(value))
359 }
360 }
361 #[doc = "`get_Step()` overload"]
362 fn get_step(self) -> f32 {
363 unsafe {
364 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365 ::unity::il2cpp_call!((::unity::module_base()+0x22807d0usize)as*mut u8,f32;
366(GameParam)__receiver)
367 }
368 }
369 #[doc = "`set_Step(f32)` overload"]
370 fn set_step(self, value: impl ::core::convert::Into<f32>) -> () {
371 unsafe {
372 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 ::unity::il2cpp_call!((::unity::module_base()+0x22807e0usize)as*mut u8,();
374(GameParam)__receiver,(f32)::core::convert::Into::into(value))
375 }
376 }
377 #[doc = "`get_Enum()` overload"]
378 fn get_enum(self) -> ::unity::Il2CppString {
379 unsafe {
380 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381 ::unity::il2cpp_call!((::unity::module_base()+0x22807f0usize)as*mut u8, ::unity::Il2CppString;
382(GameParam)__receiver)
383 }
384 }
385 #[doc = "`set_Enum(::unity::Il2CppString)` overload"]
386 fn set_enum(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
387 unsafe {
388 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
389 ::unity::il2cpp_call!((::unity::module_base()+0x2280800usize)as*mut u8,();
390(GameParam)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
391 }
392 }
393 #[doc = "`get_Initial()` overload"]
394 fn get_initial(self) -> f32 {
395 unsafe {
396 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397 ::unity::il2cpp_call!((::unity::module_base()+0x2280810usize)as*mut u8,f32;
398(GameParam)__receiver)
399 }
400 }
401 #[doc = "`set_Initial(f32)` overload"]
402 fn set_initial(self, value: impl ::core::convert::Into<f32>) -> () {
403 unsafe {
404 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
405 ::unity::il2cpp_call!((::unity::module_base()+0x2280820usize)as*mut u8,();
406(GameParam)__receiver,(f32)::core::convert::Into::into(value))
407 }
408 }
409 #[doc = "`OnBuild()` overload"]
410 fn on_build(self) -> () {
411 unsafe {
412 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413 {
414 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
415 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
416 panic!(
417 "unity: virtual slot {}
418 out of range (vtable len {}
419) on the runtime class behind {}
420 (method `{}
421`)",
422 4usize,
423 __vt.len(),
424 <GameParam as ::unity::ClassIdentity>::NAME,
425 "OnBuild",
426 )
427 });
428 let __inner: extern "C" fn(GameParam, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
429 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
430 __inner(__receiver, __mi)
431 }
432 }
433 }
434 #[doc = "`GetDebugName()` overload"]
435 fn get_debug_name(self) -> ::unity::Il2CppString {
436 unsafe {
437 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438 {
439 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
441 panic!(
442 "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447 8usize,
448 __vt.len(),
449 <GameParam as ::unity::ClassIdentity>::NAME,
450 "GetDebugName",
451 )
452 });
453 let __inner: extern "C" fn(GameParam, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
454 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
455 __inner(__receiver, __mi)
456 }
457 }
458 }
459 #[doc = "`GetGroupName()` overload"]
460 fn get_group_name(self) -> ::unity::Il2CppString {
461 unsafe {
462 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463 ::unity::il2cpp_call!((::unity::module_base()+0x2280850usize)as*mut u8, ::unity::Il2CppString;
464(GameParam)__receiver)
465 }
466 }
467 #[doc = "`GetKind()` overload"]
468 fn get_kind(self) -> crate::app::gameparam::GameParam_Kind {
469 unsafe {
470 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471 ::unity::il2cpp_call!((::unity::module_base()+0x22808c0usize)as*mut u8,crate::app::gameparam::GameParam_Kind;
472(GameParam)__receiver)
473 }
474 }
475 #[doc = "`Reset()` overload"]
476 fn reset(self) -> () {
477 unsafe {
478 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479 ::unity::il2cpp_call!((::unity::module_base()+0x2280950usize)as*mut u8,();
480(GameParam)__receiver)
481 }
482 }
483 #[doc = "`GetString()` overload"]
484 fn get_string(self) -> ::unity::Il2CppString {
485 unsafe {
486 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
487 ::unity::il2cpp_call!((::unity::module_base()+0x22809f0usize)as*mut u8, ::unity::Il2CppString;
488(GameParam)__receiver)
489 }
490 }
491 #[doc = "`.ctor()` overload"]
492 fn ctor(self) -> () {
493 unsafe {
494 let __receiver = <GameParam as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
495 ::unity::il2cpp_call!((::unity::module_base()+0x22812d0usize)as*mut u8,();
496(GameParam)__receiver)
497 }
498 }
499}
500
501#[cfg(feature = "app-gameparam")]
502impl<__T: IGameParam> IGameParamMethods for __T {}
503
504#[cfg(feature = "app-gameparam")]
505impl GameParam {
506 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
508 }
509
510 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
512 }
513
514 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
516 }
517
518 pub fn get_english_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
520 }
521
522 pub fn set_english_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
524 }
525
526 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
528 }
529
530 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
532 }
533
534 pub fn get_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
535 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
536 }
537
538 pub fn set_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
539 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
540 }
541
542 pub fn get_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
543 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
544 }
545
546 pub fn set_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
548 }
549
550 pub fn get_step_method_info() -> &'static ::unity::il2cpp::MethodInfo {
551 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
552 }
553
554 pub fn set_step_method_info() -> &'static ::unity::il2cpp::MethodInfo {
555 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
556 }
557
558 pub fn get_enum_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
560 }
561
562 pub fn set_enum_method_info() -> &'static ::unity::il2cpp::MethodInfo {
563 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
564 }
565
566 pub fn get_initial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
568 }
569
570 pub fn set_initial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
572 }
573
574 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
576 }
577
578 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
580 }
581
582 pub fn get_group_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
584 }
585
586 pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
588 }
589
590 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
592 }
593
594 pub fn get_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
596 }
597
598 pub fn get_bool_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
600 }
601
602 pub fn get_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
604 }
605
606 pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
608 }
609
610 pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
612 }
613
614 pub fn get_color_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
616 }
617
618 pub fn try_get_group_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
620 }
621
622 pub fn each_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
624 }
625
626 pub fn each_function_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
628 }
629
630 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
632 }
633}
634
635#[cfg(feature = "app-gameparam")]
636impl GameParam {
637 #[doc = "Direct (non-virtual) call to `GameParam`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
638 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
639 let __mi = Self::on_build_method_info();
640 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
641 __inner(this.into(), ::core::option::Option::None)
642 }
643
644 #[doc = "Direct (non-virtual) call to `GameParam`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
645 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
646 let __mi = Self::get_debug_name_method_info();
647 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
648 __inner(this.into(), ::core::option::Option::None)
649 }
650}
651
652#[cfg(feature = "app-gameparam")]
653impl GameParam {
654 #[doc = "`.ctor()` — no args"]
655 pub fn new() -> Self {
656 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
657 panic!(
658 "{}
659::{}
660 failed to instantiate",
661 ::core::stringify!(GameParam),
662 ::core::stringify!(new),
663 )
664 });
665 <Self as IGameParamMethods>::ctor(this);
666 this
667 }
668}
669
670#[cfg(feature = "app-gameparam")]
671pub trait IGameParam_ParamFunctionMethods: IGameParam_ParamFunction {
672 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
673 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
674 unsafe {
675 let __receiver =
676 <GameParam_ParamFunction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
677 ::unity::il2cpp_call!((::unity::module_base()+0x1e66900usize)as*mut u8,();
678(GameParam_ParamFunction)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
679 }
680 }
681 #[doc = "`Invoke(crate::app::gameparam::GameParam, ::unity::Array<crate::system::object::Object>)` overload"]
682 fn invoke(
683 self,
684 param: impl ::core::convert::Into<crate::app::gameparam::GameParam>,
685 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
686 ) -> () {
687 unsafe {
688 let __receiver =
689 <GameParam_ParamFunction as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
690 {
691 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
692 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
693 panic!(
694 "unity: virtual slot {}
695 out of range (vtable len {}
696) on the runtime class behind {}
697 (method `{}
698`)",
699 13usize,
700 __vt.len(),
701 <GameParam_ParamFunction as ::unity::ClassIdentity>::NAME,
702 "Invoke",
703 )
704 });
705 let __inner: extern "C" fn(
706 GameParam_ParamFunction,
707 crate::app::gameparam::GameParam,
708 ::unity::Array<crate::system::object::Object>,
709 ::unity::OptionalMethod,
710 ) -> () = ::core::mem::transmute(__vi.method_ptr);
711 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
712 __inner(__receiver, ::core::convert::Into::into(param), ::core::convert::Into::into(args), __mi)
713 }
714 }
715 }
716}
717
718#[cfg(feature = "app-gameparam")]
719impl<__T: IGameParam_ParamFunction> IGameParam_ParamFunctionMethods for __T {}
720
721#[cfg(feature = "app-gameparam")]
722impl GameParam_ParamFunction {
723 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
724 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
725 }
726
727 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
728 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
729 }
730}
731
732#[cfg(feature = "app-gameparam")]
733impl GameParam_ParamFunction {
734 #[doc = "Direct (non-virtual) call to `GameParam_ParamFunction`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
735 pub unsafe fn invoke(
736 this: impl ::core::convert::Into<::unity::IlInstance>,
737 param: crate::app::gameparam::GameParam,
738 args: ::unity::Array<crate::system::object::Object>,
739 ) -> () {
740 let __mi = Self::invoke_method_info();
741 let __inner: extern "C" fn(
742 ::unity::IlInstance,
743 crate::app::gameparam::GameParam,
744 ::unity::Array<crate::system::object::Object>,
745 ::unity::OptionalMethod,
746 ) -> () = ::core::mem::transmute(__mi.method_ptr);
747 __inner(this.into(), param, args, ::core::option::Option::None)
748 }
749}
750
751#[cfg(feature = "app-gameparam")]
752impl GameParam_ParamFunction {
753 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
754 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
755 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
756 panic!(
757 "{}
758::{}
759 failed to instantiate",
760 ::core::stringify!(GameParam_ParamFunction),
761 ::core::stringify!(new),
762 )
763 });
764 <Self as IGameParam_ParamFunctionMethods>::ctor(this, object, method);
765 this
766 }
767}
768
769#[cfg(feature = "app-gameparam")]
770#[doc(hidden)]
771pub mod prelude {
772 pub use super::{
773 GameParam, GameParam_Holder, GameParam_Kind, GameParam_ParamFunction, IGameParam, IGameParamMethods, IGameParam_Holder,
774 IGameParam_HolderMethods, IGameParam_ParamFunction, IGameParam_ParamFunctionMethods,
775 };
776 #[cfg(feature = "app-structbase")]
777 pub use crate::app::structbase::IStructBaseMethods;
778 #[cfg(feature = "app-structdata_1")]
779 pub use crate::app::structdata_1::IStructData_1Methods;
780 #[cfg(feature = "app-structtemplate_1")]
781 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
782 #[cfg(feature = "system-delegate")]
783 pub use crate::system::delegate::IDelegateMethods;
784 #[cfg(feature = "system-multicastdelegate")]
785 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
786 #[cfg(feature = "system-object")]
787 pub use crate::system::object::IObjectMethods;
788 #[cfg(feature = "system-enum")]
789 pub use crate::system::r#enum::IEnumMethods;
790 #[cfg(feature = "system-valuetype")]
791 pub use crate::system::valuetype::IValueTypeMethods;
792 pub use crate::{
793 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
794 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
795 };
796}