Skip to main content

engage/generated/app/
hubareafog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubareafog-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/hubareafog/HubAreaFog.md"))]
19    #[::unity::class(namespace = "App", name = "HubAreaFog")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct HubAreaFog {
22        #[offset(24)]
23        #[rename(name = "m_color")]
24        pub m_color: crate::unity_engine::color::Color,
25        #[offset(40)]
26        #[rename(name = "m_start")]
27        pub m_start: f32,
28        #[offset(44)]
29        #[rename(name = "m_end")]
30        pub m_end: f32,
31        #[offset(48)]
32        #[rename(name = "m_time")]
33        pub m_time: f32,
34        #[offset(52)]
35        #[rename(name = "m_priority")]
36        pub m_priority: i32,
37        #[offset(56)]
38        #[rename(name = "m_Ratio")]
39        pub m_ratio: crate::app::interpolatorfloat::InterpolatorFloat,
40        #[static_field]
41        #[rename(name = "m_initialize")]
42        pub m_initialize: bool,
43        #[static_field]
44        #[rename(name = "m_update")]
45        pub m_update: bool,
46        #[static_field]
47        #[rename(name = "m_origColor")]
48        pub m_orig_color: crate::unity_engine::color::Color,
49        #[static_field]
50        #[rename(name = "m_origStart")]
51        pub m_orig_start: f32,
52        #[static_field]
53        #[rename(name = "m_origEnd")]
54        pub m_orig_end: f32,
55        #[static_field]
56        #[rename(name = "m_fogList")]
57        pub m_fog_list: crate::system::collections::generic::list_1::List_1<crate::app::hubareafog::HubAreaFog>,
58    }
59}
60
61#[cfg(feature = "app-hubareafog-types")]
62pub use __types::*;
63
64#[cfg(feature = "app-hubareafog")]
65impl HubAreaFog {
66    #[doc = "`Initialize()` overload"]
67    pub fn initialize() -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2d76ad0usize)as*mut u8,();
70            )
71        }
72    }
73
74    #[doc = "`UpdateAll()` overload"]
75    pub fn update_all() -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x2d76bd0usize)as*mut u8,();
78            )
79        }
80    }
81
82    #[doc = "`.cctor()` overload"]
83    pub fn cctor() -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x2d77430usize)as*mut u8,();
86            )
87        }
88    }
89}
90
91#[cfg(feature = "app-hubareafog")]
92pub trait IHubAreaFogMethods: IHubAreaFog {
93    #[doc = "`OnDestroy()` overload"]
94    fn on_destroy(self) -> () {
95        unsafe {
96            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x2d76fa0usize)as*mut u8,();
98(HubAreaFog)__receiver)
99        }
100    }
101    #[doc = "`Awake()` overload"]
102    fn awake(self) -> () {
103        unsafe {
104            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2d77050usize)as*mut u8,();
106(HubAreaFog)__receiver)
107        }
108    }
109    #[doc = "`Start()` overload"]
110    fn start(self) -> () {
111        unsafe {
112            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x2d770e0usize)as*mut u8,();
114(HubAreaFog)__receiver)
115        }
116    }
117    #[doc = "`Update()` overload"]
118    fn update(self) -> () {
119        unsafe {
120            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x2d77100usize)as*mut u8,();
122(HubAreaFog)__receiver)
123        }
124    }
125    #[doc = "`LateUpdate()` overload"]
126    fn late_update(self) -> () {
127        unsafe {
128            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x2d772e0usize)as*mut u8,();
130(HubAreaFog)__receiver)
131        }
132    }
133    #[doc = "`GetRatio()` overload"]
134    fn get_ratio(self) -> f32 {
135        unsafe {
136            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x2d76f90usize)as*mut u8,f32;
138(HubAreaFog)__receiver)
139        }
140    }
141    #[doc = "`Active()` overload"]
142    fn active(self) -> () {
143        unsafe {
144            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x2d77350usize)as*mut u8,();
146(HubAreaFog)__receiver)
147        }
148    }
149    #[doc = "`Inactive()` overload"]
150    fn inactive(self) -> () {
151        unsafe {
152            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x2d77370usize)as*mut u8,();
154(HubAreaFog)__receiver)
155        }
156    }
157    #[doc = "`.ctor()` overload"]
158    fn ctor(self) -> () {
159        unsafe {
160            let __receiver = <HubAreaFog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2d77390usize)as*mut u8,();
162(HubAreaFog)__receiver)
163        }
164    }
165}
166
167#[cfg(feature = "app-hubareafog")]
168impl<__T: IHubAreaFog> IHubAreaFogMethods for __T {}
169
170#[cfg(feature = "app-hubareafog")]
171impl HubAreaFog {
172    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174    }
175
176    pub fn update_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178    }
179
180    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182    }
183
184    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186    }
187
188    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190    }
191
192    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194    }
195
196    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
198    }
199
200    pub fn get_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
202    }
203
204    pub fn active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
206    }
207
208    pub fn inactive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
210    }
211
212    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
214    }
215
216    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
218    }
219}
220
221#[cfg(feature = "app-hubareafog")]
222impl HubAreaFog {
223    #[doc = "`.ctor()` — no args"]
224    pub fn new() -> Self {
225        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226            panic!(
227                "{}
228::{}
229 failed to instantiate",
230                ::core::stringify!(HubAreaFog),
231                ::core::stringify!(new),
232            )
233        });
234        <Self as IHubAreaFogMethods>::ctor(this);
235        this
236    }
237}
238
239#[cfg(feature = "app-hubareafog")]
240#[doc(hidden)]
241pub mod prelude {
242    pub use super::{HubAreaFog, IHubAreaFog, IHubAreaFogMethods};
243    #[cfg(feature = "system-object")]
244    pub use crate::system::object::IObjectMethods;
245    #[cfg(feature = "unity_engine-behaviour")]
246    pub use crate::unity_engine::behaviour::IBehaviourMethods;
247    #[cfg(feature = "unity_engine-component")]
248    pub use crate::unity_engine::component::IComponentMethods;
249    #[cfg(feature = "unity_engine-monobehaviour")]
250    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
251    #[cfg(feature = "unity_engine-object_2")]
252    pub use crate::unity_engine::object_2::IObject_2Methods;
253    pub use crate::{
254        system::object::IObject,
255        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
256    };
257}