Skip to main content

engage/generated/app/
menubg.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-menubg-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/menubg/MenuBg.md"))]
19    #[::unity::class(namespace = "App", name = "MenuBg")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MenuBg {
22        #[static_field]
23        #[rename(name = "PrefabPath")]
24        pub prefab_path: ::unity::Il2CppString,
25    }
26}
27
28#[cfg(feature = "app-menubg-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-menubg")]
32impl MenuBg {
33    #[doc = "`LoadPrefabAsync()` overload"]
34    pub fn load_prefab_async() -> () {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x25cdb60usize)as*mut u8,();
37            )
38        }
39    }
40
41    #[doc = "`IsLoadingPrefab()` overload"]
42    pub fn is_loading_prefab() -> bool {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x25cdc00usize)as*mut u8,bool;
45            )
46        }
47    }
48
49    #[doc = "`UnloadPrefab()` overload"]
50    pub fn unload_prefab() -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x25cdc80usize)as*mut u8,();
53            )
54        }
55    }
56
57    #[doc = "`Create()` overload"]
58    pub fn create() -> crate::app::menubg::MenuBg {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x25cdd00usize)as*mut u8,crate::app::menubg::MenuBg;
61            )
62        }
63    }
64}
65
66#[cfg(feature = "app-menubg")]
67pub trait IMenuBgMethods: IMenuBg {
68    #[doc = "`Destroy()` overload"]
69    fn destroy(self) -> () {
70        unsafe {
71            let __receiver = <MenuBg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x25cddd0usize)as*mut u8,();
73(MenuBg)__receiver)
74        }
75    }
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <MenuBg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x25cde50usize)as*mut u8,();
81(MenuBg)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "app-menubg")]
87impl<__T: IMenuBg> IMenuBgMethods for __T {}
88
89#[cfg(feature = "app-menubg")]
90impl MenuBg {
91    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102
103    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105    }
106
107    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
109    }
110
111    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
113    }
114}
115
116#[cfg(feature = "app-menubg")]
117impl MenuBg {
118    #[doc = "`.ctor()` — no args"]
119    pub fn new() -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(MenuBg),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as IMenuBgMethods>::ctor(this);
130        this
131    }
132}
133
134#[cfg(feature = "app-menubg")]
135#[doc(hidden)]
136pub mod prelude {
137    pub use super::{IMenuBg, IMenuBgMethods, MenuBg};
138    #[cfg(feature = "system-object")]
139    pub use crate::system::object::IObjectMethods;
140    #[cfg(feature = "unity_engine-behaviour")]
141    pub use crate::unity_engine::behaviour::IBehaviourMethods;
142    #[cfg(feature = "unity_engine-component")]
143    pub use crate::unity_engine::component::IComponentMethods;
144    #[cfg(feature = "unity_engine-monobehaviour")]
145    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
146    #[cfg(feature = "unity_engine-object_2")]
147    pub use crate::unity_engine::object_2::IObject_2Methods;
148    pub use crate::{
149        system::object::IObject,
150        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
151    };
152}