engage/generated/app/
hubenv.rs1#[cfg(feature = "app-hubenv-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/hubenv/HubEnv.md"))]
19 #[::unity::class(namespace = "App", name = "HubEnv")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct HubEnv {
22 #[offset(24)]
23 #[rename(name = "m_EnableEditMode")]
24 pub m_enable_edit_mode: bool,
25 #[offset(28)]
26 #[rename(name = "m_editTimezoneType")]
27 pub m_edit_timezone_type: crate::app::hubutil::HubUtil_TimezoneType,
28 #[offset(32)]
29 #[rename(name = "m_EnableMorning")]
30 pub m_enable_morning: bool,
31 #[offset(36)]
32 #[rename(name = "m_MorningAmbientSkyColor")]
33 pub m_morning_ambient_sky_color: crate::unity_engine::color::Color,
34 #[offset(52)]
35 #[rename(name = "m_MorningAmbientEquatorColor")]
36 pub m_morning_ambient_equator_color: crate::unity_engine::color::Color,
37 #[offset(68)]
38 #[rename(name = "m_MorningAmbientGroundColor")]
39 pub m_morning_ambient_ground_color: crate::unity_engine::color::Color,
40 #[offset(84)]
41 #[rename(name = "m_MorningFogColor")]
42 pub m_morning_fog_color: crate::unity_engine::color::Color,
43 #[offset(100)]
44 #[rename(name = "m_MorningFogStart")]
45 pub m_morning_fog_start: f32,
46 #[offset(104)]
47 #[rename(name = "m_MorningFogEnd")]
48 pub m_morning_fog_end: f32,
49 #[offset(108)]
50 #[rename(name = "m_EnableDay")]
51 pub m_enable_day: bool,
52 #[offset(112)]
53 #[rename(name = "m_DayAmbientSkyColor")]
54 pub m_day_ambient_sky_color: crate::unity_engine::color::Color,
55 #[offset(128)]
56 #[rename(name = "m_DayAmbientEquatorColor")]
57 pub m_day_ambient_equator_color: crate::unity_engine::color::Color,
58 #[offset(144)]
59 #[rename(name = "m_DayAmbientGroundColor")]
60 pub m_day_ambient_ground_color: crate::unity_engine::color::Color,
61 #[offset(160)]
62 #[rename(name = "m_DayFogColor")]
63 pub m_day_fog_color: crate::unity_engine::color::Color,
64 #[offset(176)]
65 #[rename(name = "m_DayFogStart")]
66 pub m_day_fog_start: f32,
67 #[offset(180)]
68 #[rename(name = "m_DayFogEnd")]
69 pub m_day_fog_end: f32,
70 #[offset(184)]
71 #[rename(name = "m_EnableEvening")]
72 pub m_enable_evening: bool,
73 #[offset(188)]
74 #[rename(name = "m_EveningAmbientSkyColor")]
75 pub m_evening_ambient_sky_color: crate::unity_engine::color::Color,
76 #[offset(204)]
77 #[rename(name = "m_EveningAmbientEquatorColor")]
78 pub m_evening_ambient_equator_color: crate::unity_engine::color::Color,
79 #[offset(220)]
80 #[rename(name = "m_EveningAmbientGroundColor")]
81 pub m_evening_ambient_ground_color: crate::unity_engine::color::Color,
82 #[offset(236)]
83 #[rename(name = "m_EveningFogColor")]
84 pub m_evening_fog_color: crate::unity_engine::color::Color,
85 #[offset(252)]
86 #[rename(name = "m_EveningFogStart")]
87 pub m_evening_fog_start: f32,
88 #[offset(256)]
89 #[rename(name = "m_EveningFogEnd")]
90 pub m_evening_fog_end: f32,
91 #[offset(260)]
92 #[rename(name = "m_EnableNight")]
93 pub m_enable_night: bool,
94 #[offset(264)]
95 #[rename(name = "m_NightAmbientSkyColor")]
96 pub m_night_ambient_sky_color: crate::unity_engine::color::Color,
97 #[offset(280)]
98 #[rename(name = "m_NightAmbientEquatorColor")]
99 pub m_night_ambient_equator_color: crate::unity_engine::color::Color,
100 #[offset(296)]
101 #[rename(name = "m_NightAmbientGroundColor")]
102 pub m_night_ambient_ground_color: crate::unity_engine::color::Color,
103 #[offset(312)]
104 #[rename(name = "m_NightFogColor")]
105 pub m_night_fog_color: crate::unity_engine::color::Color,
106 #[offset(328)]
107 #[rename(name = "m_NightFogStart")]
108 pub m_night_fog_start: f32,
109 #[offset(332)]
110 #[rename(name = "m_NightFogEnd")]
111 pub m_night_fog_end: f32,
112 #[offset(336)]
113 #[rename(name = "baseTimezoneName")]
114 pub base_timezone_name: ::unity::Array<::unity::Il2CppString>,
115 #[offset(344)]
116 #[rename(name = "textureNames")]
117 pub texture_names: ::unity::Array<::unity::Il2CppString>,
118 #[offset(352)]
119 #[rename(name = "resourceHandles")]
120 pub resource_handles: crate::system::collections::generic::list_1::List_1<crate::app::resourcehandle_2::ResourceHandle_2>,
121 #[offset(360)]
122 #[rename(name = "m_lightmapData")]
123 pub m_lightmap_data: ::unity::Array<crate::unity_engine::lightmapdata::LightmapData>,
124 }
125}
126
127#[cfg(feature = "app-hubenv-types")]
128pub use __types::*;
129
130#[cfg(feature = "app-hubenv")]
131pub trait IHubEnvMethods: IHubEnv {
132 #[doc = "`Load(::unity::Il2CppString, crate::app::hubutil::HubUtil_TimezoneType)` overload"]
133 fn load(
134 self,
135 scene_name: impl ::core::convert::Into<::unity::Il2CppString>,
136 timezone_type: impl ::core::convert::Into<crate::app::hubutil::HubUtil_TimezoneType>,
137 ) -> crate::system::collections::ienumerator::IEnumerator {
138 unsafe {
139 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2d89530usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
141(HubEnv)__receiver,(::unity::Il2CppString)::core::convert::Into::into(scene_name),(crate::app::hubutil::HubUtil_TimezoneType)::core::convert::Into::into(timezone_type))
142 }
143 }
144 #[doc = "`Apply(crate::app::hubutil::HubUtil_TimezoneType)` overload"]
145 fn apply(self, timezone_type: impl ::core::convert::Into<crate::app::hubutil::HubUtil_TimezoneType>) -> () {
146 unsafe {
147 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2d895d0usize)as*mut u8,();
149(HubEnv)__receiver,(crate::app::hubutil::HubUtil_TimezoneType)::core::convert::Into::into(timezone_type))
150 }
151 }
152 #[doc = "`OnDestroy()` overload"]
153 fn on_destroy(self) -> () {
154 unsafe {
155 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x2d89e50usize)as*mut u8,();
157(HubEnv)__receiver)
158 }
159 }
160 #[doc = "`IsLoading()` overload"]
161 fn is_loading(self) -> bool {
162 unsafe {
163 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x2d89f90usize)as*mut u8,bool;
165(HubEnv)__receiver)
166 }
167 }
168 #[doc = "`ClearResources()` overload"]
169 fn clear_resources(self) -> () {
170 unsafe {
171 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x2d89e60usize)as*mut u8,();
173(HubEnv)__receiver)
174 }
175 }
176 #[doc = "`.ctor()` overload"]
177 fn ctor(self) -> () {
178 unsafe {
179 let __receiver = <HubEnv as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2d8a0f0usize)as*mut u8,();
181(HubEnv)__receiver)
182 }
183 }
184}
185
186#[cfg(feature = "app-hubenv")]
187impl<__T: IHubEnv> IHubEnvMethods for __T {}
188
189#[cfg(feature = "app-hubenv")]
190impl HubEnv {
191 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
193 }
194
195 pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
197 }
198
199 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
201 }
202
203 pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
205 }
206
207 pub fn clear_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
209 }
210
211 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
213 }
214}
215
216#[cfg(feature = "app-hubenv")]
217impl HubEnv {
218 #[doc = "`.ctor()` — no args"]
219 pub fn new() -> Self {
220 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
221 panic!(
222 "{}
223::{}
224 failed to instantiate",
225 ::core::stringify!(HubEnv),
226 ::core::stringify!(new),
227 )
228 });
229 <Self as IHubEnvMethods>::ctor(this);
230 this
231 }
232}
233
234#[cfg(feature = "app-hubenv")]
235#[doc(hidden)]
236pub mod prelude {
237 pub use super::{HubEnv, IHubEnv, IHubEnvMethods};
238 #[cfg(feature = "system-object")]
239 pub use crate::system::object::IObjectMethods;
240 #[cfg(feature = "unity_engine-behaviour")]
241 pub use crate::unity_engine::behaviour::IBehaviourMethods;
242 #[cfg(feature = "unity_engine-component")]
243 pub use crate::unity_engine::component::IComponentMethods;
244 #[cfg(feature = "unity_engine-monobehaviour")]
245 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
246 #[cfg(feature = "unity_engine-object_2")]
247 pub use crate::unity_engine::object_2::IObject_2Methods;
248 pub use crate::{
249 system::object::IObject,
250 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
251 };
252}