Skip to main content

engage/generated/app/
mascotfriendlycontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotfriendlycontent-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/mascotfriendlycontent/MascotFriendlyContent.md"))]
19    #[::unity::class(namespace = "App", name = "MascotFriendlyContent")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct MascotFriendlyContent {
22        #[static_field]
23        #[rename(name = "PrefabPath")]
24        pub prefab_path: ::unity::Il2CppString,
25        #[static_field]
26        #[rename(name = "UIName")]
27        pub ui_name: ::unity::Il2CppString,
28        #[offset(24)]
29        #[rename(name = "m_gauge")]
30        pub m_gauge: crate::app::interpolatorfloat::InterpolatorFloat,
31        #[offset(32)]
32        #[rename(name = "m_gaugeImage")]
33        pub m_gauge_image: crate::unity_engine::ui::image::Image,
34        #[offset(40)]
35        #[rename(name = "m_animator")]
36        pub m_animator: crate::unity_engine::animator::Animator,
37        #[offset(48)]
38        #[rename(name = "m_max")]
39        pub m_max: crate::unity_engine::gameobject::GameObject,
40    }
41}
42
43#[cfg(feature = "app-mascotfriendlycontent-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-mascotfriendlycontent")]
47impl MascotFriendlyContent {
48    #[doc = "`LoadPrefabAsync()` overload"]
49    pub fn load_prefab_async() -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2038da0usize)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()+0x2038e40usize)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()+0x2038ec0usize)as*mut u8,();
68            )
69        }
70    }
71
72    #[doc = "`Create()` overload"]
73    pub fn create() -> crate::app::mascotfriendlycontent::MascotFriendlyContent {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2038f40usize)as*mut u8,crate::app::mascotfriendlycontent::MascotFriendlyContent;
76            )
77        }
78    }
79
80    #[doc = "`Destroy()` overload"]
81    pub fn destroy() -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2039010usize)as*mut u8,();
84            )
85        }
86    }
87}
88
89#[cfg(feature = "app-mascotfriendlycontent")]
90pub trait IMascotFriendlyContentMethods: IMascotFriendlyContent {
91    #[doc = "`Awake()` overload"]
92    fn awake(self) -> () {
93        unsafe {
94            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x20390a0usize)as*mut u8,();
96(MascotFriendlyContent)__receiver)
97        }
98    }
99    #[doc = "`Show()` overload"]
100    fn show(self) -> () {
101        unsafe {
102            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x2039210usize)as*mut u8,();
104(MascotFriendlyContent)__receiver)
105        }
106    }
107    #[doc = "`Hide()` overload"]
108    fn hide(self) -> () {
109        unsafe {
110            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x2039270usize)as*mut u8,();
112(MascotFriendlyContent)__receiver)
113        }
114    }
115    #[doc = "`TryPopup()` overload"]
116    fn try_popup(self) -> () {
117        unsafe {
118            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x20392d0usize)as*mut u8,();
120(MascotFriendlyContent)__receiver)
121        }
122    }
123    #[doc = "`Update()` overload"]
124    fn update(self) -> () {
125        unsafe {
126            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2039370usize)as*mut u8,();
128(MascotFriendlyContent)__receiver)
129        }
130    }
131    #[doc = "`.ctor()` overload"]
132    fn ctor(self) -> () {
133        unsafe {
134            let __receiver = <MascotFriendlyContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x2039510usize)as*mut u8,();
136(MascotFriendlyContent)__receiver)
137        }
138    }
139}
140
141#[cfg(feature = "app-mascotfriendlycontent")]
142impl<__T: IMascotFriendlyContent> IMascotFriendlyContentMethods for __T {}
143
144#[cfg(feature = "app-mascotfriendlycontent")]
145impl MascotFriendlyContent {
146    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
148    }
149
150    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
152    }
153
154    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
156    }
157
158    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
160    }
161
162    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
164    }
165
166    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
168    }
169
170    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
172    }
173
174    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
176    }
177
178    pub fn try_popup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
180    }
181
182    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
184    }
185
186    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
188    }
189}
190
191#[cfg(feature = "app-mascotfriendlycontent")]
192impl MascotFriendlyContent {
193    #[doc = "`.ctor()` — no args"]
194    pub fn new() -> Self {
195        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
196            panic!(
197                "{}
198::{}
199 failed to instantiate",
200                ::core::stringify!(MascotFriendlyContent),
201                ::core::stringify!(new),
202            )
203        });
204        <Self as IMascotFriendlyContentMethods>::ctor(this);
205        this
206    }
207}
208
209#[cfg(feature = "app-mascotfriendlycontent")]
210#[doc(hidden)]
211pub mod prelude {
212    pub use super::{IMascotFriendlyContent, IMascotFriendlyContentMethods, MascotFriendlyContent};
213    #[cfg(feature = "system-object")]
214    pub use crate::system::object::IObjectMethods;
215    #[cfg(feature = "unity_engine-behaviour")]
216    pub use crate::unity_engine::behaviour::IBehaviourMethods;
217    #[cfg(feature = "unity_engine-component")]
218    pub use crate::unity_engine::component::IComponentMethods;
219    #[cfg(feature = "unity_engine-monobehaviour")]
220    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
221    #[cfg(feature = "unity_engine-object_2")]
222    pub use crate::unity_engine::object_2::IObject_2Methods;
223    pub use crate::{
224        system::object::IObject,
225        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
226    };
227}