engage/generated/app/
hubskyselector.rs1#[cfg(feature = "app-hubskyselector-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/hubskyselector/HubSkySelector.md"))]
19 #[::unity::class(namespace = "App", name = "HubSkySelector")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct HubSkySelector {
22 #[offset(24)]
23 #[rename(name = "m_materialMorning")]
24 pub m_material_morning: crate::unity_engine::material::Material,
25 #[offset(32)]
26 #[rename(name = "m_materialDay")]
27 pub m_material_day: crate::unity_engine::material::Material,
28 #[offset(40)]
29 #[rename(name = "m_materialEvening")]
30 pub m_material_evening: crate::unity_engine::material::Material,
31 #[offset(48)]
32 #[rename(name = "m_materialNight")]
33 pub m_material_night: crate::unity_engine::material::Material,
34 }
35}
36
37#[cfg(feature = "app-hubskyselector-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-hubskyselector")]
41pub trait IHubSkySelectorMethods: IHubSkySelector {
42 #[doc = "`Start()` overload"]
43 fn start(self) -> () {
44 unsafe {
45 let __receiver = <HubSkySelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x2a59c90usize)as*mut u8,();
47(HubSkySelector)__receiver)
48 }
49 }
50 #[doc = "`OnDestroy()` overload"]
51 fn on_destroy(self) -> () {
52 unsafe {
53 let __receiver = <HubSkySelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x2a59d70usize)as*mut u8,();
55(HubSkySelector)__receiver)
56 }
57 }
58 #[doc = "`Apply(crate::app::hubutil::HubUtil_TimezoneType)` overload"]
59 fn apply(self, timezone_type: impl ::core::convert::Into<crate::app::hubutil::HubUtil_TimezoneType>) -> () {
60 unsafe {
61 let __receiver = <HubSkySelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2a59e40usize)as*mut u8,();
63(HubSkySelector)__receiver,(crate::app::hubutil::HubUtil_TimezoneType)::core::convert::Into::into(timezone_type))
64 }
65 }
66 #[doc = "`UpdateTimezoneType()` overload"]
67 fn update_timezone_type(self) -> () {
68 unsafe {
69 let __receiver = <HubSkySelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x2a59d00usize)as*mut u8,();
71(HubSkySelector)__receiver)
72 }
73 }
74 #[doc = "`.ctor()` overload"]
75 fn ctor(self) -> () {
76 unsafe {
77 let __receiver = <HubSkySelector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x2a5a1a0usize)as*mut u8,();
79(HubSkySelector)__receiver)
80 }
81 }
82}
83
84#[cfg(feature = "app-hubskyselector")]
85impl<__T: IHubSkySelector> IHubSkySelectorMethods for __T {}
86
87#[cfg(feature = "app-hubskyselector")]
88impl HubSkySelector {
89 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91 }
92
93 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95 }
96
97 pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
99 }
100
101 pub fn update_timezone_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
103 }
104
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
107 }
108}
109
110#[cfg(feature = "app-hubskyselector")]
111impl HubSkySelector {
112 #[doc = "`.ctor()` — no args"]
113 pub fn new() -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(HubSkySelector),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as IHubSkySelectorMethods>::ctor(this);
124 this
125 }
126}
127
128#[cfg(feature = "app-hubskyselector")]
129#[doc(hidden)]
130pub mod prelude {
131 pub use super::{HubSkySelector, IHubSkySelector, IHubSkySelectorMethods};
132 #[cfg(feature = "system-object")]
133 pub use crate::system::object::IObjectMethods;
134 #[cfg(feature = "unity_engine-behaviour")]
135 pub use crate::unity_engine::behaviour::IBehaviourMethods;
136 #[cfg(feature = "unity_engine-component")]
137 pub use crate::unity_engine::component::IComponentMethods;
138 #[cfg(feature = "unity_engine-monobehaviour")]
139 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
140 #[cfg(feature = "unity_engine-object_2")]
141 pub use crate::unity_engine::object_2::IObject_2Methods;
142 pub use crate::{
143 system::object::IObject,
144 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
145 };
146}