1#[cfg(feature = "app-unitinfocharaimagemaskoffset-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviourlist_1::{ISingletonMonoBehaviourList_1, SingletonMonoBehaviourList_1},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 unity_engine::{
16 behaviour::{Behaviour, IBehaviour},
17 component::{Component, IComponent},
18 monobehaviour::{IMonoBehaviour, MonoBehaviour},
19 object_2::{IObject_2, Object_2},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitinfocharaimagemaskoffset/UnitInfoCharaImageMaskOffset_Type.md"))]
24 #[repr(C)]
25 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26 pub struct UnitInfoCharaImageMaskOffset_Type {
27 pub value: i32,
28 }
29 impl ::unity::ClassIdentity for UnitInfoCharaImageMaskOffset_Type {
30 const NAME: &'static str = "UnitInfoCharaImageMaskOffset.Type";
31 const NAMESPACE: &'static str = "App";
32
33 fn class() -> ::unity::Class {
34 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36 }
37 }
38 impl ::unity::IlType for UnitInfoCharaImageMaskOffset_Type {
39 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41 }
42 }
43 impl UnitInfoCharaImageMaskOffset_Type {
44 pub fn none() -> Self {
45 Self { value: 0 }
46 }
47
48 pub fn left() -> Self {
49 Self { value: 1 }
50 }
51
52 pub fn right() -> Self {
53 Self { value: 2 }
54 }
55 }
56
57 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitinfocharaimagemaskoffset/UnitInfoCharaImageMaskOffset.md"))]
58 #[::unity::class(namespace = "App", name = "UnitInfoCharaImageMaskOffset")]
59 #[parent(crate::app::singletonmonobehaviourlist_1::SingletonMonoBehaviourList_1<crate::app::unitinfocharaimagemaskoffset::UnitInfoCharaImageMaskOffset>)]
60 pub struct UnitInfoCharaImageMaskOffset {
61 #[static_field]
62 #[rename(name = "c_DefaultWidth")]
63 pub c_default_width: i32,
64 #[offset(24)]
65 #[rename(name = "m_Type")]
66 pub m_type: crate::app::unitinfocharaimagemaskoffset::UnitInfoCharaImageMaskOffset_Type,
67 #[offset(28)]
68 #[rename(name = "m_OffsetU")]
69 pub m_offset_u: f32,
70 #[offset(32)]
71 #[rename(name = "m_MaskTexture")]
72 pub m_mask_texture: crate::unity_engine::texture::Texture,
73 #[offset(40)]
74 #[rename(name = "m_MaskTextureOld")]
75 pub m_mask_texture_old: crate::unity_engine::texture::Texture,
76 #[offset(48)]
77 #[rename(name = "m_Time")]
78 pub m_time: f32,
79 #[offset(52)]
80 #[rename(name = "m_Offset")]
81 pub m_offset: crate::unity_engine::vector2::Vector2,
82 #[offset(64)]
83 #[rename(name = "m_CanvasManager")]
84 pub m_canvas_manager: crate::app::canvasmanager::CanvasManager,
85 #[offset(72)]
86 #[rename(name = "m_RectTransform")]
87 pub m_rect_transform: crate::unity_engine::recttransform::RectTransform,
88 #[offset(80)]
89 #[rename(name = "m_Image")]
90 pub m_image: crate::unity_engine::ui::image::Image,
91 #[offset(88)]
92 #[rename(name = "m_MaterialStart")]
93 pub m_material_start: crate::unity_engine::material::Material,
94 #[offset(96)]
95 #[rename(name = "m_Material")]
96 pub m_material: crate::unity_engine::material::Material,
97 #[offset(104)]
98 #[rename(name = "m_Texture")]
99 pub m_texture: crate::unity_engine::rendertexture::RenderTexture,
100 #[offset(112)]
101 #[rename(name = "m_IsStartup")]
102 pub m_is_startup: bool,
103 #[offset(113)]
104 #[rename(name = "m_IsShow")]
105 pub m_is_show: bool,
106 #[offset(114)]
107 #[rename(name = "m_IsShowFromUnitInfo")]
108 pub m_is_show_from_unit_info: bool,
109 #[offset(115)]
110 #[rename(name = "m_IsSetAlphaForced")]
111 pub m_is_set_alpha_forced: bool,
112 }
113}
114
115#[cfg(feature = "app-unitinfocharaimagemaskoffset-types")]
116pub use __types::*;
117
118#[cfg(feature = "app-unitinfocharaimagemaskoffset")]
119pub trait IUnitInfoCharaImageMaskOffsetMethods: IUnitInfoCharaImageMaskOffset {
120 #[doc = "`Start()` overload"]
121 fn start(self) -> () {
122 unsafe {
123 let __receiver =
124 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x1f8b8e0usize)as*mut u8,();
126(UnitInfoCharaImageMaskOffset)__receiver)
127 }
128 }
129 #[doc = "`OnEnable()` overload"]
130 fn on_enable(self) -> () {
131 unsafe {
132 let __receiver =
133 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x1f8be20usize)as*mut u8,();
135(UnitInfoCharaImageMaskOffset)__receiver)
136 }
137 }
138 #[doc = "`OnDisable()` overload"]
139 fn on_disable(self) -> () {
140 unsafe {
141 let __receiver =
142 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x1f8be30usize)as*mut u8,();
144(UnitInfoCharaImageMaskOffset)__receiver)
145 }
146 }
147 #[doc = "`Setup()` overload"]
148 fn setup(self) -> () {
149 unsafe {
150 let __receiver =
151 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 ::unity::il2cpp_call!((::unity::module_base()+0x1f8b980usize)as*mut u8,();
153(UnitInfoCharaImageMaskOffset)__receiver)
154 }
155 }
156 #[doc = "`Cleanup()` overload"]
157 fn cleanup(self) -> () {
158 unsafe {
159 let __receiver =
160 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x1f8be40usize)as*mut u8,();
162(UnitInfoCharaImageMaskOffset)__receiver)
163 }
164 }
165 #[doc = "`ResetAlpha()` overload"]
166 fn reset_alpha(self) -> () {
167 unsafe {
168 let __receiver =
169 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x1f89660usize)as*mut u8,();
171(UnitInfoCharaImageMaskOffset)__receiver)
172 }
173 }
174 #[doc = "`SetAlphaForced(f32, bool)` overload"]
175 fn set_alpha_forced(self, alpha: impl ::core::convert::Into<f32>, is_show: impl ::core::convert::Into<bool>) -> () {
176 unsafe {
177 let __receiver =
178 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c200usize)as*mut u8,();
180(UnitInfoCharaImageMaskOffset)__receiver,(f32)::core::convert::Into::into(alpha),(bool)::core::convert::Into::into(is_show))
181 }
182 }
183 #[doc = "`SetShowFormUnitInfo(bool)` overload"]
184 fn set_show_form_unit_info(self, is_show: impl ::core::convert::Into<bool>) -> () {
185 unsafe {
186 let __receiver =
187 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x1f893e0usize)as*mut u8,();
189(UnitInfoCharaImageMaskOffset)__receiver,(bool)::core::convert::Into::into(is_show))
190 }
191 }
192 #[doc = "`Show()` overload"]
193 fn show(self) -> () {
194 unsafe {
195 let __receiver =
196 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c360usize)as*mut u8,();
198(UnitInfoCharaImageMaskOffset)__receiver)
199 }
200 }
201 #[doc = "`Hide()` overload"]
202 fn hide(self) -> () {
203 unsafe {
204 let __receiver =
205 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c3d0usize)as*mut u8,();
207(UnitInfoCharaImageMaskOffset)__receiver)
208 }
209 }
210 #[doc = "`UpdateCamera(crate::app::unitinfo::UnitInfo_Side)` overload"]
211 fn update_camera(self, side: impl ::core::convert::Into<crate::app::unitinfo::UnitInfo_Side>) -> () {
212 unsafe {
213 let __receiver =
214 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x1f8bff0usize)as*mut u8,();
216(UnitInfoCharaImageMaskOffset)__receiver,(crate::app::unitinfo::UnitInfo_Side)::core::convert::Into::into(side))
217 }
218 }
219 #[doc = "`SetCustomOffscreenCameraEnabled(crate::app::unitinfo::UnitInfo_Side, bool)` overload"]
220 fn set_custom_offscreen_camera_enabled(
221 self,
222 side: impl ::core::convert::Into<crate::app::unitinfo::UnitInfo_Side>,
223 is_enabled: impl ::core::convert::Into<bool>,
224 ) -> () {
225 unsafe {
226 let __receiver =
227 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c0c0usize)as*mut u8,();
229(UnitInfoCharaImageMaskOffset)__receiver,(crate::app::unitinfo::UnitInfo_Side)::core::convert::Into::into(side),(bool)::core::convert::Into::into(is_enabled))
230 }
231 }
232 #[doc = "`Update()` overload"]
233 fn update(self) -> () {
234 unsafe {
235 let __receiver =
236 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c410usize)as*mut u8,();
238(UnitInfoCharaImageMaskOffset)__receiver)
239 }
240 }
241 #[doc = "`get_RenderTexture()` overload"]
242 fn get_render_texture(self) -> crate::unity_engine::rendertexture::RenderTexture {
243 unsafe {
244 let __receiver =
245 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c7a0usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
247(UnitInfoCharaImageMaskOffset)__receiver)
248 }
249 }
250 #[doc = "`get_Image()` overload"]
251 fn get_image(self) -> crate::unity_engine::ui::image::Image {
252 unsafe {
253 let __receiver =
254 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c7b0usize)as*mut u8,crate::unity_engine::ui::image::Image;
256(UnitInfoCharaImageMaskOffset)__receiver)
257 }
258 }
259 #[doc = "`IsVisible()` overload"]
260 fn is_visible(self) -> bool {
261 unsafe {
262 let __receiver =
263 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c600usize)as*mut u8,bool;
265(UnitInfoCharaImageMaskOffset)__receiver)
266 }
267 }
268 #[doc = "`.ctor()` overload"]
269 fn ctor(self) -> () {
270 unsafe {
271 let __receiver =
272 <UnitInfoCharaImageMaskOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!((::unity::module_base()+0x1f8c7c0usize)as*mut u8,();
274(UnitInfoCharaImageMaskOffset)__receiver)
275 }
276 }
277}
278
279#[cfg(feature = "app-unitinfocharaimagemaskoffset")]
280impl<__T: IUnitInfoCharaImageMaskOffset> IUnitInfoCharaImageMaskOffsetMethods for __T {}
281
282#[cfg(feature = "app-unitinfocharaimagemaskoffset")]
283impl UnitInfoCharaImageMaskOffset {
284 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
286 }
287
288 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
290 }
291
292 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
294 }
295
296 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
298 }
299
300 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
302 }
303
304 pub fn reset_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
306 }
307
308 pub fn set_alpha_forced_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
310 }
311
312 pub fn set_show_form_unit_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
314 }
315
316 pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
318 }
319
320 pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
322 }
323
324 pub fn update_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
326 }
327
328 pub fn set_custom_offscreen_camera_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
330 }
331
332 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
334 }
335
336 pub fn get_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
338 }
339
340 pub fn get_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
342 }
343
344 pub fn is_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
346 }
347
348 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
350 }
351}
352
353#[cfg(feature = "app-unitinfocharaimagemaskoffset")]
354impl UnitInfoCharaImageMaskOffset {
355 #[doc = "`.ctor()` — no args"]
356 pub fn new() -> Self {
357 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
358 panic!(
359 "{}
360::{}
361 failed to instantiate",
362 ::core::stringify!(UnitInfoCharaImageMaskOffset),
363 ::core::stringify!(new),
364 )
365 });
366 <Self as IUnitInfoCharaImageMaskOffsetMethods>::ctor(this);
367 this
368 }
369}
370
371#[cfg(feature = "app-unitinfocharaimagemaskoffset")]
372#[doc(hidden)]
373pub mod prelude {
374 pub use super::{
375 IUnitInfoCharaImageMaskOffset, IUnitInfoCharaImageMaskOffsetMethods, UnitInfoCharaImageMaskOffset, UnitInfoCharaImageMaskOffset_Type,
376 };
377 #[cfg(feature = "app-singletonmonobehaviourlist_1")]
378 pub use crate::app::singletonmonobehaviourlist_1::ISingletonMonoBehaviourList_1Methods;
379 #[cfg(feature = "system-object")]
380 pub use crate::system::object::IObjectMethods;
381 #[cfg(feature = "system-enum")]
382 pub use crate::system::r#enum::IEnumMethods;
383 #[cfg(feature = "system-valuetype")]
384 pub use crate::system::valuetype::IValueTypeMethods;
385 #[cfg(feature = "unity_engine-behaviour")]
386 pub use crate::unity_engine::behaviour::IBehaviourMethods;
387 #[cfg(feature = "unity_engine-component")]
388 pub use crate::unity_engine::component::IComponentMethods;
389 #[cfg(feature = "unity_engine-monobehaviour")]
390 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
391 #[cfg(feature = "unity_engine-object_2")]
392 pub use crate::unity_engine::object_2::IObject_2Methods;
393 pub use crate::{
394 app::singletonmonobehaviourlist_1::ISingletonMonoBehaviourList_1,
395 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
396 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
397 };
398}