Skip to main content

engage/generated/app/
profilecardtopmenuroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardtopmenuroot-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/profilecardtopmenuroot/ProfileCardTopMenuRoot.md"))]
19    #[::unity::class(namespace = "App", name = "ProfileCardTopMenuRoot")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ProfileCardTopMenuRoot {
22        #[static_field]
23        #[rename(name = "PrefabPath")]
24        pub prefab_path: ::unity::Il2CppString,
25        #[offset(24)]
26        #[rename(name = "m_ProfileCardTopMenuContent")]
27        pub m_profile_card_top_menu_content: crate::app::profilecardtopmenucontent::ProfileCardTopMenuContent,
28        #[offset(32)]
29        #[rename(name = "m_InfoWindowAnimator")]
30        pub m_info_window_animator: crate::unity_engine::animator::Animator,
31        #[offset(40)]
32        #[rename(name = "m_InfoWindowCaptionText")]
33        pub m_info_window_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
34        #[offset(48)]
35        #[rename(name = "m_InfoWindowDescriptionText")]
36        pub m_info_window_description_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37        #[offset(56)]
38        #[rename(name = "m_InfoWindowWarningText")]
39        pub m_info_window_warning_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
40    }
41}
42
43#[cfg(feature = "app-profilecardtopmenuroot-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-profilecardtopmenuroot")]
47impl ProfileCardTopMenuRoot {
48    #[doc = "`LoadPrefabAsync()` overload"]
49    pub fn load_prefab_async() -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2c004d0usize)as*mut u8,();
52            )
53        }
54    }
55
56    #[doc = "`IsLoadingPrefab()` overload"]
57    pub fn is_loading_prefab() -> bool {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2c00570usize)as*mut u8,bool;
60            )
61        }
62    }
63
64    #[doc = "`UnloadPrefab()` overload"]
65    pub fn unload_prefab() -> () {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2c005f0usize)as*mut u8,();
68            )
69        }
70    }
71
72    #[doc = "`CreateRoot()` overload"]
73    pub fn create_root() -> crate::app::profilecardtopmenuroot::ProfileCardTopMenuRoot {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2bffae0usize)as*mut u8,crate::app::profilecardtopmenuroot::ProfileCardTopMenuRoot;
76            )
77        }
78    }
79}
80
81#[cfg(feature = "app-profilecardtopmenuroot")]
82pub trait IProfileCardTopMenuRootMethods: IProfileCardTopMenuRoot {
83    #[doc = "`.ctor()` overload"]
84    fn ctor(self) -> () {
85        unsafe {
86            let __receiver =
87                <ProfileCardTopMenuRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2c00670usize)as*mut u8,();
89(ProfileCardTopMenuRoot)__receiver)
90        }
91    }
92    #[doc = "`GetProfileCardTopMenuContent()` overload"]
93    fn get_profile_card_top_menu_content(self) -> crate::app::profilecardtopmenucontent::ProfileCardTopMenuContent {
94        unsafe {
95            let __receiver =
96                <ProfileCardTopMenuRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x2c00680usize)as*mut u8,crate::app::profilecardtopmenucontent::ProfileCardTopMenuContent;
98(ProfileCardTopMenuRoot)__receiver)
99        }
100    }
101    #[doc = "`UpdateInfoWindow(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
102    fn update_info_window(
103        self,
104        caption_mid: impl ::core::convert::Into<::unity::Il2CppString>,
105        description_mid: impl ::core::convert::Into<::unity::Il2CppString>,
106        warning_mid: impl ::core::convert::Into<::unity::Il2CppString>,
107    ) -> () {
108        unsafe {
109            let __receiver =
110                <ProfileCardTopMenuRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x2bffd90usize)as*mut u8,();
112(ProfileCardTopMenuRoot)__receiver,(::unity::Il2CppString)::core::convert::Into::into(caption_mid),(::unity::Il2CppString)::core::convert::Into::into(description_mid),(::unity::Il2CppString)::core::convert::Into::into(warning_mid))
113        }
114    }
115    #[doc = "`Close()` overload"]
116    fn close(self) -> () {
117        unsafe {
118            let __receiver =
119                <ProfileCardTopMenuRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2c00040usize)as*mut u8,();
121(ProfileCardTopMenuRoot)__receiver)
122        }
123    }
124    #[doc = "`Destroy()` overload"]
125    fn destroy(self) -> () {
126        unsafe {
127            let __receiver =
128                <ProfileCardTopMenuRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x2c00270usize)as*mut u8,();
130(ProfileCardTopMenuRoot)__receiver)
131        }
132    }
133}
134
135#[cfg(feature = "app-profilecardtopmenuroot")]
136impl<__T: IProfileCardTopMenuRoot> IProfileCardTopMenuRootMethods for __T {}
137
138#[cfg(feature = "app-profilecardtopmenuroot")]
139impl ProfileCardTopMenuRoot {
140    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
142    }
143
144    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
146    }
147
148    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
150    }
151
152    pub fn create_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
154    }
155
156    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
158    }
159
160    pub fn get_profile_card_top_menu_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
162    }
163
164    pub fn update_info_window_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
166    }
167
168    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
170    }
171
172    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
174    }
175}
176
177#[cfg(feature = "app-profilecardtopmenuroot")]
178impl ProfileCardTopMenuRoot {
179    #[doc = "`.ctor()` — no args"]
180    pub fn new() -> Self {
181        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182            panic!(
183                "{}
184::{}
185 failed to instantiate",
186                ::core::stringify!(ProfileCardTopMenuRoot),
187                ::core::stringify!(new),
188            )
189        });
190        <Self as IProfileCardTopMenuRootMethods>::ctor(this);
191        this
192    }
193}
194
195#[cfg(feature = "app-profilecardtopmenuroot")]
196#[doc(hidden)]
197pub mod prelude {
198    pub use super::{IProfileCardTopMenuRoot, IProfileCardTopMenuRootMethods, ProfileCardTopMenuRoot};
199    #[cfg(feature = "system-object")]
200    pub use crate::system::object::IObjectMethods;
201    #[cfg(feature = "unity_engine-behaviour")]
202    pub use crate::unity_engine::behaviour::IBehaviourMethods;
203    #[cfg(feature = "unity_engine-component")]
204    pub use crate::unity_engine::component::IComponentMethods;
205    #[cfg(feature = "unity_engine-monobehaviour")]
206    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
207    #[cfg(feature = "unity_engine-object_2")]
208    pub use crate::unity_engine::object_2::IObject_2Methods;
209    pub use crate::{
210        system::object::IObject,
211        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
212    };
213}