engage/generated/unity_engine/
animationstate.rs1#[cfg(feature = "unity_engine-animationstate-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::trackedreference::{ITrackedReference, TrackedReference},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/animationstate/AnimationState.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "AnimationState")]
15 #[parent(crate::unity_engine::trackedreference::TrackedReference)]
16 pub struct AnimationState {}
17}
18
19#[cfg(feature = "unity_engine-animationstate-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-animationstate")]
23pub trait IAnimationStateMethods: IAnimationState {
24 #[doc = "`set_normalizedTime(f32)` overload"]
25 fn set_normalized_time(self, value: impl ::core::convert::Into<f32>) -> () {
26 unsafe {
27 let __receiver = <AnimationState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x3eb03e0usize)as*mut u8,();
29(AnimationState)__receiver,(f32)::core::convert::Into::into(value))
30 }
31 }
32 #[doc = "`set_layer(i32)` overload"]
33 fn set_layer(self, value: impl ::core::convert::Into<i32>) -> () {
34 unsafe {
35 let __receiver = <AnimationState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x3eb0430usize)as*mut u8,();
37(AnimationState)__receiver,(i32)::core::convert::Into::into(value))
38 }
39 }
40 #[doc = "`get_clip()` overload"]
41 fn get_clip(self) -> crate::unity_engine::animationclip::AnimationClip {
42 unsafe {
43 let __receiver = <AnimationState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x3eabf30usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
45(AnimationState)__receiver)
46 }
47 }
48 #[doc = "`.ctor()` overload"]
49 fn ctor(self) -> () {
50 unsafe {
51 let __receiver = <AnimationState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x3eb0480usize)as*mut u8,();
53(AnimationState)__receiver)
54 }
55 }
56}
57
58#[cfg(feature = "unity_engine-animationstate")]
59impl<__T: IAnimationState> IAnimationStateMethods for __T {}
60
61#[cfg(feature = "unity_engine-animationstate")]
62impl AnimationState {
63 pub fn set_normalized_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
65 }
66
67 pub fn set_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
69 }
70
71 pub fn get_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
73 }
74
75 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
77 }
78}
79
80#[cfg(feature = "unity_engine-animationstate")]
81impl AnimationState {
82 #[doc = "`.ctor()` — no args"]
83 pub fn new() -> Self {
84 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
85 panic!(
86 "{}
87::{}
88 failed to instantiate",
89 ::core::stringify!(AnimationState),
90 ::core::stringify!(new),
91 )
92 });
93 <Self as IAnimationStateMethods>::ctor(this);
94 this
95 }
96}
97
98#[cfg(feature = "unity_engine-animationstate")]
99#[doc(hidden)]
100pub mod prelude {
101 pub use super::{AnimationState, IAnimationState, IAnimationStateMethods};
102 #[cfg(feature = "system-object")]
103 pub use crate::system::object::IObjectMethods;
104 #[cfg(feature = "unity_engine-trackedreference")]
105 pub use crate::unity_engine::trackedreference::ITrackedReferenceMethods;
106 pub use crate::{system::object::IObject, unity_engine::trackedreference::ITrackedReference};
107}