Skip to main content

engage/generated/app/
mascotparamdata.rs

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