Skip to main content

engage/generated/app/
flipbook.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-flipbook-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/flipbook/Flipbook_Mode.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct Flipbook_Mode {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for Flipbook_Mode {
29        const NAME: &'static str = "Flipbook.Mode";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for Flipbook_Mode {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl Flipbook_Mode {
43        pub fn r#loop() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn stop() -> Self {
48            Self { value: 1 }
49        }
50
51        pub fn stop_and_hide() -> Self {
52            Self { value: 2 }
53        }
54
55        pub fn delete_object() -> Self {
56            Self { value: 3 }
57        }
58    }
59
60    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/flipbook/Flipbook.md"))]
61    #[::unity::class(namespace = "App", name = "Flipbook")]
62    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
63    pub struct Flipbook {
64        #[offset(24)]
65        #[rename(name = "m_patterns")]
66        pub m_patterns: crate::unity_engine::vector2::Vector2,
67        #[offset(32)]
68        #[rename(name = "m_span")]
69        pub m_span: f32,
70        #[offset(36)]
71        #[rename(name = "m_animateStrength")]
72        pub m_animate_strength: bool,
73        #[offset(40)]
74        #[rename(name = "m_strength")]
75        pub m_strength: f32,
76        #[offset(44)]
77        #[rename(name = "m_strengthCycle")]
78        pub m_strength_cycle: f32,
79        #[offset(48)]
80        #[rename(name = "m_mode")]
81        pub m_mode: crate::app::flipbook::Flipbook_Mode,
82        #[offset(52)]
83        #[rename(name = "m_autoPlay")]
84        pub m_auto_play: bool,
85        #[offset(53)]
86        #[rename(name = "m_playing")]
87        pub m_playing: bool,
88        #[offset(56)]
89        #[rename(name = "m_spanIndex")]
90        pub m_span_index: i32,
91        #[offset(60)]
92        #[rename(name = "m_strengthCycleIndex")]
93        pub m_strength_cycle_index: i32,
94        #[offset(64)]
95        #[rename(name = "m_patternIndex")]
96        pub m_pattern_index: i32,
97        #[offset(68)]
98        #[rename(name = "m_patternCount")]
99        pub m_pattern_count: i32,
100        #[offset(72)]
101        #[rename(name = "m_material")]
102        pub m_material: crate::unity_engine::material::Material,
103        #[offset(80)]
104        #[rename(name = "m_targetTexture")]
105        pub m_target_texture: ::unity::Il2CppString,
106        #[offset(88)]
107        #[rename(name = "m_targetTextureId")]
108        pub m_target_texture_id: i32,
109        #[offset(96)]
110        #[rename(name = "m_targetStrength")]
111        pub m_target_strength: ::unity::Il2CppString,
112        #[offset(104)]
113        #[rename(name = "m_targetStrengthId")]
114        pub m_target_strength_id: i32,
115    }
116}
117
118#[cfg(feature = "app-flipbook-types")]
119pub use __types::*;
120
121#[cfg(feature = "app-flipbook")]
122pub trait IFlipbookMethods: IFlipbook {
123    #[doc = "`get_PatternIndex()` overload"]
124    fn get_pattern_index(self) -> i32 {
125        unsafe {
126            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x260ee00usize)as*mut u8,i32;
128(Flipbook)__receiver)
129        }
130    }
131    #[doc = "`Frac(f32)` overload"]
132    fn frac(self, val: impl ::core::convert::Into<f32>) -> f32 {
133        unsafe {
134            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x260ee10usize)as*mut u8,f32;
136(Flipbook)__receiver,(f32)::core::convert::Into::into(val))
137        }
138    }
139    #[doc = "`GetUvOffset()` overload"]
140    fn get_uv_offset(self) -> crate::unity_engine::vector2::Vector2 {
141        unsafe {
142            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x260ee40usize)as*mut u8,crate::unity_engine::vector2::Vector2;
144(Flipbook)__receiver)
145        }
146    }
147    #[doc = "`GetUvScale()` overload"]
148    fn get_uv_scale(self) -> crate::unity_engine::vector2::Vector2 {
149        unsafe {
150            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x260ee90usize)as*mut u8,crate::unity_engine::vector2::Vector2;
152(Flipbook)__receiver)
153        }
154    }
155    #[doc = "`SetUvOffset()` overload"]
156    fn set_uv_offset(self) -> () {
157        unsafe {
158            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x260eeb0usize)as*mut u8,();
160(Flipbook)__receiver)
161        }
162    }
163    #[doc = "`SetUvScale()` overload"]
164    fn set_uv_scale(self) -> () {
165        unsafe {
166            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x260ef10usize)as*mut u8,();
168(Flipbook)__receiver)
169        }
170    }
171    #[doc = "`GetStrength()` overload"]
172    fn get_strength(self) -> f32 {
173        unsafe {
174            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x260ef40usize)as*mut u8,f32;
176(Flipbook)__receiver)
177        }
178    }
179    #[doc = "`SetStrength()` overload"]
180    fn set_strength(self) -> () {
181        unsafe {
182            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x260f010usize)as*mut u8,();
184(Flipbook)__receiver)
185        }
186    }
187    #[doc = "`Play()` overload"]
188    fn play(self) -> () {
189        unsafe {
190            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x260f110usize)as*mut u8,();
192(Flipbook)__receiver)
193        }
194    }
195    #[doc = "`Awake()` overload"]
196    fn awake(self) -> () {
197        unsafe {
198            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x260f4e0usize)as*mut u8,();
200(Flipbook)__receiver)
201        }
202    }
203    #[doc = "`OnDestroy()` overload"]
204    fn on_destroy(self) -> () {
205        unsafe {
206            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x260f520usize)as*mut u8,();
208(Flipbook)__receiver)
209        }
210    }
211    #[doc = "`Start()` overload"]
212    fn start(self) -> () {
213        unsafe {
214            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            ::unity::il2cpp_call!((::unity::module_base()+0x260f5a0usize)as*mut u8,();
216(Flipbook)__receiver)
217        }
218    }
219    #[doc = "`Update()` overload"]
220    fn update(self) -> () {
221        unsafe {
222            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x260f5b0usize)as*mut u8,();
224(Flipbook)__receiver)
225        }
226    }
227    #[doc = "`GetPatternRate()` overload"]
228    fn get_pattern_rate(self) -> f32 {
229        unsafe {
230            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x260f830usize)as*mut u8,f32;
232(Flipbook)__receiver)
233        }
234    }
235    #[doc = "`get_Playing()` overload"]
236    fn get_playing(self) -> bool {
237        unsafe {
238            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239            ::unity::il2cpp_call!((::unity::module_base()+0x260f860usize)as*mut u8,bool;
240(Flipbook)__receiver)
241        }
242    }
243    #[doc = "`.ctor()` overload"]
244    fn ctor(self) -> () {
245        unsafe {
246            let __receiver = <Flipbook as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x260f870usize)as*mut u8,();
248(Flipbook)__receiver)
249        }
250    }
251}
252
253#[cfg(feature = "app-flipbook")]
254impl<__T: IFlipbook> IFlipbookMethods for __T {}
255
256#[cfg(feature = "app-flipbook")]
257impl Flipbook {
258    pub fn get_pattern_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
260    }
261
262    pub fn frac_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
264    }
265
266    pub fn get_uv_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
268    }
269
270    pub fn get_uv_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
272    }
273
274    pub fn set_uv_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
276    }
277
278    pub fn set_uv_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
280    }
281
282    pub fn get_strength_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
284    }
285
286    pub fn set_strength_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
288    }
289
290    pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
292    }
293
294    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
296    }
297
298    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
300    }
301
302    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
304    }
305
306    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
308    }
309
310    pub fn get_pattern_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
312    }
313
314    pub fn get_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
316    }
317
318    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
320    }
321}
322
323#[cfg(feature = "app-flipbook")]
324impl Flipbook {
325    #[doc = "`.ctor()` — no args"]
326    pub fn new() -> Self {
327        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
328            panic!(
329                "{}
330::{}
331 failed to instantiate",
332                ::core::stringify!(Flipbook),
333                ::core::stringify!(new),
334            )
335        });
336        <Self as IFlipbookMethods>::ctor(this);
337        this
338    }
339}
340
341#[cfg(feature = "app-flipbook")]
342#[doc(hidden)]
343pub mod prelude {
344    pub use super::{Flipbook, Flipbook_Mode, IFlipbook, IFlipbookMethods};
345    #[cfg(feature = "system-object")]
346    pub use crate::system::object::IObjectMethods;
347    #[cfg(feature = "system-enum")]
348    pub use crate::system::r#enum::IEnumMethods;
349    #[cfg(feature = "system-valuetype")]
350    pub use crate::system::valuetype::IValueTypeMethods;
351    #[cfg(feature = "unity_engine-behaviour")]
352    pub use crate::unity_engine::behaviour::IBehaviourMethods;
353    #[cfg(feature = "unity_engine-component")]
354    pub use crate::unity_engine::component::IComponentMethods;
355    #[cfg(feature = "unity_engine-monobehaviour")]
356    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
357    #[cfg(feature = "unity_engine-object_2")]
358    pub use crate::unity_engine::object_2::IObject_2Methods;
359    pub use crate::{
360        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
361        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
362    };
363}