engage/generated/app/
eventcharacteranimcontroller.rs1#[cfg(feature = "app-eventcharacteranimcontroller-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/eventcharacteranimcontroller/EventCharacterAnimController.md"))]
19 #[::unity::class(namespace = "App", name = "EventCharacterAnimController")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct EventCharacterAnimController {
22 #[offset(24)]
23 #[rename(name = "m_character")]
24 pub m_character: crate::combat::character::Character,
25 #[offset(32)]
26 #[rename(name = "m_simpleAnimation")]
27 pub m_simple_animation: crate::app::eventcharactersimpleanimation::EventCharacterSimpleAnimation,
28 #[offset(40)]
29 #[rename(name = "m_animator")]
30 pub m_animator: crate::unity_engine::animator::Animator,
31 #[offset(48)]
32 #[rename(name = "m_curBodyAnimName")]
33 pub m_cur_body_anim_name: ::unity::Il2CppString,
34 #[offset(56)]
35 #[rename(name = "m_resHandleDictionary")]
36 pub m_res_handle_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<
37 ::unity::Il2CppString,
38 crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::animationclip::AnimationClip>,
39 >,
40 }
41}
42
43#[cfg(feature = "app-eventcharacteranimcontroller-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-eventcharacteranimcontroller")]
47pub trait IEventCharacterAnimControllerMethods: IEventCharacterAnimController {
48 #[doc = "`.ctor()` overload"]
49 fn ctor(self) -> () {
50 unsafe {
51 let __receiver =
52 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x24d19e0usize)as*mut u8,();
54(EventCharacterAnimController)__receiver)
55 }
56 }
57 #[doc = "`Init()` overload"]
58 fn init(self) -> () {
59 unsafe {
60 let __receiver =
61 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x24d1a70usize)as*mut u8,();
63(EventCharacterAnimController)__receiver)
64 }
65 }
66 #[doc = "`Update()` overload"]
67 fn update(self) -> () {
68 unsafe {
69 let __receiver =
70 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x24d1b90usize)as*mut u8,();
72(EventCharacterAnimController)__receiver)
73 }
74 }
75 #[doc = "`LoadBodyAnimAsync(::unity::Il2CppString)` overload"]
76 fn load_body_anim_async(self, body_anim_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
77 unsafe {
78 let __receiver =
79 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x24d1ba0usize)as*mut u8,();
81(EventCharacterAnimController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(body_anim_name))
82 }
83 }
84 #[doc = "`IsLoadingBodyAnim(::unity::Il2CppString)` overload"]
85 fn is_loading_body_anim(self, body_anim_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
86 unsafe {
87 let __receiver =
88 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x24d1d80usize)as*mut u8,bool;
90(EventCharacterAnimController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(body_anim_name))
91 }
92 }
93 #[doc = "`IsLoadedBodyAnim(::unity::Il2CppString)` overload"]
94 fn is_loaded_body_anim(self, body_anim_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
95 unsafe {
96 let __receiver =
97 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x24d1d50usize)as*mut u8,bool;
99(EventCharacterAnimController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(body_anim_name))
100 }
101 }
102 #[doc = "`PlayBodyAnim(::unity::Il2CppString, f32)` overload"]
103 fn play_body_anim(self, body_anim_name: impl ::core::convert::Into<::unity::Il2CppString>, fade_sec: impl ::core::convert::Into<f32>) -> () {
104 unsafe {
105 let __receiver =
106 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x24d1e20usize)as*mut u8,();
108(EventCharacterAnimController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(body_anim_name),(f32)::core::convert::Into::into(fade_sec))
109 }
110 }
111 #[doc = "`Co_PlayBodyAnim(::unity::Il2CppString, f32)` overload"]
112 fn co_play_body_anim(
113 self,
114 body_anim_name: impl ::core::convert::Into<::unity::Il2CppString>,
115 fade_sec: impl ::core::convert::Into<f32>,
116 ) -> crate::system::collections::ienumerator::IEnumerator {
117 unsafe {
118 let __receiver =
119 <EventCharacterAnimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x24d1f00usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
121(EventCharacterAnimController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(body_anim_name),(f32)::core::convert::Into::into(fade_sec))
122 }
123 }
124}
125
126#[cfg(feature = "app-eventcharacteranimcontroller")]
127impl<__T: IEventCharacterAnimController> IEventCharacterAnimControllerMethods for __T {}
128
129#[cfg(feature = "app-eventcharacteranimcontroller")]
130impl EventCharacterAnimController {
131 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn load_body_anim_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn is_loading_body_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150
151 pub fn is_loaded_body_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153 }
154
155 pub fn play_body_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157 }
158
159 pub fn co_play_body_anim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161 }
162}
163
164#[cfg(feature = "app-eventcharacteranimcontroller")]
165impl EventCharacterAnimController {
166 #[doc = "`.ctor()` — no args"]
167 pub fn new() -> Self {
168 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
169 panic!(
170 "{}
171::{}
172 failed to instantiate",
173 ::core::stringify!(EventCharacterAnimController),
174 ::core::stringify!(new),
175 )
176 });
177 <Self as IEventCharacterAnimControllerMethods>::ctor(this);
178 this
179 }
180}
181
182#[cfg(feature = "app-eventcharacteranimcontroller")]
183#[doc(hidden)]
184pub mod prelude {
185 pub use super::{EventCharacterAnimController, IEventCharacterAnimController, IEventCharacterAnimControllerMethods};
186 #[cfg(feature = "system-object")]
187 pub use crate::system::object::IObjectMethods;
188 #[cfg(feature = "unity_engine-behaviour")]
189 pub use crate::unity_engine::behaviour::IBehaviourMethods;
190 #[cfg(feature = "unity_engine-component")]
191 pub use crate::unity_engine::component::IComponentMethods;
192 #[cfg(feature = "unity_engine-monobehaviour")]
193 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
194 #[cfg(feature = "unity_engine-object_2")]
195 pub use crate::unity_engine::object_2::IObject_2Methods;
196 pub use crate::{
197 system::object::IObject,
198 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
199 };
200}