Skip to main content

engage/generated/app/
dragonridescore.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-dragonridescore-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/dragonridescore/DragonRideScore.md"))]
19    #[::unity::class(namespace = "App", name = "DragonRideScore")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DragonRideScore {
22        #[offset(24)]
23        #[rename(name = "scoreText")]
24        pub score_text: crate::unity_engine::ui::text::Text,
25    }
26}
27
28#[cfg(feature = "app-dragonridescore-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-dragonridescore")]
32pub trait IDragonRideScoreMethods: IDragonRideScore {
33    #[doc = "`Start()` overload"]
34    fn start(self) -> () {
35        unsafe {
36            let __receiver = <DragonRideScore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x2ad3eb0usize)as*mut u8,();
38(DragonRideScore)__receiver)
39        }
40    }
41    #[doc = "`Update()` overload"]
42    fn update(self) -> () {
43        unsafe {
44            let __receiver = <DragonRideScore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2ad3ec0usize)as*mut u8,();
46(DragonRideScore)__receiver)
47        }
48    }
49    #[doc = "`OnEnable()` overload"]
50    fn on_enable(self) -> () {
51        unsafe {
52            let __receiver = <DragonRideScore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2ad3ed0usize)as*mut u8,();
54(DragonRideScore)__receiver)
55        }
56    }
57    #[doc = "`.ctor()` overload"]
58    fn ctor(self) -> () {
59        unsafe {
60            let __receiver = <DragonRideScore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x2ad3ee0usize)as*mut u8,();
62(DragonRideScore)__receiver)
63        }
64    }
65}
66
67#[cfg(feature = "app-dragonridescore")]
68impl<__T: IDragonRideScore> IDragonRideScoreMethods for __T {}
69
70#[cfg(feature = "app-dragonridescore")]
71impl DragonRideScore {
72    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79
80    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82    }
83
84    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
86    }
87}
88
89#[cfg(feature = "app-dragonridescore")]
90impl DragonRideScore {
91    #[doc = "`.ctor()` — no args"]
92    pub fn new() -> Self {
93        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94            panic!(
95                "{}
96::{}
97 failed to instantiate",
98                ::core::stringify!(DragonRideScore),
99                ::core::stringify!(new),
100            )
101        });
102        <Self as IDragonRideScoreMethods>::ctor(this);
103        this
104    }
105}
106
107#[cfg(feature = "app-dragonridescore")]
108#[doc(hidden)]
109pub mod prelude {
110    pub use super::{DragonRideScore, IDragonRideScore, IDragonRideScoreMethods};
111    #[cfg(feature = "system-object")]
112    pub use crate::system::object::IObjectMethods;
113    #[cfg(feature = "unity_engine-behaviour")]
114    pub use crate::unity_engine::behaviour::IBehaviourMethods;
115    #[cfg(feature = "unity_engine-component")]
116    pub use crate::unity_engine::component::IComponentMethods;
117    #[cfg(feature = "unity_engine-monobehaviour")]
118    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
119    #[cfg(feature = "unity_engine-object_2")]
120    pub use crate::unity_engine::object_2::IObject_2Methods;
121    pub use crate::{
122        system::object::IObject,
123        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
124    };
125}