engage/generated/app/
fishingeventfader.rs1#[cfg(feature = "app-fishingeventfader-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/fishingeventfader/FishingEventFader.md"))]
19 #[::unity::class(namespace = "App", name = "FishingEventFader")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct FishingEventFader {
22 #[offset(24)]
23 #[rename(name = "m_Color")]
24 pub m_color: crate::unity_engine::color::Color,
25 #[offset(40)]
26 #[rename(name = "m_Layer")]
27 pub m_layer: crate::unity_engine::gameobject::GameObject,
28 #[offset(48)]
29 #[rename(name = "m_Image")]
30 pub m_image: crate::unity_engine::ui::image::Image,
31 #[offset(56)]
32 #[rename(name = "m_Timer")]
33 pub m_timer: f32,
34 #[offset(60)]
35 #[rename(name = "m_FinishTime")]
36 pub m_finish_time: f32,
37 #[offset(64)]
38 #[rename(name = "IsFadeIn")]
39 pub is_fade_in: bool,
40 #[offset(72)]
41 #[rename(name = "m_FadeTimeList")]
42 pub m_fade_time_list: ::unity::Array<f32>,
43 }
44}
45
46#[cfg(feature = "app-fishingeventfader-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-fishingeventfader")]
50pub trait IFishingEventFaderMethods: IFishingEventFader {
51 #[doc = "`get_IsRun()` overload"]
52 fn get_is_run(self) -> bool {
53 unsafe {
54 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x26f1a90usize)as*mut u8,bool;
56(FishingEventFader)__receiver)
57 }
58 }
59 #[doc = "`set_IsRun(bool)` overload"]
60 fn set_is_run(self, value: impl ::core::convert::Into<bool>) -> () {
61 unsafe {
62 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x26f1aa0usize)as*mut u8,();
64(FishingEventFader)__receiver,(bool)::core::convert::Into::into(value))
65 }
66 }
67 #[doc = "`Create()` overload"]
68 fn create(self) -> () {
69 unsafe {
70 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x26f1ab0usize)as*mut u8,();
72(FishingEventFader)__receiver)
73 }
74 }
75 #[doc = "`Destroy()` overload"]
76 fn destroy(self) -> () {
77 unsafe {
78 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x26f1cf0usize)as*mut u8,();
80(FishingEventFader)__receiver)
81 }
82 }
83 #[doc = "`FadeIn(crate::app::fishing::fadetype::FadeType)` overload"]
84 fn fade_in(self, r#type: impl ::core::convert::Into<crate::app::fishing::fadetype::FadeType>) -> () {
85 unsafe {
86 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x26f1da0usize)as*mut u8,();
88(FishingEventFader)__receiver,(crate::app::fishing::fadetype::FadeType)::core::convert::Into::into(r#type))
89 }
90 }
91 #[doc = "`FadeOut(crate::app::fishing::fadetype::FadeType)` overload"]
92 fn fade_out(self, r#type: impl ::core::convert::Into<crate::app::fishing::fadetype::FadeType>) -> () {
93 unsafe {
94 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x26f1e00usize)as*mut u8,();
96(FishingEventFader)__receiver,(crate::app::fishing::fadetype::FadeType)::core::convert::Into::into(r#type))
97 }
98 }
99 #[doc = "`SetColor(crate::unity_engine::color::Color)` overload"]
100 fn set_color(self, set: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
101 unsafe {
102 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x26f1e60usize)as*mut u8,();
104(FishingEventFader)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(set))
105 }
106 }
107 #[doc = "`GetFadeTime(crate::app::fishing::fadetype::FadeType)` overload"]
108 fn get_fade_time(self, r#type: impl ::core::convert::Into<crate::app::fishing::fadetype::FadeType>) -> f32 {
109 unsafe {
110 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x26f1e80usize)as*mut u8,f32;
112(FishingEventFader)__receiver,(crate::app::fishing::fadetype::FadeType)::core::convert::Into::into(r#type))
113 }
114 }
115 #[doc = "`LateUpdate()` overload"]
116 fn late_update(self) -> () {
117 unsafe {
118 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x26f1ec0usize)as*mut u8,();
120(FishingEventFader)__receiver)
121 }
122 }
123 #[doc = "`.ctor()` overload"]
124 fn ctor(self) -> () {
125 unsafe {
126 let __receiver = <FishingEventFader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x26f2030usize)as*mut u8,();
128(FishingEventFader)__receiver)
129 }
130 }
131}
132
133#[cfg(feature = "app-fishingeventfader")]
134impl<__T: IFishingEventFader> IFishingEventFaderMethods for __T {}
135
136#[cfg(feature = "app-fishingeventfader")]
137impl FishingEventFader {
138 pub fn get_is_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140 }
141
142 pub fn set_is_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144 }
145
146 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148 }
149
150 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
152 }
153
154 pub fn fade_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
156 }
157
158 pub fn fade_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
160 }
161
162 pub fn set_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
164 }
165
166 pub fn get_fade_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
168 }
169
170 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
172 }
173
174 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
176 }
177}
178
179#[cfg(feature = "app-fishingeventfader")]
180impl FishingEventFader {
181 #[doc = "`.ctor()` — no args"]
182 pub fn new() -> Self {
183 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
184 panic!(
185 "{}
186::{}
187 failed to instantiate",
188 ::core::stringify!(FishingEventFader),
189 ::core::stringify!(new),
190 )
191 });
192 <Self as IFishingEventFaderMethods>::ctor(this);
193 this
194 }
195}
196
197#[cfg(feature = "app-fishingeventfader")]
198#[doc(hidden)]
199pub mod prelude {
200 pub use super::{FishingEventFader, IFishingEventFader, IFishingEventFaderMethods};
201 #[cfg(feature = "system-object")]
202 pub use crate::system::object::IObjectMethods;
203 #[cfg(feature = "unity_engine-behaviour")]
204 pub use crate::unity_engine::behaviour::IBehaviourMethods;
205 #[cfg(feature = "unity_engine-component")]
206 pub use crate::unity_engine::component::IComponentMethods;
207 #[cfg(feature = "unity_engine-monobehaviour")]
208 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
209 #[cfg(feature = "unity_engine-object_2")]
210 pub use crate::unity_engine::object_2::IObject_2Methods;
211 pub use crate::{
212 system::object::IObject,
213 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
214 };
215}