Skip to main content

engage/generated/app/
menuaccessorycontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-menuaccessorycontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/menuaccessorycontent/MenuAccessoryContent.md"))]
19    #[::unity::class(namespace = "App", name = "MenuAccessoryContent")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MenuAccessoryContent {
22        #[offset(24)]
23        #[rename(name = "m_MasterMenu")]
24        pub m_master_menu: crate::app::basicmenu::BasicMenu,
25        #[offset(32)]
26        #[rename(name = "m_winAnimator")]
27        pub m_win_animator: crate::unity_engine::animator::Animator,
28    }
29}
30
31#[cfg(feature = "app-menuaccessorycontent-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-menuaccessorycontent")]
35pub trait IMenuAccessoryContentMethods: IMenuAccessoryContent {
36    #[doc = "`GetMenu()` overload"]
37    fn get_menu(self) -> crate::app::basicmenu::BasicMenu {
38        unsafe {
39            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x25cc3f0usize)as*mut u8,crate::app::basicmenu::BasicMenu;
41(MenuAccessoryContent)__receiver)
42        }
43    }
44    #[doc = "`SetMenu(crate::app::basicmenu::BasicMenu)` overload"]
45    fn set_menu(self, menu: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu>) -> () {
46        unsafe {
47            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x25cc400usize)as*mut u8,();
49(MenuAccessoryContent)__receiver,(crate::app::basicmenu::BasicMenu)::core::convert::Into::into(menu))
50        }
51    }
52    #[doc = "`IsOpening()` overload"]
53    fn is_opening(self) -> bool {
54        unsafe {
55            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        4usize,
66                        __vt.len(),
67                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
68                        "IsOpening",
69                    )
70                });
71                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
72                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73                __inner(__receiver, __mi)
74            }
75        }
76    }
77    #[doc = "`IsClosing()` overload"]
78    fn is_closing(self) -> bool {
79        unsafe {
80            let __receiver = <MenuAccessoryContent 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(5usize).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                        5usize,
91                        __vt.len(),
92                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
93                        "IsClosing",
94                    )
95                });
96                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> bool = ::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 = "`IsClosed()` overload"]
103    fn is_closed(self) -> bool {
104        unsafe {
105            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            {
107                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
109                    panic!(
110                        "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115                        6usize,
116                        __vt.len(),
117                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
118                        "IsClosed",
119                    )
120                });
121                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, __mi)
124            }
125        }
126    }
127    #[doc = "`Awake()` overload"]
128    fn awake(self) -> () {
129        unsafe {
130            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            {
132                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
134                    panic!(
135                        "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140                        7usize,
141                        __vt.len(),
142                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
143                        "Awake",
144                    )
145                });
146                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
147                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148                __inner(__receiver, __mi)
149            }
150        }
151    }
152    #[doc = "`OpenAnime()` overload"]
153    fn open_anime(self) -> () {
154        unsafe {
155            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            {
157                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
159                    panic!(
160                        "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165                        8usize,
166                        __vt.len(),
167                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
168                        "OpenAnime",
169                    )
170                });
171                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
172                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173                __inner(__receiver, __mi)
174            }
175        }
176    }
177    #[doc = "`CloseAnime()` overload"]
178    fn close_anime(self) -> () {
179        unsafe {
180            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            {
182                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
183                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
184                    panic!(
185                        "unity: virtual slot {}
186 out of range (vtable len {}
187) on the runtime class behind {}
188 (method `{}
189`)",
190                        9usize,
191                        __vt.len(),
192                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
193                        "CloseAnime",
194                    )
195                });
196                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
197                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
198                __inner(__receiver, __mi)
199            }
200        }
201    }
202    #[doc = "`Update()` overload"]
203    fn update(self) -> () {
204        unsafe {
205            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            {
207                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
209                    panic!(
210                        "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215                        10usize,
216                        __vt.len(),
217                        <MenuAccessoryContent as ::unity::ClassIdentity>::NAME,
218                        "Update",
219                    )
220                });
221                let __inner: extern "C" fn(MenuAccessoryContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
222                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
223                __inner(__receiver, __mi)
224            }
225        }
226    }
227    #[doc = "`.ctor()` overload"]
228    fn ctor(self) -> () {
229        unsafe {
230            let __receiver = <MenuAccessoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x25cc8c0usize)as*mut u8,();
232(MenuAccessoryContent)__receiver)
233        }
234    }
235}
236
237#[cfg(feature = "app-menuaccessorycontent")]
238impl<__T: IMenuAccessoryContent> IMenuAccessoryContentMethods for __T {}
239
240#[cfg(feature = "app-menuaccessorycontent")]
241impl MenuAccessoryContent {
242    pub fn get_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
244    }
245
246    pub fn set_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
248    }
249
250    pub fn is_opening_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
252    }
253
254    pub fn is_closing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
256    }
257
258    pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
260    }
261
262    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
264    }
265
266    pub fn open_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
268    }
269
270    pub fn close_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
272    }
273
274    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
276    }
277
278    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
280    }
281}
282
283#[cfg(feature = "app-menuaccessorycontent")]
284impl MenuAccessoryContent {
285    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `IsOpening`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286    pub unsafe fn is_opening(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
287        let __mi = Self::is_opening_method_info();
288        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
289        __inner(this.into(), ::core::option::Option::None)
290    }
291
292    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `IsClosing`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293    pub unsafe fn is_closing(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
294        let __mi = Self::is_closing_method_info();
295        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
296        __inner(this.into(), ::core::option::Option::None)
297    }
298
299    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `IsClosed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
300    pub unsafe fn is_closed(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
301        let __mi = Self::is_closed_method_info();
302        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
303        __inner(this.into(), ::core::option::Option::None)
304    }
305
306    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
307    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
308        let __mi = Self::awake_method_info();
309        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
310        __inner(this.into(), ::core::option::Option::None)
311    }
312
313    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `OpenAnime`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
314    pub unsafe fn open_anime(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
315        let __mi = Self::open_anime_method_info();
316        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
317        __inner(this.into(), ::core::option::Option::None)
318    }
319
320    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `CloseAnime`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
321    pub unsafe fn close_anime(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
322        let __mi = Self::close_anime_method_info();
323        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
324        __inner(this.into(), ::core::option::Option::None)
325    }
326
327    #[doc = "Direct (non-virtual) call to `MenuAccessoryContent`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
329        let __mi = Self::update_method_info();
330        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
331        __inner(this.into(), ::core::option::Option::None)
332    }
333}
334
335#[cfg(feature = "app-menuaccessorycontent")]
336impl MenuAccessoryContent {
337    #[doc = "`.ctor()` — no args"]
338    pub fn new() -> Self {
339        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
340            panic!(
341                "{}
342::{}
343 failed to instantiate",
344                ::core::stringify!(MenuAccessoryContent),
345                ::core::stringify!(new),
346            )
347        });
348        <Self as IMenuAccessoryContentMethods>::ctor(this);
349        this
350    }
351}
352
353#[cfg(feature = "app-menuaccessorycontent")]
354#[doc(hidden)]
355pub mod prelude {
356    pub use super::{IMenuAccessoryContent, IMenuAccessoryContentMethods, MenuAccessoryContent};
357    #[cfg(feature = "system-object")]
358    pub use crate::system::object::IObjectMethods;
359    #[cfg(feature = "unity_engine-behaviour")]
360    pub use crate::unity_engine::behaviour::IBehaviourMethods;
361    #[cfg(feature = "unity_engine-component")]
362    pub use crate::unity_engine::component::IComponentMethods;
363    #[cfg(feature = "unity_engine-monobehaviour")]
364    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
365    #[cfg(feature = "unity_engine-object_2")]
366    pub use crate::unity_engine::object_2::IObject_2Methods;
367    pub use crate::{
368        system::object::IObject,
369        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
370    };
371}