engage/generated/app/
mascotfoodselectitemcontent.rs1#[cfg(feature = "app-mascotfoodselectitemcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotfoodselectitemcontent/MascotFoodSelectItemContent.md"))]
20 #[::unity::class(namespace = "App", name = "MascotFoodSelectItemContent")]
21 #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22 pub struct MascotFoodSelectItemContent {
23 #[offset(72)]
24 #[rename(name = "m_Name")]
25 pub m_name: crate::unity_engine::gameobject::GameObject,
26 #[offset(80)]
27 #[rename(name = "m_Count")]
28 pub m_count: crate::unity_engine::gameobject::GameObject,
29 #[offset(88)]
30 #[rename(name = "m_Icon")]
31 pub m_icon: crate::unity_engine::gameobject::GameObject,
32 }
33}
34
35#[cfg(feature = "app-mascotfoodselectitemcontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-mascotfoodselectitemcontent")]
39pub trait IMascotFoodSelectItemContentMethods: IMascotFoodSelectItemContent {
40 #[doc = "`SetupObjects()` overload"]
41 fn setup_objects(self) -> () {
42 unsafe {
43 let __receiver =
44 <MascotFoodSelectItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x2037b60usize)as*mut u8,();
46(MascotFoodSelectItemContent)__receiver)
47 }
48 }
49 #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
50 fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
51 unsafe {
52 let __receiver =
53 <MascotFoodSelectItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 8usize,
64 __vt.len(),
65 <MascotFoodSelectItemContent as ::unity::ClassIdentity>::NAME,
66 "Build",
67 )
68 });
69 let __inner: extern "C" fn(MascotFoodSelectItemContent, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
70 ::core::mem::transmute(__vi.method_ptr);
71 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
72 __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
73 }
74 }
75 }
76 #[doc = "`BuildText()` overload"]
77 fn build_text(self) -> () {
78 unsafe {
79 let __receiver =
80 <MascotFoodSelectItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 {
82 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
84 panic!(
85 "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90 10usize,
91 __vt.len(),
92 <MascotFoodSelectItemContent as ::unity::ClassIdentity>::NAME,
93 "BuildText",
94 )
95 });
96 let __inner: extern "C" fn(MascotFoodSelectItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
97 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
98 __inner(__receiver, __mi)
99 }
100 }
101 }
102 #[doc = "`Update()` overload"]
103 fn update(self) -> () {
104 unsafe {
105 let __receiver =
106 <MascotFoodSelectItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 15usize,
117 __vt.len(),
118 <MascotFoodSelectItemContent as ::unity::ClassIdentity>::NAME,
119 "Update",
120 )
121 });
122 let __inner: extern "C" fn(MascotFoodSelectItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(__receiver, __mi)
125 }
126 }
127 }
128 #[doc = "`.ctor()` overload"]
129 fn ctor(self) -> () {
130 unsafe {
131 let __receiver =
132 <MascotFoodSelectItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x20381e0usize)as*mut u8,();
134(MascotFoodSelectItemContent)__receiver)
135 }
136 }
137}
138
139#[cfg(feature = "app-mascotfoodselectitemcontent")]
140impl<__T: IMascotFoodSelectItemContent> IMascotFoodSelectItemContentMethods for __T {}
141
142#[cfg(feature = "app-mascotfoodselectitemcontent")]
143impl MascotFoodSelectItemContent {
144 pub fn setup_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146 }
147
148 pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150 }
151
152 pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154 }
155
156 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158 }
159
160 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162 }
163}
164
165#[cfg(feature = "app-mascotfoodselectitemcontent")]
166impl MascotFoodSelectItemContent {
167 #[doc = "Direct (non-virtual) call to `MascotFoodSelectItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168 pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
169 let __mi = Self::build_method_info();
170 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
171 ::core::mem::transmute(__mi.method_ptr);
172 __inner(this.into(), menu_item, ::core::option::Option::None)
173 }
174
175 #[doc = "Direct (non-virtual) call to `MascotFoodSelectItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
176 pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
177 let __mi = Self::build_text_method_info();
178 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
179 __inner(this.into(), ::core::option::Option::None)
180 }
181
182 #[doc = "Direct (non-virtual) call to `MascotFoodSelectItemContent`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
183 pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
184 let __mi = Self::update_method_info();
185 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
186 __inner(this.into(), ::core::option::Option::None)
187 }
188}
189
190#[cfg(feature = "app-mascotfoodselectitemcontent")]
191impl MascotFoodSelectItemContent {
192 #[doc = "`.ctor()` — no args"]
193 pub fn new() -> Self {
194 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
195 panic!(
196 "{}
197::{}
198 failed to instantiate",
199 ::core::stringify!(MascotFoodSelectItemContent),
200 ::core::stringify!(new),
201 )
202 });
203 <Self as IMascotFoodSelectItemContentMethods>::ctor(this);
204 this
205 }
206}
207
208#[cfg(feature = "app-mascotfoodselectitemcontent")]
209#[doc(hidden)]
210pub mod prelude {
211 pub use super::{IMascotFoodSelectItemContent, IMascotFoodSelectItemContentMethods, MascotFoodSelectItemContent};
212 #[cfg(feature = "app-basicmenuitemcontent")]
213 pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
214 #[cfg(feature = "system-object")]
215 pub use crate::system::object::IObjectMethods;
216 #[cfg(feature = "unity_engine-behaviour")]
217 pub use crate::unity_engine::behaviour::IBehaviourMethods;
218 #[cfg(feature = "unity_engine-component")]
219 pub use crate::unity_engine::component::IComponentMethods;
220 #[cfg(feature = "unity_engine-monobehaviour")]
221 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
222 #[cfg(feature = "unity_engine-object_2")]
223 pub use crate::unity_engine::object_2::IObject_2Methods;
224 pub use crate::{
225 app::basicmenuitemcontent::IBasicMenuItemContent,
226 system::object::IObject,
227 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
228 };
229}