1#[cfg(feature = "app-giftcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
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/giftcontent/GiftContent.md"))]
20 #[::unity::class(namespace = "App", name = "GiftContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct GiftContent {
23 #[static_field]
24 #[rename(name = "PrefabPath")]
25 pub prefab_path: ::unity::Il2CppString,
26 #[static_field]
27 #[rename(name = "UIName")]
28 pub ui_name: ::unity::Il2CppString,
29 #[offset(232)]
30 #[rename(name = "m_helpText")]
31 pub m_help_text: crate::unity_engine::gameobject::GameObject,
32 #[offset(240)]
33 #[rename(name = "m_Gift")]
34 pub m_gift: crate::unity_engine::gameobject::GameObject,
35 #[offset(248)]
36 #[rename(name = "m_ItemCount")]
37 pub m_item_count: crate::unity_engine::gameobject::GameObject,
38 }
39}
40
41#[cfg(feature = "app-giftcontent-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-giftcontent")]
45impl GiftContent {
46 #[doc = "`LoadPrefabAsync()` overload"]
47 pub fn load_prefab_async() -> () {
48 unsafe {
49 ::unity::il2cpp_call!((::unity::module_base()+0x25222f0usize)as*mut u8,();
50 )
51 }
52 }
53
54 #[doc = "`IsLoadingPrefab()` overload"]
55 pub fn is_loading_prefab() -> bool {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x2522390usize)as*mut u8,bool;
58 )
59 }
60 }
61
62 #[doc = "`UnloadPrefab()` overload"]
63 pub fn unload_prefab() -> () {
64 unsafe {
65 ::unity::il2cpp_call!((::unity::module_base()+0x2522410usize)as*mut u8,();
66 )
67 }
68 }
69
70 #[doc = "`Create()` overload"]
71 pub fn create() -> crate::app::giftcontent::GiftContent {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x2522490usize)as*mut u8,crate::app::giftcontent::GiftContent;
74 )
75 }
76 }
77
78 #[doc = "`Destroy()` overload"]
79 pub fn destroy() -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x2522550usize)as*mut u8,();
82 )
83 }
84 }
85}
86
87#[cfg(feature = "app-giftcontent")]
88pub trait IGiftContentMethods: IGiftContent {
89 #[doc = "`SetHelpText(::unity::Il2CppString)` overload"]
90 fn set_help_text(self, help: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
91 unsafe {
92 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x25225e0usize)as*mut u8,();
94(GiftContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(help))
95 }
96 }
97 #[doc = "`AfterBuild()` overload"]
98 fn after_build(self) -> () {
99 unsafe {
100 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 {
102 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
104 panic!(
105 "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110 27usize,
111 __vt.len(),
112 <GiftContent as ::unity::ClassIdentity>::NAME,
113 "AfterBuild",
114 )
115 });
116 let __inner: extern "C" fn(GiftContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, __mi)
119 }
120 }
121 }
122 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
123 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
124 unsafe {
125 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 {
127 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
129 panic!(
130 "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135 10usize,
136 __vt.len(),
137 <GiftContent as ::unity::ClassIdentity>::NAME,
138 "CalcCursorMovedPosY",
139 )
140 });
141 let __inner: extern "C" fn(GiftContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
142 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
144 }
145 }
146 }
147 #[doc = "`GetMenuItemContentMax()` overload"]
148 fn get_menu_item_content_max(self) -> i32 {
149 unsafe {
150 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 {
152 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
154 panic!(
155 "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160 4usize,
161 __vt.len(),
162 <GiftContent as ::unity::ClassIdentity>::NAME,
163 "GetMenuItemContentMax",
164 )
165 });
166 let __inner: extern "C" fn(GiftContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
167 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
168 __inner(__receiver, __mi)
169 }
170 }
171 }
172 #[doc = "`CalcW()` overload"]
173 fn calc_w(self) -> f32 {
174 unsafe {
175 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 {
177 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
179 panic!(
180 "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185 21usize,
186 __vt.len(),
187 <GiftContent as ::unity::ClassIdentity>::NAME,
188 "CalcW",
189 )
190 });
191 let __inner: extern "C" fn(GiftContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
192 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193 __inner(__receiver, __mi)
194 }
195 }
196 }
197 #[doc = "`CalcH()` overload"]
198 fn calc_h(self) -> f32 {
199 unsafe {
200 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201 {
202 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
203 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
204 panic!(
205 "unity: virtual slot {}
206 out of range (vtable len {}
207) on the runtime class behind {}
208 (method `{}
209`)",
210 22usize,
211 __vt.len(),
212 <GiftContent as ::unity::ClassIdentity>::NAME,
213 "CalcH",
214 )
215 });
216 let __inner: extern "C" fn(GiftContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
217 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
218 __inner(__receiver, __mi)
219 }
220 }
221 }
222 #[doc = "`Awake()` overload"]
223 fn awake(self) -> () {
224 unsafe {
225 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 {
227 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
228 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
229 panic!(
230 "unity: virtual slot {}
231 out of range (vtable len {}
232) on the runtime class behind {}
233 (method `{}
234`)",
235 30usize,
236 __vt.len(),
237 <GiftContent as ::unity::ClassIdentity>::NAME,
238 "Awake",
239 )
240 });
241 let __inner: extern "C" fn(GiftContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
242 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
243 __inner(__receiver, __mi)
244 }
245 }
246 }
247 #[doc = "`.ctor()` overload"]
248 fn ctor(self) -> () {
249 unsafe {
250 let __receiver = <GiftContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x2522a50usize)as*mut u8,();
252(GiftContent)__receiver)
253 }
254 }
255}
256
257#[cfg(feature = "app-giftcontent")]
258impl<__T: IGiftContent> IGiftContentMethods for __T {}
259
260#[cfg(feature = "app-giftcontent")]
261impl GiftContent {
262 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
264 }
265
266 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
268 }
269
270 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
272 }
273
274 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
276 }
277
278 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
280 }
281
282 pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
284 }
285
286 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
288 }
289
290 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
292 }
293
294 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
296 }
297
298 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
300 }
301
302 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
304 }
305
306 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
308 }
309
310 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
312 }
313}
314
315#[cfg(feature = "app-giftcontent")]
316impl GiftContent {
317 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
318 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
319 let __mi = Self::after_build_method_info();
320 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
321 __inner(this.into(), ::core::option::Option::None)
322 }
323
324 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
325 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
326 let __mi = Self::calc_cursor_moved_pos_y_method_info();
327 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
328 __inner(this.into(), menu_item_index, ::core::option::Option::None)
329 }
330
331 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
332 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
333 let __mi = Self::get_menu_item_content_max_method_info();
334 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
335 __inner(this.into(), ::core::option::Option::None)
336 }
337
338 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
339 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
340 let __mi = Self::calc_w_method_info();
341 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
342 __inner(this.into(), ::core::option::Option::None)
343 }
344
345 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
346 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
347 let __mi = Self::calc_h_method_info();
348 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
349 __inner(this.into(), ::core::option::Option::None)
350 }
351
352 #[doc = "Direct (non-virtual) call to `GiftContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
353 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
354 let __mi = Self::awake_method_info();
355 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
356 __inner(this.into(), ::core::option::Option::None)
357 }
358}
359
360#[cfg(feature = "app-giftcontent")]
361impl GiftContent {
362 #[doc = "`.ctor()` — no args"]
363 pub fn new() -> Self {
364 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
365 panic!(
366 "{}
367::{}
368 failed to instantiate",
369 ::core::stringify!(GiftContent),
370 ::core::stringify!(new),
371 )
372 });
373 <Self as IGiftContentMethods>::ctor(this);
374 this
375 }
376}
377
378#[cfg(feature = "app-giftcontent")]
379#[doc(hidden)]
380pub mod prelude {
381 pub use super::{GiftContent, IGiftContent, IGiftContentMethods};
382 #[cfg(feature = "app-basicmenucontent")]
383 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
384 #[cfg(feature = "system-object")]
385 pub use crate::system::object::IObjectMethods;
386 #[cfg(feature = "unity_engine-behaviour")]
387 pub use crate::unity_engine::behaviour::IBehaviourMethods;
388 #[cfg(feature = "unity_engine-component")]
389 pub use crate::unity_engine::component::IComponentMethods;
390 #[cfg(feature = "unity_engine-monobehaviour")]
391 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
392 #[cfg(feature = "unity_engine-object_2")]
393 pub use crate::unity_engine::object_2::IObject_2Methods;
394 pub use crate::{
395 app::basicmenucontent::IBasicMenuContent,
396 system::object::IObject,
397 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
398 };
399}