Skip to main content

engage/generated/app/
mascotfooddata.rs

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