Skip to main content

engage/generated/app/
hubcafecolor.rs

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