Skip to main content

engage/generated/root/
categoryselectroot.rs

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