1#[cfg(feature = "unity_engine-animation-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 object_2::{IObject_2, Object_2},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/animation/Animation.md"))]
18 #[::unity::class(namespace = "UnityEngine", name = "Animation")]
19 #[parent(crate::unity_engine::behaviour::Behaviour)]
20 pub struct Animation {}
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/animation/Animation_Enumerator.md"))]
23 #[::unity::class(namespace = "UnityEngine", name = "Animation.Enumerator")]
24 #[parent(crate::system::object::Object)]
25 pub struct Animation_Enumerator {
26 #[offset(16)]
27 #[rename(name = "m_Outer")]
28 pub m_outer: crate::unity_engine::animation::Animation,
29 #[offset(24)]
30 #[rename(name = "m_CurrentIndex")]
31 pub m_current_index: i32,
32 }
33}
34
35#[cfg(feature = "unity_engine-animation-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-animation")]
39pub trait IAnimationMethods: IAnimation {
40 #[doc = "`get_clip()` overload"]
41 fn get_clip(self) -> crate::unity_engine::animationclip::AnimationClip {
42 unsafe {
43 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x3eaad00usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
45(Animation)__receiver)
46 }
47 }
48 #[doc = "`set_clip(crate::unity_engine::animationclip::AnimationClip)` overload"]
49 fn set_clip(self, value: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>) -> () {
50 unsafe {
51 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x3eaad50usize)as*mut u8,();
53(Animation)__receiver,(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(value))
54 }
55 }
56 #[doc = "`get_playAutomatically()` overload"]
57 fn get_play_automatically(self) -> bool {
58 unsafe {
59 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x3eaada0usize)as*mut u8,bool;
61(Animation)__receiver)
62 }
63 }
64 #[doc = "`set_playAutomatically(bool)` overload"]
65 fn set_play_automatically(self, value: impl ::core::convert::Into<bool>) -> () {
66 unsafe {
67 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x3eaadf0usize)as*mut u8,();
69(Animation)__receiver,(bool)::core::convert::Into::into(value))
70 }
71 }
72 #[doc = "`get_wrapMode()` overload"]
73 fn get_wrap_mode(self) -> crate::unity_engine::wrapmode::WrapMode {
74 unsafe {
75 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x3eaae40usize)as*mut u8,crate::unity_engine::wrapmode::WrapMode;
77(Animation)__receiver)
78 }
79 }
80 #[doc = "`set_wrapMode(crate::unity_engine::wrapmode::WrapMode)` overload"]
81 fn set_wrap_mode(self, value: impl ::core::convert::Into<crate::unity_engine::wrapmode::WrapMode>) -> () {
82 unsafe {
83 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x3eaae90usize)as*mut u8,();
85(Animation)__receiver,(crate::unity_engine::wrapmode::WrapMode)::core::convert::Into::into(value))
86 }
87 }
88 #[doc = "`Stop()` overload"]
89 fn stop(self) -> () {
90 unsafe {
91 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x3eaaee0usize)as*mut u8,();
93(Animation)__receiver)
94 }
95 }
96 #[doc = "`Stop(::unity::Il2CppString)` overload"]
97 fn stop_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
98 unsafe {
99 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x3eaaf30usize)as*mut u8,();
101(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
102 }
103 }
104 #[doc = "`StopNamed(::unity::Il2CppString)` overload"]
105 fn stop_named(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
106 unsafe {
107 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x3eaaf80usize)as*mut u8,();
109(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
110 }
111 }
112 #[doc = "`Rewind()` overload"]
113 fn rewind(self) -> () {
114 unsafe {
115 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x3eaafd0usize)as*mut u8,();
117(Animation)__receiver)
118 }
119 }
120 #[doc = "`Rewind(::unity::Il2CppString)` overload"]
121 fn rewind_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
122 unsafe {
123 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x3eab020usize)as*mut u8,();
125(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
126 }
127 }
128 #[doc = "`RewindNamed(::unity::Il2CppString)` overload"]
129 fn rewind_named(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130 unsafe {
131 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x3eab070usize)as*mut u8,();
133(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
134 }
135 }
136 #[doc = "`Sample()` overload"]
137 fn sample(self) -> () {
138 unsafe {
139 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x3eab0c0usize)as*mut u8,();
141(Animation)__receiver)
142 }
143 }
144 #[doc = "`get_isPlaying()` overload"]
145 fn get_is_playing(self) -> bool {
146 unsafe {
147 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x3eab110usize)as*mut u8,bool;
149(Animation)__receiver)
150 }
151 }
152 #[doc = "`IsPlaying(::unity::Il2CppString)` overload"]
153 fn is_playing(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
154 unsafe {
155 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x3eab160usize)as*mut u8,bool;
157(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
158 }
159 }
160 #[doc = "`get_Item(::unity::Il2CppString)` overload"]
161 fn get_item(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::animationstate::AnimationState {
162 unsafe {
163 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x3eab1b0usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
165(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
166 }
167 }
168 #[doc = "`Play()` overload"]
169 fn play(self) -> bool {
170 unsafe {
171 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x3eab250usize)as*mut u8,bool;
173(Animation)__receiver)
174 }
175 }
176 #[doc = "`Play(crate::unity_engine::playmode::PlayMode)` overload"]
177 fn play_2(self, mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>) -> bool {
178 unsafe {
179 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x3eab2a0usize)as*mut u8,bool;
181(Animation)__receiver,(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
182 }
183 }
184 #[doc = "`PlayDefaultAnimation(crate::unity_engine::playmode::PlayMode)` overload"]
185 fn play_default_animation(self, mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>) -> bool {
186 unsafe {
187 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x3eab2f0usize)as*mut u8,bool;
189(Animation)__receiver,(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
190 }
191 }
192 #[doc = "`Play(::unity::Il2CppString)` overload"]
193 fn play_3(self, animation: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
194 unsafe {
195 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x3eab340usize)as*mut u8,bool;
197(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation))
198 }
199 }
200 #[doc = "`Play(::unity::Il2CppString, crate::unity_engine::playmode::PlayMode)` overload"]
201 fn play_4(
202 self,
203 animation: impl ::core::convert::Into<::unity::Il2CppString>,
204 mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>,
205 ) -> bool {
206 unsafe {
207 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x3eab3a0usize)as*mut u8,bool;
209(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
210 }
211 }
212 #[doc = "`CrossFade(::unity::Il2CppString)` overload"]
213 fn cross_fade(self, animation: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
214 unsafe {
215 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x3eab400usize)as*mut u8,();
217(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation))
218 }
219 }
220 #[doc = "`CrossFade(::unity::Il2CppString, f32)` overload"]
221 fn cross_fade_2(self, animation: impl ::core::convert::Into<::unity::Il2CppString>, fade_length: impl ::core::convert::Into<f32>) -> () {
222 unsafe {
223 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x3eab460usize)as*mut u8,();
225(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(fade_length))
226 }
227 }
228 #[doc = "`CrossFade(::unity::Il2CppString, f32, crate::unity_engine::playmode::PlayMode)` overload"]
229 fn cross_fade_3(
230 self,
231 animation: impl ::core::convert::Into<::unity::Il2CppString>,
232 fade_length: impl ::core::convert::Into<f32>,
233 mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>,
234 ) -> () {
235 unsafe {
236 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x3eab4d0usize)as*mut u8,();
238(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(fade_length),(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
239 }
240 }
241 #[doc = "`Blend(::unity::Il2CppString)` overload"]
242 fn blend(self, animation: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
243 unsafe {
244 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x3eab540usize)as*mut u8,();
246(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation))
247 }
248 }
249 #[doc = "`Blend(::unity::Il2CppString, f32)` overload"]
250 fn blend_2(self, animation: impl ::core::convert::Into<::unity::Il2CppString>, target_weight: impl ::core::convert::Into<f32>) -> () {
251 unsafe {
252 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x3eab5a0usize)as*mut u8,();
254(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(target_weight))
255 }
256 }
257 #[doc = "`Blend(::unity::Il2CppString, f32, f32)` overload"]
258 fn blend_3(
259 self,
260 animation: impl ::core::convert::Into<::unity::Il2CppString>,
261 target_weight: impl ::core::convert::Into<f32>,
262 fade_length: impl ::core::convert::Into<f32>,
263 ) -> () {
264 unsafe {
265 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266 ::unity::il2cpp_call!((::unity::module_base()+0x3eab610usize)as*mut u8,();
267(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(target_weight),(f32)::core::convert::Into::into(fade_length))
268 }
269 }
270 #[doc = "`CrossFadeQueued(::unity::Il2CppString)` overload"]
271 fn cross_fade_queued(self, animation: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::animationstate::AnimationState {
272 unsafe {
273 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274 ::unity::il2cpp_call!((::unity::module_base()+0x3eab680usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
275(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation))
276 }
277 }
278 #[doc = "`CrossFadeQueued(::unity::Il2CppString, f32)` overload"]
279 fn cross_fade_queued_2(
280 self,
281 animation: impl ::core::convert::Into<::unity::Il2CppString>,
282 fade_length: impl ::core::convert::Into<f32>,
283 ) -> crate::unity_engine::animationstate::AnimationState {
284 unsafe {
285 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286 ::unity::il2cpp_call!((::unity::module_base()+0x3eab6f0usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
287(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(fade_length))
288 }
289 }
290 #[doc = "`CrossFadeQueued(::unity::Il2CppString, f32, crate::unity_engine::queuemode::QueueMode)` overload"]
291 fn cross_fade_queued_3(
292 self,
293 animation: impl ::core::convert::Into<::unity::Il2CppString>,
294 fade_length: impl ::core::convert::Into<f32>,
295 queue: impl ::core::convert::Into<crate::unity_engine::queuemode::QueueMode>,
296 ) -> crate::unity_engine::animationstate::AnimationState {
297 unsafe {
298 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x3eab760usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
300(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(fade_length),(crate::unity_engine::queuemode::QueueMode)::core::convert::Into::into(queue))
301 }
302 }
303 #[doc = "`CrossFadeQueued(::unity::Il2CppString, f32, crate::unity_engine::queuemode::QueueMode, crate::unity_engine::playmode::PlayMode)` overload"]
304 fn cross_fade_queued_4(
305 self,
306 animation: impl ::core::convert::Into<::unity::Il2CppString>,
307 fade_length: impl ::core::convert::Into<f32>,
308 queue: impl ::core::convert::Into<crate::unity_engine::queuemode::QueueMode>,
309 mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>,
310 ) -> crate::unity_engine::animationstate::AnimationState {
311 unsafe {
312 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313 ::unity::il2cpp_call!((::unity::module_base()+0x3eab7d0usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
314(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(fade_length),(crate::unity_engine::queuemode::QueueMode)::core::convert::Into::into(queue),(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
315 }
316 }
317 #[doc = "`PlayQueued(::unity::Il2CppString)` overload"]
318 fn play_queued(self, animation: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::animationstate::AnimationState {
319 unsafe {
320 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321 ::unity::il2cpp_call!((::unity::module_base()+0x3eab850usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
322(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation))
323 }
324 }
325 #[doc = "`PlayQueued(::unity::Il2CppString, crate::unity_engine::queuemode::QueueMode)` overload"]
326 fn play_queued_2(
327 self,
328 animation: impl ::core::convert::Into<::unity::Il2CppString>,
329 queue: impl ::core::convert::Into<crate::unity_engine::queuemode::QueueMode>,
330 ) -> crate::unity_engine::animationstate::AnimationState {
331 unsafe {
332 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 ::unity::il2cpp_call!((::unity::module_base()+0x3eab8b0usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
334(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(crate::unity_engine::queuemode::QueueMode)::core::convert::Into::into(queue))
335 }
336 }
337 #[doc = "`PlayQueued(::unity::Il2CppString, crate::unity_engine::queuemode::QueueMode, crate::unity_engine::playmode::PlayMode)` overload"]
338 fn play_queued_3(
339 self,
340 animation: impl ::core::convert::Into<::unity::Il2CppString>,
341 queue: impl ::core::convert::Into<crate::unity_engine::queuemode::QueueMode>,
342 mode: impl ::core::convert::Into<crate::unity_engine::playmode::PlayMode>,
343 ) -> crate::unity_engine::animationstate::AnimationState {
344 unsafe {
345 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
346 ::unity::il2cpp_call!((::unity::module_base()+0x3eab910usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
347(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(crate::unity_engine::queuemode::QueueMode)::core::convert::Into::into(queue),(crate::unity_engine::playmode::PlayMode)::core::convert::Into::into(mode))
348 }
349 }
350 #[doc = "`AddClip(crate::unity_engine::animationclip::AnimationClip, ::unity::Il2CppString)` overload"]
351 fn add_clip(
352 self,
353 clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
354 new_name: impl ::core::convert::Into<::unity::Il2CppString>,
355 ) -> () {
356 unsafe {
357 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358 ::unity::il2cpp_call!((::unity::module_base()+0x3eab980usize)as*mut u8,();
359(Animation)__receiver,(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(clip),(::unity::Il2CppString)::core::convert::Into::into(new_name))
360 }
361 }
362 #[doc = "`AddClip(crate::unity_engine::animationclip::AnimationClip, ::unity::Il2CppString, i32, i32)` overload"]
363 fn add_clip_2(
364 self,
365 clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
366 new_name: impl ::core::convert::Into<::unity::Il2CppString>,
367 first_frame: impl ::core::convert::Into<i32>,
368 last_frame: impl ::core::convert::Into<i32>,
369 ) -> () {
370 unsafe {
371 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 ::unity::il2cpp_call!((::unity::module_base()+0x3eab9f0usize)as*mut u8,();
373(Animation)__receiver,(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(clip),(::unity::Il2CppString)::core::convert::Into::into(new_name),(i32)::core::convert::Into::into(first_frame),(i32)::core::convert::Into::into(last_frame))
374 }
375 }
376 #[doc = "`AddClip(crate::unity_engine::animationclip::AnimationClip, ::unity::Il2CppString, i32, i32, bool)` overload"]
377 fn add_clip_3(
378 self,
379 clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
380 new_name: impl ::core::convert::Into<::unity::Il2CppString>,
381 first_frame: impl ::core::convert::Into<i32>,
382 last_frame: impl ::core::convert::Into<i32>,
383 add_loop_frame: impl ::core::convert::Into<bool>,
384 ) -> () {
385 unsafe {
386 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387 ::unity::il2cpp_call!((::unity::module_base()+0x3eaba70usize)as*mut u8,();
388(Animation)__receiver,(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(clip),(::unity::Il2CppString)::core::convert::Into::into(new_name),(i32)::core::convert::Into::into(first_frame),(i32)::core::convert::Into::into(last_frame),(bool)::core::convert::Into::into(add_loop_frame))
389 }
390 }
391 #[doc = "`RemoveClip(crate::unity_engine::animationclip::AnimationClip)` overload"]
392 fn remove_clip(self, clip: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>) -> () {
393 unsafe {
394 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 ::unity::il2cpp_call!((::unity::module_base()+0x3eabaf0usize)as*mut u8,();
396(Animation)__receiver,(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(clip))
397 }
398 }
399 #[doc = "`RemoveClip(::unity::Il2CppString)` overload"]
400 fn remove_clip_2(self, clip_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
401 unsafe {
402 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
403 ::unity::il2cpp_call!((::unity::module_base()+0x3eabb40usize)as*mut u8,();
404(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(clip_name))
405 }
406 }
407 #[doc = "`RemoveClipNamed(::unity::Il2CppString)` overload"]
408 fn remove_clip_named(self, clip_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
409 unsafe {
410 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411 ::unity::il2cpp_call!((::unity::module_base()+0x3eabb90usize)as*mut u8,();
412(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(clip_name))
413 }
414 }
415 #[doc = "`GetClipCount()` overload"]
416 fn get_clip_count(self) -> i32 {
417 unsafe {
418 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419 ::unity::il2cpp_call!((::unity::module_base()+0x3eabbe0usize)as*mut u8,i32;
420(Animation)__receiver)
421 }
422 }
423 #[doc = "`Play(crate::unity_engine::animationplaymode::AnimationPlayMode)` overload"]
424 fn play_5(self, mode: impl ::core::convert::Into<crate::unity_engine::animationplaymode::AnimationPlayMode>) -> bool {
425 unsafe {
426 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427 ::unity::il2cpp_call!((::unity::module_base()+0x3eabc30usize)as*mut u8,bool;
428(Animation)__receiver,(crate::unity_engine::animationplaymode::AnimationPlayMode)::core::convert::Into::into(mode))
429 }
430 }
431 #[doc = "`Play(::unity::Il2CppString, crate::unity_engine::animationplaymode::AnimationPlayMode)` overload"]
432 fn play_6(
433 self,
434 animation: impl ::core::convert::Into<::unity::Il2CppString>,
435 mode: impl ::core::convert::Into<crate::unity_engine::animationplaymode::AnimationPlayMode>,
436 ) -> bool {
437 unsafe {
438 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439 ::unity::il2cpp_call!((::unity::module_base()+0x3eabc80usize)as*mut u8,bool;
440(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animation),(crate::unity_engine::animationplaymode::AnimationPlayMode)::core::convert::Into::into(mode))
441 }
442 }
443 #[doc = "`SyncLayer(i32)` overload"]
444 fn sync_layer(self, layer: impl ::core::convert::Into<i32>) -> () {
445 unsafe {
446 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
447 ::unity::il2cpp_call!((::unity::module_base()+0x3eabce0usize)as*mut u8,();
448(Animation)__receiver,(i32)::core::convert::Into::into(layer))
449 }
450 }
451 #[doc = "`GetEnumerator()` overload"]
452 fn get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator {
453 unsafe {
454 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455 {
456 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
457 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
458 panic!(
459 "unity: virtual slot {}
460 out of range (vtable len {}
461) on the runtime class behind {}
462 (method `{}
463`)",
464 4usize,
465 __vt.len(),
466 <Animation as ::unity::ClassIdentity>::NAME,
467 "GetEnumerator",
468 )
469 });
470 let __inner: extern "C" fn(Animation, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
471 ::core::mem::transmute(__vi.method_ptr);
472 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
473 __inner(__receiver, __mi)
474 }
475 }
476 }
477 #[doc = "`GetState(::unity::Il2CppString)` overload"]
478 fn get_state(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::animationstate::AnimationState {
479 unsafe {
480 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481 ::unity::il2cpp_call!((::unity::module_base()+0x3eab200usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
482(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
483 }
484 }
485 #[doc = "`GetStateAtIndex(i32)` overload"]
486 fn get_state_at_index(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::animationstate::AnimationState {
487 unsafe {
488 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489 ::unity::il2cpp_call!((::unity::module_base()+0x3eabdf0usize)as*mut u8,crate::unity_engine::animationstate::AnimationState;
490(Animation)__receiver,(i32)::core::convert::Into::into(index))
491 }
492 }
493 #[doc = "`GetStateCount()` overload"]
494 fn get_state_count(self) -> i32 {
495 unsafe {
496 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497 ::unity::il2cpp_call!((::unity::module_base()+0x3eabe40usize)as*mut u8,i32;
498(Animation)__receiver)
499 }
500 }
501 #[doc = "`GetClip(::unity::Il2CppString)` overload"]
502 fn get_clip_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::animationclip::AnimationClip {
503 unsafe {
504 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
505 ::unity::il2cpp_call!((::unity::module_base()+0x3eabe90usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
506(Animation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
507 }
508 }
509 #[doc = "`get_animatePhysics()` overload"]
510 fn get_animate_physics(self) -> bool {
511 unsafe {
512 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513 ::unity::il2cpp_call!((::unity::module_base()+0x3eabf80usize)as*mut u8,bool;
514(Animation)__receiver)
515 }
516 }
517 #[doc = "`set_animatePhysics(bool)` overload"]
518 fn set_animate_physics(self, value: impl ::core::convert::Into<bool>) -> () {
519 unsafe {
520 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521 ::unity::il2cpp_call!((::unity::module_base()+0x3eabfd0usize)as*mut u8,();
522(Animation)__receiver,(bool)::core::convert::Into::into(value))
523 }
524 }
525 #[doc = "`get_animateOnlyIfVisible()` overload"]
526 fn get_animate_only_if_visible(self) -> bool {
527 unsafe {
528 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 ::unity::il2cpp_call!((::unity::module_base()+0x3eac020usize)as*mut u8,bool;
530(Animation)__receiver)
531 }
532 }
533 #[doc = "`set_animateOnlyIfVisible(bool)` overload"]
534 fn set_animate_only_if_visible(self, value: impl ::core::convert::Into<bool>) -> () {
535 unsafe {
536 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537 ::unity::il2cpp_call!((::unity::module_base()+0x3eac070usize)as*mut u8,();
538(Animation)__receiver,(bool)::core::convert::Into::into(value))
539 }
540 }
541 #[doc = "`get_cullingType()` overload"]
542 fn get_culling_type(self) -> crate::unity_engine::animationcullingtype::AnimationCullingType {
543 unsafe {
544 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545 ::unity::il2cpp_call!((::unity::module_base()+0x3eac0c0usize)as*mut u8,crate::unity_engine::animationcullingtype::AnimationCullingType;
546(Animation)__receiver)
547 }
548 }
549 #[doc = "`set_cullingType(crate::unity_engine::animationcullingtype::AnimationCullingType)` overload"]
550 fn set_culling_type(self, value: impl ::core::convert::Into<crate::unity_engine::animationcullingtype::AnimationCullingType>) -> () {
551 unsafe {
552 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
553 ::unity::il2cpp_call!((::unity::module_base()+0x3eac110usize)as*mut u8,();
554(Animation)__receiver,(crate::unity_engine::animationcullingtype::AnimationCullingType)::core::convert::Into::into(value))
555 }
556 }
557 #[doc = "`get_localBounds()` overload"]
558 fn get_local_bounds(self) -> crate::unity_engine::bounds::Bounds {
559 unsafe {
560 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561 ::unity::il2cpp_call!((::unity::module_base()+0x3eac160usize)as*mut u8,crate::unity_engine::bounds::Bounds;
562(Animation)__receiver)
563 }
564 }
565 #[doc = "`set_localBounds(crate::unity_engine::bounds::Bounds)` overload"]
566 fn set_local_bounds(self, value: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> () {
567 unsafe {
568 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
569 ::unity::il2cpp_call!((::unity::module_base()+0x3eac230usize)as*mut u8,();
570(Animation)__receiver,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(value))
571 }
572 }
573 #[doc = "`.ctor()` overload"]
574 fn ctor(self) -> () {
575 unsafe {
576 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
577 ::unity::il2cpp_call!((::unity::module_base()+0x3eac2d0usize)as*mut u8,();
578(Animation)__receiver)
579 }
580 }
581 #[doc = "`get_localBounds_Injected(*mutcrate::unity_engine::bounds::Bounds)` overload"]
582 fn get_local_bounds_injected(self) -> crate::unity_engine::bounds::Bounds {
583 unsafe {
584 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
585 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::bounds::Bounds>::uninit();
586 ::unity::il2cpp_call!((::unity::module_base()+0x3eac1e0usize)as*mut u8,();
587(Animation)__receiver,(*mut crate::unity_engine::bounds::Bounds)__out_0.as_mut_ptr());
588 __out_0.assume_init()
589 }
590 }
591 #[doc = "`set_localBounds_Injected(*mutcrate::unity_engine::bounds::Bounds)` overload"]
592 fn set_local_bounds_injected(self) -> crate::unity_engine::bounds::Bounds {
593 unsafe {
594 let __receiver = <Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
595 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::bounds::Bounds>::uninit();
596 ::unity::il2cpp_call!((::unity::module_base()+0x3eac280usize)as*mut u8,();
597(Animation)__receiver,(*mut crate::unity_engine::bounds::Bounds)__out_0.as_mut_ptr());
598 __out_0.assume_init()
599 }
600 }
601}
602
603#[cfg(feature = "unity_engine-animation")]
604impl<__T: IAnimation> IAnimationMethods for __T {}
605
606#[cfg(feature = "unity_engine-animation")]
607impl Animation {
608 pub fn get_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
610 }
611
612 pub fn set_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
614 }
615
616 pub fn get_play_automatically_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
618 }
619
620 pub fn set_play_automatically_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
622 }
623
624 pub fn get_wrap_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
626 }
627
628 pub fn set_wrap_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
630 }
631
632 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
634 }
635
636 pub fn stop_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
638 }
639
640 pub fn stop_named_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
642 }
643
644 pub fn rewind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
646 }
647
648 pub fn rewind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
650 }
651
652 pub fn rewind_named_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
654 }
655
656 pub fn sample_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
658 }
659
660 pub fn get_is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
662 }
663
664 pub fn is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
666 }
667
668 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
670 }
671
672 pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
674 }
675
676 pub fn play_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
678 }
679
680 pub fn play_default_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
682 }
683
684 pub fn play_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
686 }
687
688 pub fn play_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
690 }
691
692 pub fn cross_fade_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
694 }
695
696 pub fn cross_fade_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
698 }
699
700 pub fn cross_fade_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
702 }
703
704 pub fn blend_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
706 }
707
708 pub fn blend_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
710 }
711
712 pub fn blend_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
714 }
715
716 pub fn cross_fade_queued_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
718 }
719
720 pub fn cross_fade_queued_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
722 }
723
724 pub fn cross_fade_queued_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
726 }
727
728 pub fn cross_fade_queued_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
730 }
731
732 pub fn play_queued_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
734 }
735
736 pub fn play_queued_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
738 }
739
740 pub fn play_queued_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
742 }
743
744 pub fn add_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
746 }
747
748 pub fn add_clip_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
750 }
751
752 pub fn add_clip_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
754 }
755
756 pub fn remove_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
757 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
758 }
759
760 pub fn remove_clip_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
761 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
762 }
763
764 pub fn remove_clip_named_method_info() -> &'static ::unity::il2cpp::MethodInfo {
765 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
766 }
767
768 pub fn get_clip_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
769 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
770 }
771
772 pub fn play_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
774 }
775
776 pub fn play_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
778 }
779
780 pub fn sync_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
781 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
782 }
783
784 pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
785 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
786 }
787
788 pub fn get_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
790 }
791
792 pub fn get_state_at_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
794 }
795
796 pub fn get_state_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
797 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
798 }
799
800 pub fn get_clip_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
801 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
802 }
803
804 pub fn get_animate_physics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
805 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
806 }
807
808 pub fn set_animate_physics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
809 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
810 }
811
812 pub fn get_animate_only_if_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
813 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
814 }
815
816 pub fn set_animate_only_if_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
817 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
818 }
819
820 pub fn get_culling_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
821 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
822 }
823
824 pub fn set_culling_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
825 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
826 }
827
828 pub fn get_local_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
829 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
830 }
831
832 pub fn set_local_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
833 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
834 }
835
836 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
837 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
838 }
839
840 pub fn get_local_bounds_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
841 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
842 }
843
844 pub fn set_local_bounds_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
845 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
846 }
847}
848
849#[cfg(feature = "unity_engine-animation")]
850impl Animation {
851 #[doc = "Direct (non-virtual) call to `Animation`'s own `GetEnumerator`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
852 pub unsafe fn get_enumerator(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::collections::ienumerator::IEnumerator {
853 let __mi = Self::get_enumerator_method_info();
854 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
855 ::core::mem::transmute(__mi.method_ptr);
856 __inner(this.into(), ::core::option::Option::None)
857 }
858}
859
860#[cfg(feature = "unity_engine-animation")]
861impl Animation {
862 #[doc = "`.ctor()` — no args"]
863 pub fn new() -> Self {
864 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
865 panic!(
866 "{}
867::{}
868 failed to instantiate",
869 ::core::stringify!(Animation),
870 ::core::stringify!(new),
871 )
872 });
873 <Self as IAnimationMethods>::ctor(this);
874 this
875 }
876}
877
878#[cfg(feature = "unity_engine-animation")]
879pub trait IAnimation_EnumeratorMethods: IAnimation_Enumerator {
880 #[doc = "`.ctor(crate::unity_engine::animation::Animation)` overload"]
881 fn ctor(self, outer: impl ::core::convert::Into<crate::unity_engine::animation::Animation>) -> () {
882 unsafe {
883 let __receiver = <Animation_Enumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
884 ::unity::il2cpp_call!((::unity::module_base()+0x3eabdb0usize)as*mut u8,();
885(Animation_Enumerator)__receiver,(crate::unity_engine::animation::Animation)::core::convert::Into::into(outer))
886 }
887 }
888 #[doc = "`get_Current()` overload"]
889 fn get_current(self) -> crate::system::object::Object {
890 unsafe {
891 let __receiver = <Animation_Enumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
892 {
893 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
894 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
895 panic!(
896 "unity: virtual slot {}
897 out of range (vtable len {}
898) on the runtime class behind {}
899 (method `{}
900`)",
901 5usize,
902 __vt.len(),
903 <Animation_Enumerator as ::unity::ClassIdentity>::NAME,
904 "get_Current",
905 )
906 });
907 let __inner: extern "C" fn(Animation_Enumerator, ::unity::OptionalMethod) -> crate::system::object::Object =
908 ::core::mem::transmute(__vi.method_ptr);
909 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
910 __inner(__receiver, __mi)
911 }
912 }
913 }
914 #[doc = "`MoveNext()` overload"]
915 fn move_next(self) -> bool {
916 unsafe {
917 let __receiver = <Animation_Enumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
918 {
919 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
920 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
921 panic!(
922 "unity: virtual slot {}
923 out of range (vtable len {}
924) on the runtime class behind {}
925 (method `{}
926`)",
927 4usize,
928 __vt.len(),
929 <Animation_Enumerator as ::unity::ClassIdentity>::NAME,
930 "MoveNext",
931 )
932 });
933 let __inner: extern "C" fn(Animation_Enumerator, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
934 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
935 __inner(__receiver, __mi)
936 }
937 }
938 }
939 #[doc = "`Reset()` overload"]
940 fn reset(self) -> () {
941 unsafe {
942 let __receiver = <Animation_Enumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
943 {
944 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
945 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
946 panic!(
947 "unity: virtual slot {}
948 out of range (vtable len {}
949) on the runtime class behind {}
950 (method `{}
951`)",
952 6usize,
953 __vt.len(),
954 <Animation_Enumerator as ::unity::ClassIdentity>::NAME,
955 "Reset",
956 )
957 });
958 let __inner: extern "C" fn(Animation_Enumerator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
959 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
960 __inner(__receiver, __mi)
961 }
962 }
963 }
964}
965
966#[cfg(feature = "unity_engine-animation")]
967impl<__T: IAnimation_Enumerator> IAnimation_EnumeratorMethods for __T {}
968
969#[cfg(feature = "unity_engine-animation")]
970impl Animation_Enumerator {
971 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
973 }
974
975 pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
977 }
978
979 pub fn move_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
981 }
982
983 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
985 }
986}
987
988#[cfg(feature = "unity_engine-animation")]
989impl Animation_Enumerator {
990 #[doc = "Direct (non-virtual) call to `Animation_Enumerator`'s own `get_Current`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
991 pub unsafe fn get_current(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
992 let __mi = Self::get_current_method_info();
993 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
994 ::core::mem::transmute(__mi.method_ptr);
995 __inner(this.into(), ::core::option::Option::None)
996 }
997
998 #[doc = "Direct (non-virtual) call to `Animation_Enumerator`'s own `MoveNext`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
999 pub unsafe fn move_next(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1000 let __mi = Self::move_next_method_info();
1001 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1002 __inner(this.into(), ::core::option::Option::None)
1003 }
1004
1005 #[doc = "Direct (non-virtual) call to `Animation_Enumerator`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1006 pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1007 let __mi = Self::reset_method_info();
1008 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1009 __inner(this.into(), ::core::option::Option::None)
1010 }
1011}
1012
1013#[cfg(feature = "unity_engine-animation")]
1014impl Animation_Enumerator {
1015 #[doc = "`.ctor(crate::unity_engine::animation::Animation)` — overload selector"]
1016 pub fn new(outer: crate::unity_engine::animation::Animation) -> Self {
1017 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1018 panic!(
1019 "{}
1020::{}
1021 failed to instantiate",
1022 ::core::stringify!(Animation_Enumerator),
1023 ::core::stringify!(new),
1024 )
1025 });
1026 <Self as IAnimation_EnumeratorMethods>::ctor(this, outer);
1027 this
1028 }
1029}
1030
1031#[cfg(feature = "unity_engine-animation")]
1032#[doc(hidden)]
1033pub mod prelude {
1034 pub use super::{Animation, Animation_Enumerator, IAnimation, IAnimationMethods, IAnimation_Enumerator, IAnimation_EnumeratorMethods};
1035 #[cfg(feature = "system-object")]
1036 pub use crate::system::object::IObjectMethods;
1037 #[cfg(feature = "unity_engine-behaviour")]
1038 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1039 #[cfg(feature = "unity_engine-component")]
1040 pub use crate::unity_engine::component::IComponentMethods;
1041 #[cfg(feature = "unity_engine-object_2")]
1042 pub use crate::unity_engine::object_2::IObject_2Methods;
1043 pub use crate::{
1044 system::object::IObject,
1045 unity_engine::{behaviour::IBehaviour, component::IComponent, object_2::IObject_2},
1046 };
1047}