engage/generated/app/
hublensflare.rs1#[cfg(feature = "app-hublensflare-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 valuetype::{IValueType, ValueType},
12 },
13 unity_engine::{
14 behaviour::{Behaviour, IBehaviour},
15 component::{Component, IComponent},
16 monobehaviour::{IMonoBehaviour, MonoBehaviour},
17 object_2::{IObject_2, Object_2},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hublensflare/HubLensFlare.md"))]
22 #[::unity::class(namespace = "App", name = "HubLensFlare")]
23 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
24 pub struct HubLensFlare {
25 #[offset(24)]
26 #[rename(name = "FlareScale")]
27 pub flare_scale: f32,
28 #[offset(28)]
29 #[rename(name = "FlareMaxSize")]
30 pub flare_max_size: f32,
31 #[offset(32)]
32 #[rename(name = "FlareZ")]
33 pub flare_z: f32,
34 #[offset(36)]
35 #[rename(name = "RotateV")]
36 pub rotate_v: f32,
37 #[offset(40)]
38 #[rename(name = "m_flare")]
39 pub m_flare: crate::system::collections::generic::list_1::List_1<crate::app::hublensflare::HubLensFlare_Flare>,
40 #[offset(48)]
41 #[rename(name = "m_sunPosition")]
42 pub m_sun_position: crate::unity_engine::vector3::Vector3,
43 #[offset(64)]
44 #[rename(name = "m_light")]
45 pub m_light: crate::unity_engine::gameobject::GameObject,
46 }
47
48 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hublensflare/HubLensFlare_Flare.md"))]
49 #[repr(C)]
50 #[derive(::core::clone::Clone, ::core::marker::Copy)]
51 pub struct HubLensFlare_Flare {
52 pub game_object: crate::unity_engine::gameobject::GameObject,
53 pub ps: crate::unity_engine::particlesystem::ParticleSystem,
54 pub particles: ::unity::Array<crate::unity_engine::particlesystem::ParticleSystem_Particle>,
55 pub material: crate::unity_engine::material::Material,
56 pub distance: f32,
57 pub scale: f32,
58 pub anglebias: f32,
59 }
60 impl ::unity::ClassIdentity for HubLensFlare_Flare {
61 const NAME: &'static str = "HubLensFlare.Flare";
62 const NAMESPACE: &'static str = "App";
63
64 fn class() -> ::unity::Class {
65 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
66 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
67 }
68 }
69 impl ::unity::IlType for HubLensFlare_Flare {
70 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
71 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
72 }
73 }
74}
75
76#[cfg(feature = "app-hublensflare-types")]
77pub use __types::*;
78
79#[cfg(feature = "app-hublensflare")]
80pub trait IHubLensFlareMethods: IHubLensFlare {
81 #[doc = "`Awake()` overload"]
82 fn awake(self) -> () {
83 unsafe {
84 let __receiver = <HubLensFlare as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x28acef0usize)as*mut u8,();
86(HubLensFlare)__receiver)
87 }
88 }
89 #[doc = "`Update()` overload"]
90 fn update(self) -> () {
91 unsafe {
92 let __receiver = <HubLensFlare as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x28ad360usize)as*mut u8,();
94(HubLensFlare)__receiver)
95 }
96 }
97 #[doc = "`OnDestroy()` overload"]
98 fn on_destroy(self) -> () {
99 unsafe {
100 let __receiver = <HubLensFlare as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x28ad870usize)as*mut u8,();
102(HubLensFlare)__receiver)
103 }
104 }
105 #[doc = "`.ctor()` overload"]
106 fn ctor(self) -> () {
107 unsafe {
108 let __receiver = <HubLensFlare as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x28ada00usize)as*mut u8,();
110(HubLensFlare)__receiver)
111 }
112 }
113}
114
115#[cfg(feature = "app-hublensflare")]
116impl<__T: IHubLensFlare> IHubLensFlareMethods for __T {}
117
118#[cfg(feature = "app-hublensflare")]
119impl HubLensFlare {
120 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
122 }
123
124 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
126 }
127
128 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
130 }
131
132 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
134 }
135}
136
137#[cfg(feature = "app-hublensflare")]
138impl HubLensFlare {
139 #[doc = "`.ctor()` — no args"]
140 pub fn new() -> Self {
141 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142 panic!(
143 "{}
144::{}
145 failed to instantiate",
146 ::core::stringify!(HubLensFlare),
147 ::core::stringify!(new),
148 )
149 });
150 <Self as IHubLensFlareMethods>::ctor(this);
151 this
152 }
153}
154
155#[cfg(feature = "app-hublensflare")]
156#[doc(hidden)]
157pub mod prelude {
158 pub use super::{HubLensFlare, HubLensFlare_Flare, IHubLensFlare, IHubLensFlareMethods};
159 #[cfg(feature = "system-object")]
160 pub use crate::system::object::IObjectMethods;
161 #[cfg(feature = "system-valuetype")]
162 pub use crate::system::valuetype::IValueTypeMethods;
163 #[cfg(feature = "unity_engine-behaviour")]
164 pub use crate::unity_engine::behaviour::IBehaviourMethods;
165 #[cfg(feature = "unity_engine-component")]
166 pub use crate::unity_engine::component::IComponentMethods;
167 #[cfg(feature = "unity_engine-monobehaviour")]
168 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
169 #[cfg(feature = "unity_engine-object_2")]
170 pub use crate::unity_engine::object_2::IObject_2Methods;
171 pub use crate::{
172 system::{object::IObject, valuetype::IValueType},
173 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
174 };
175}