Skip to main content

engage/generated/app/
unitanim.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-unitanim-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitanim/UnitAnim_Types.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct UnitAnim_Types {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for UnitAnim_Types {
21        const NAME: &'static str = "UnitAnim.Types";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for UnitAnim_Types {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl UnitAnim_Types {
35        pub fn none() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn stand_by() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn idle_relax() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn idle_normal() -> Self {
48            Self { value: 3 }
49        }
50
51        pub fn run_loop() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn start() -> Self {
56            Self { value: 5 }
57        }
58
59        pub fn attack() -> Self {
60            Self { value: 6 }
61        }
62
63        pub fn shoot() -> Self {
64            Self { value: 7 }
65        }
66
67        pub fn special() -> Self {
68            Self { value: 8 }
69        }
70
71        pub fn rod() -> Self {
72            Self { value: 9 }
73        }
74
75        pub fn dance() -> Self {
76            Self { value: 10 }
77        }
78
79        pub fn magic_weapon() -> Self {
80            Self { value: 11 }
81        }
82
83        pub fn event1() -> Self {
84            Self { value: 12 }
85        }
86
87        pub fn event2() -> Self {
88            Self { value: 13 }
89        }
90
91        pub fn event3() -> Self {
92            Self { value: 14 }
93        }
94
95        pub fn event4() -> Self {
96            Self { value: 15 }
97        }
98
99        pub fn num() -> Self {
100            Self { value: 16 }
101        }
102    }
103
104    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitanim/UnitAnim_Times.md"))]
105    #[repr(C)]
106    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
107    pub struct UnitAnim_Times {
108        pub value: i32,
109    }
110    impl ::unity::ClassIdentity for UnitAnim_Times {
111        const NAME: &'static str = "UnitAnim.Times";
112        const NAMESPACE: &'static str = "App";
113
114        fn class() -> ::unity::Class {
115            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
116            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
117        }
118    }
119    impl ::unity::IlType for UnitAnim_Times {
120        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
121            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
122        }
123    }
124    impl UnitAnim_Times {
125        pub fn zero() -> Self {
126            Self { value: 0 }
127        }
128
129        pub fn slow() -> Self {
130            Self { value: 1 }
131        }
132
133        pub fn normal() -> Self {
134            Self { value: 2 }
135        }
136
137        pub fn fast() -> Self {
138            Self { value: 3 }
139        }
140
141        pub fn very_fast() -> Self {
142            Self { value: 4 }
143        }
144
145        pub fn very_slow() -> Self {
146            Self { value: 5 }
147        }
148    }
149
150    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitanim/UnitAnim.md"))]
151    #[::unity::class(namespace = "App", name = "UnitAnim")]
152    #[parent(crate::system::object::Object)]
153    pub struct UnitAnim {
154        #[static_field]
155        #[rename(name = "s_NullClip")]
156        pub s_null_clip: crate::unity_engine::animatorclipinfo::AnimatorClipInfo,
157        #[static_field]
158        #[rename(name = "s_NullState")]
159        pub s_null_state: crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
160    }
161}
162
163#[cfg(feature = "app-unitanim-types")]
164pub use __types::*;
165
166#[cfg(feature = "app-unitanim")]
167impl UnitAnim {
168    #[doc = "`Initialize()` overload"]
169    pub fn initialize() -> () {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x1f71520usize)as*mut u8,();
172            )
173        }
174    }
175
176    #[doc = "`GetTime(crate::app::unitanim::UnitAnim_Times)` overload"]
177    pub fn get_time(time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>) -> f32 {
178        unsafe {
179            ::unity::il2cpp_call!((::unity::module_base()+0x1f717f0usize)as*mut u8,f32;
180(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time))
181        }
182    }
183
184    #[doc = "`GetTime(crate::app::unitanim::UnitAnim_Times, crate::unity_engine::animator::Animator)` overload"]
185    pub fn get_time_2(
186        time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
187        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
188    ) -> f32 {
189        unsafe {
190            ::unity::il2cpp_call!((::unity::module_base()+0x1f71820usize)as*mut u8,f32;
191(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(time),(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator))
192        }
193    }
194
195    #[doc = "`IsLoop(crate::app::unitanim::UnitAnim_Types)` overload"]
196    pub fn is_loop(r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>) -> bool {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x1f71930usize)as*mut u8,bool;
199(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type))
200        }
201    }
202
203    #[doc = "`IsExitToIdle(crate::app::unitanim::UnitAnim_Types)` overload"]
204    pub fn is_exit_to_idle(r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>) -> bool {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x1f71940usize)as*mut u8,bool;
207(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type))
208        }
209    }
210
211    #[doc = "`GetPriority(crate::app::unitanim::UnitAnim_Types)` overload"]
212    pub fn get_priority(r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>) -> i32 {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x1f71950usize)as*mut u8,i32;
215(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type))
216        }
217    }
218
219    #[doc = "`HasState(crate::unity_engine::animator::Animator, ::unity::Il2CppString)` overload"]
220    pub fn has_state(
221        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
222        name: impl ::core::convert::Into<::unity::Il2CppString>,
223    ) -> bool {
224        unsafe {
225            ::unity::il2cpp_call!((::unity::module_base()+0x1f71960usize)as*mut u8,bool;
226(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(::unity::Il2CppString)::core::convert::Into::into(name))
227        }
228    }
229
230    #[doc = "`Play(crate::unity_engine::animator::Animator, ::unity::Il2CppString, crate::app::unitanim::UnitAnim_Times)` overload"]
231    pub fn play(
232        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
233        name: impl ::core::convert::Into<::unity::Il2CppString>,
234        transition_duration: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
235    ) -> () {
236        unsafe {
237            ::unity::il2cpp_call!((::unity::module_base()+0x1f71a50usize)as*mut u8,();
238(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(transition_duration))
239        }
240    }
241
242    #[doc = "`Play(crate::unity_engine::animator::Animator, crate::app::unitanim::UnitAnim_Types, crate::app::itemdata::ItemData_Kinds, crate::app::unitanim::UnitAnim_Times)` overload"]
243    pub fn play_2(
244        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
245        r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>,
246        kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
247        transition_duration: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
248    ) -> () {
249        unsafe {
250            ::unity::il2cpp_call!((::unity::module_base()+0x1f71bb0usize)as*mut u8,();
251(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(transition_duration))
252        }
253    }
254
255    #[doc = "`Play(::unity::Array<crate::unity_engine::animator::Animator>, crate::app::unitanim::UnitAnim_Types, crate::app::itemdata::ItemData_Kinds, crate::app::unitanim::UnitAnim_Times)` overload"]
256    pub fn play_3(
257        animators: impl ::core::convert::Into<::unity::Array<crate::unity_engine::animator::Animator>>,
258        r#type: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Types>,
259        kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
260        transition_duration: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
261    ) -> () {
262        unsafe {
263            ::unity::il2cpp_call!((::unity::module_base()+0x1f71cc0usize)as*mut u8,();
264(::unity::Array<crate::unity_engine::animator::Animator>)::core::convert::Into::into(animators),(crate::app::unitanim::UnitAnim_Types)::core::convert::Into::into(r#type),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(transition_duration))
265        }
266    }
267
268    #[doc = "`GetCurrentClipInfo(crate::unity_engine::animator::Animator)` overload"]
269    pub fn get_current_clip_info(
270        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
271    ) -> crate::unity_engine::animatorclipinfo::AnimatorClipInfo {
272        unsafe {
273            ::unity::il2cpp_call!((::unity::module_base()+0x1f71da0usize)as*mut u8,crate::unity_engine::animatorclipinfo::AnimatorClipInfo;
274(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator))
275        }
276    }
277
278    #[doc = "`GetCurrentStateInfo(crate::unity_engine::animator::Animator)` overload"]
279    pub fn get_current_state_info(
280        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
281    ) -> crate::unity_engine::animatorstateinfo::AnimatorStateInfo {
282        unsafe {
283            ::unity::il2cpp_call!((::unity::module_base()+0x1f71ef0usize)as*mut u8,crate::unity_engine::animatorstateinfo::AnimatorStateInfo;
284(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator))
285        }
286    }
287
288    #[doc = "`IsFinished(crate::unity_engine::animator::Animator, crate::app::unitanim::UnitAnim_Times)` overload"]
289    pub fn is_finished(
290        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
291        rest_time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
292    ) -> bool {
293        unsafe {
294            ::unity::il2cpp_call!((::unity::module_base()+0x1f720e0usize)as*mut u8,bool;
295(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(rest_time))
296        }
297    }
298
299    #[doc = "`IsFinished(::unity::Array<crate::unity_engine::animator::Animator>, crate::app::unitanim::UnitAnim_Times)` overload"]
300    pub fn is_finished_2(
301        animators: impl ::core::convert::Into<::unity::Array<crate::unity_engine::animator::Animator>>,
302        rest_time: impl ::core::convert::Into<crate::app::unitanim::UnitAnim_Times>,
303    ) -> bool {
304        unsafe {
305            ::unity::il2cpp_call!((::unity::module_base()+0x1f72240usize)as*mut u8,bool;
306(::unity::Array<crate::unity_engine::animator::Animator>)::core::convert::Into::into(animators),(crate::app::unitanim::UnitAnim_Times)::core::convert::Into::into(rest_time))
307        }
308    }
309
310    #[doc = "`SetSpeed(::unity::Array<crate::unity_engine::animator::Animator>, f32)` overload"]
311    pub fn set_speed(
312        animators: impl ::core::convert::Into<::unity::Array<crate::unity_engine::animator::Animator>>,
313        speed: impl ::core::convert::Into<f32>,
314    ) -> () {
315        unsafe {
316            ::unity::il2cpp_call!((::unity::module_base()+0x1f72310usize)as*mut u8,();
317(::unity::Array<crate::unity_engine::animator::Animator>)::core::convert::Into::into(animators),(f32)::core::convert::Into::into(speed))
318        }
319    }
320
321    #[doc = "`.cctor()` overload"]
322    pub fn cctor() -> () {
323        unsafe {
324            ::unity::il2cpp_call!((::unity::module_base()+0x1f723a0usize)as*mut u8,();
325            )
326        }
327    }
328}
329
330#[cfg(feature = "app-unitanim")]
331pub trait IUnitAnimMethods: IUnitAnim {
332    #[doc = "`.ctor()` overload"]
333    fn ctor(self) -> () {
334        unsafe {
335            let __receiver = <UnitAnim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336            ::unity::il2cpp_call!((::unity::module_base()+0x1f72390usize)as*mut u8,();
337(UnitAnim)__receiver)
338        }
339    }
340}
341
342#[cfg(feature = "app-unitanim")]
343impl<__T: IUnitAnim> IUnitAnimMethods for __T {}
344
345#[cfg(feature = "app-unitanim")]
346impl UnitAnim {
347    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
349    }
350
351    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
353    }
354
355    pub fn get_time_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
357    }
358
359    pub fn is_loop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
361    }
362
363    pub fn is_exit_to_idle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
365    }
366
367    pub fn get_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
369    }
370
371    pub fn has_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
373    }
374
375    pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
377    }
378
379    pub fn play_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
381    }
382
383    pub fn play_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
385    }
386
387    pub fn get_current_clip_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
389    }
390
391    pub fn get_current_state_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
393    }
394
395    pub fn is_finished_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
397    }
398
399    pub fn is_finished_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
401    }
402
403    pub fn set_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
405    }
406
407    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
409    }
410
411    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
413    }
414}
415
416#[cfg(feature = "app-unitanim")]
417impl UnitAnim {
418    #[doc = "`.ctor()` — no args"]
419    pub fn new() -> Self {
420        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
421            panic!(
422                "{}
423::{}
424 failed to instantiate",
425                ::core::stringify!(UnitAnim),
426                ::core::stringify!(new),
427            )
428        });
429        <Self as IUnitAnimMethods>::ctor(this);
430        this
431    }
432}
433
434#[cfg(feature = "app-unitanim")]
435#[doc(hidden)]
436pub mod prelude {
437    pub use super::{IUnitAnim, IUnitAnimMethods, UnitAnim, UnitAnim_Times, UnitAnim_Types};
438    #[cfg(feature = "system-object")]
439    pub use crate::system::object::IObjectMethods;
440    #[cfg(feature = "system-enum")]
441    pub use crate::system::r#enum::IEnumMethods;
442    #[cfg(feature = "system-valuetype")]
443    pub use crate::system::valuetype::IValueTypeMethods;
444    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
445}