1#[cfg(feature = "app-transformanimation-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/transformanimation/TransformAnimation_Kinds.md"))]
23 #[repr(C)]
24 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25 pub struct TransformAnimation_Kinds {
26 pub value: i32,
27 }
28 impl ::unity::ClassIdentity for TransformAnimation_Kinds {
29 const NAME: &'static str = "TransformAnimation.Kinds";
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 TransformAnimation_Kinds {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl TransformAnimation_Kinds {
43 pub fn none() -> Self {
44 Self { value: 0 }
45 }
46
47 pub fn position() -> Self {
48 Self { value: 1 }
49 }
50
51 pub fn rotation() -> Self {
52 Self { value: 2 }
53 }
54
55 pub fn scale() -> Self {
56 Self { value: 3 }
57 }
58 }
59
60 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transformanimation/TransformAnimation_Animator_Node.md"))]
61 #[::unity::class(namespace = "App", name = "TransformAnimation.Animator.Node")]
62 #[parent(crate::system::object::Object)]
63 pub struct TransformAnimation_Animator_Node {
64 #[offset(16)]
65 #[rename(name = "m_Target")]
66 pub m_target: crate::unity_engine::transform::Transform,
67 #[offset(24)]
68 #[rename(name = "m_Start")]
69 pub m_start: crate::unity_engine::vector3::Vector3,
70 #[offset(36)]
71 #[rename(name = "m_End")]
72 pub m_end: crate::unity_engine::vector3::Vector3,
73 }
74
75 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transformanimation/TransformAnimation_Actions.md"))]
76 #[repr(C)]
77 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
78 pub struct TransformAnimation_Actions {
79 pub value: i32,
80 }
81 impl ::unity::ClassIdentity for TransformAnimation_Actions {
82 const NAME: &'static str = "TransformAnimation.Actions";
83 const NAMESPACE: &'static str = "App";
84
85 fn class() -> ::unity::Class {
86 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
87 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
88 }
89 }
90 impl ::unity::IlType for TransformAnimation_Actions {
91 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
92 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
93 }
94 }
95 impl TransformAnimation_Actions {
96 pub fn none() -> Self {
97 Self { value: 0 }
98 }
99
100 pub fn r#loop() -> Self {
101 Self { value: 1 }
102 }
103
104 pub fn repeat() -> Self {
105 Self { value: 2 }
106 }
107 }
108
109 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transformanimation/TransformAnimation.md"))]
110 #[::unity::class(namespace = "App", name = "TransformAnimation")]
111 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
112 pub struct TransformAnimation {
113 #[offset(24)]
114 #[rename(name = "m_Animations")]
115 pub m_animations: ::unity::Array<crate::app::transformanimation::TransformAnimation_Animation>,
116 #[offset(32)]
117 #[rename(name = "m_Animators")]
118 pub m_animators: crate::system::collections::generic::list_1::List_1<crate::app::transformanimation::TransformAnimation_Animator>,
119 }
120
121 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transformanimation/TransformAnimation_Animator.md"))]
122 #[::unity::class(namespace = "App", name = "TransformAnimation.Animator")]
123 #[parent(crate::system::object::Object)]
124 pub struct TransformAnimation_Animator {
125 #[offset(16)]
126 #[rename(name = "m_Animation")]
127 pub m_animation: crate::app::transformanimation::TransformAnimation_Animation,
128 #[offset(24)]
129 #[rename(name = "m_Time")]
130 pub m_time: f32,
131 #[offset(28)]
132 #[rename(name = "m_Cycle")]
133 pub m_cycle: f32,
134 #[offset(32)]
135 #[rename(name = "m_Inverse")]
136 pub m_inverse: f32,
137 #[offset(40)]
138 #[rename(name = "m_Nodes")]
139 pub m_nodes: crate::system::collections::generic::list_1::List_1<crate::app::transformanimation::TransformAnimation_Animator_Node>,
140 }
141
142 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transformanimation/TransformAnimation_Animation.md"))]
143 #[::unity::class(namespace = "App", name = "TransformAnimation.Animation")]
144 #[parent(crate::system::object::Object)]
145 pub struct TransformAnimation_Animation {
146 #[offset(16)]
147 #[rename(name = "Kind")]
148 pub kind: crate::app::transformanimation::TransformAnimation_Kinds,
149 #[offset(20)]
150 #[rename(name = "Action")]
151 pub action: crate::app::transformanimation::TransformAnimation_Actions,
152 #[offset(24)]
153 #[rename(name = "Start")]
154 pub start: crate::unity_engine::vector3::Vector3,
155 #[offset(36)]
156 #[rename(name = "End")]
157 pub end: crate::unity_engine::vector3::Vector3,
158 #[offset(48)]
159 #[rename(name = "Cycle")]
160 pub cycle: f32,
161 #[offset(52)]
162 #[rename(name = "IsRandom")]
163 pub is_random: bool,
164 #[offset(56)]
165 #[rename(name = "Tragets")]
166 pub tragets: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
167 }
168}
169
170#[cfg(feature = "app-transformanimation-types")]
171pub use __types::*;
172
173#[cfg(feature = "app-transformanimation")]
174pub trait ITransformAnimation_Animator_NodeMethods: ITransformAnimation_Animator_Node {
175 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` overload"]
176 fn ctor(self, go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
177 unsafe {
178 let __receiver =
179 <TransformAnimation_Animator_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x22f3d30usize)as*mut u8,();
181(TransformAnimation_Animator_Node)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go))
182 }
183 }
184 #[doc = "`Commit(crate::app::transformanimation::TransformAnimation_Animation)` overload"]
185 fn commit(self, animation: impl ::core::convert::Into<crate::app::transformanimation::TransformAnimation_Animation>) -> () {
186 unsafe {
187 let __receiver =
188 <TransformAnimation_Animator_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x22f3d70usize)as*mut u8,();
190(TransformAnimation_Animator_Node)__receiver,(crate::app::transformanimation::TransformAnimation_Animation)::core::convert::Into::into(animation))
191 }
192 }
193 #[doc = "`Update(crate::app::transformanimation::TransformAnimation_Animation, f32)` overload"]
194 fn update(
195 self,
196 animation: impl ::core::convert::Into<crate::app::transformanimation::TransformAnimation_Animation>,
197 t: impl ::core::convert::Into<f32>,
198 ) -> () {
199 unsafe {
200 let __receiver =
201 <TransformAnimation_Animator_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x22f3f10usize)as*mut u8,();
203(TransformAnimation_Animator_Node)__receiver,(crate::app::transformanimation::TransformAnimation_Animation)::core::convert::Into::into(animation),(f32)::core::convert::Into::into(t))
204 }
205 }
206}
207
208#[cfg(feature = "app-transformanimation")]
209impl<__T: ITransformAnimation_Animator_Node> ITransformAnimation_Animator_NodeMethods for __T {}
210
211#[cfg(feature = "app-transformanimation")]
212impl TransformAnimation_Animator_Node {
213 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
215 }
216
217 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
219 }
220
221 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
223 }
224}
225
226#[cfg(feature = "app-transformanimation")]
227impl TransformAnimation_Animator_Node {
228 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` — overload selector"]
229 pub fn new(go: crate::unity_engine::gameobject::GameObject) -> Self {
230 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231 panic!(
232 "{}
233::{}
234 failed to instantiate",
235 ::core::stringify!(TransformAnimation_Animator_Node),
236 ::core::stringify!(new),
237 )
238 });
239 <Self as ITransformAnimation_Animator_NodeMethods>::ctor(this, go);
240 this
241 }
242}
243
244#[cfg(feature = "app-transformanimation")]
245pub trait ITransformAnimationMethods: ITransformAnimation {
246 #[doc = "`Start()` overload"]
247 fn start(self) -> () {
248 unsafe {
249 let __receiver = <TransformAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 ::unity::il2cpp_call!((::unity::module_base()+0x22a0940usize)as*mut u8,();
251(TransformAnimation)__receiver)
252 }
253 }
254 #[doc = "`Update()` overload"]
255 fn update(self) -> () {
256 unsafe {
257 let __receiver = <TransformAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 ::unity::il2cpp_call!((::unity::module_base()+0x22a0b60usize)as*mut u8,();
259(TransformAnimation)__receiver)
260 }
261 }
262 #[doc = "`Commit()` overload"]
263 fn commit(self) -> () {
264 unsafe {
265 let __receiver = <TransformAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266 ::unity::il2cpp_call!((::unity::module_base()+0x22a0ab0usize)as*mut u8,();
267(TransformAnimation)__receiver)
268 }
269 }
270 #[doc = "`.ctor()` overload"]
271 fn ctor(self) -> () {
272 unsafe {
273 let __receiver = <TransformAnimation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274 ::unity::il2cpp_call!((::unity::module_base()+0x22a0c20usize)as*mut u8,();
275(TransformAnimation)__receiver)
276 }
277 }
278}
279
280#[cfg(feature = "app-transformanimation")]
281impl<__T: ITransformAnimation> ITransformAnimationMethods for __T {}
282
283#[cfg(feature = "app-transformanimation")]
284impl TransformAnimation {
285 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
287 }
288
289 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
291 }
292
293 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
295 }
296
297 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
299 }
300}
301
302#[cfg(feature = "app-transformanimation")]
303impl TransformAnimation {
304 #[doc = "`.ctor()` — no args"]
305 pub fn new() -> Self {
306 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
307 panic!(
308 "{}
309::{}
310 failed to instantiate",
311 ::core::stringify!(TransformAnimation),
312 ::core::stringify!(new),
313 )
314 });
315 <Self as ITransformAnimationMethods>::ctor(this);
316 this
317 }
318}
319
320#[cfg(feature = "app-transformanimation")]
321pub trait ITransformAnimation_AnimatorMethods: ITransformAnimation_Animator {
322 #[doc = "`.ctor(crate::app::transformanimation::TransformAnimation_Animation)` overload"]
323 fn ctor(self, animation: impl ::core::convert::Into<crate::app::transformanimation::TransformAnimation_Animation>) -> () {
324 unsafe {
325 let __receiver =
326 <TransformAnimation_Animator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f180usize)as*mut u8,();
328(TransformAnimation_Animator)__receiver,(crate::app::transformanimation::TransformAnimation_Animation)::core::convert::Into::into(animation))
329 }
330 }
331 #[doc = "`Commit()` overload"]
332 fn commit(self) -> () {
333 unsafe {
334 let __receiver =
335 <TransformAnimation_Animator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f350usize)as*mut u8,();
337(TransformAnimation_Animator)__receiver)
338 }
339 }
340 #[doc = "`Update(f32)` overload"]
341 fn update(self, delta_time: impl ::core::convert::Into<f32>) -> () {
342 unsafe {
343 let __receiver =
344 <TransformAnimation_Animator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f490usize)as*mut u8,();
346(TransformAnimation_Animator)__receiver,(f32)::core::convert::Into::into(delta_time))
347 }
348 }
349}
350
351#[cfg(feature = "app-transformanimation")]
352impl<__T: ITransformAnimation_Animator> ITransformAnimation_AnimatorMethods for __T {}
353
354#[cfg(feature = "app-transformanimation")]
355impl TransformAnimation_Animator {
356 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
358 }
359
360 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
362 }
363
364 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
366 }
367}
368
369#[cfg(feature = "app-transformanimation")]
370impl TransformAnimation_Animator {
371 #[doc = "`.ctor(crate::app::transformanimation::TransformAnimation_Animation)` — overload selector"]
372 pub fn new(animation: crate::app::transformanimation::TransformAnimation_Animation) -> Self {
373 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
374 panic!(
375 "{}
376::{}
377 failed to instantiate",
378 ::core::stringify!(TransformAnimation_Animator),
379 ::core::stringify!(new),
380 )
381 });
382 <Self as ITransformAnimation_AnimatorMethods>::ctor(this, animation);
383 this
384 }
385}
386
387#[cfg(feature = "app-transformanimation")]
388pub trait ITransformAnimation_AnimationMethods: ITransformAnimation_Animation {
389 #[doc = "`.ctor()` overload"]
390 fn ctor(self) -> () {
391 unsafe {
392 let __receiver =
393 <TransformAnimation_Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
394 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f0b0usize)as*mut u8,();
395(TransformAnimation_Animation)__receiver)
396 }
397 }
398 #[doc = "`CalcCycle()` overload"]
399 fn calc_cycle(self) -> f32 {
400 unsafe {
401 let __receiver =
402 <TransformAnimation_Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
403 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f110usize)as*mut u8,f32;
404(TransformAnimation_Animation)__receiver)
405 }
406 }
407 #[doc = "`CalcInverse()` overload"]
408 fn calc_inverse(self) -> f32 {
409 unsafe {
410 let __receiver =
411 <TransformAnimation_Animation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412 ::unity::il2cpp_call!((::unity::module_base()+0x1b3f140usize)as*mut u8,f32;
413(TransformAnimation_Animation)__receiver)
414 }
415 }
416}
417
418#[cfg(feature = "app-transformanimation")]
419impl<__T: ITransformAnimation_Animation> ITransformAnimation_AnimationMethods for __T {}
420
421#[cfg(feature = "app-transformanimation")]
422impl TransformAnimation_Animation {
423 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
425 }
426
427 pub fn calc_cycle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
429 }
430
431 pub fn calc_inverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
433 }
434}
435
436#[cfg(feature = "app-transformanimation")]
437impl TransformAnimation_Animation {
438 #[doc = "`.ctor()` — no args"]
439 pub fn new() -> Self {
440 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
441 panic!(
442 "{}
443::{}
444 failed to instantiate",
445 ::core::stringify!(TransformAnimation_Animation),
446 ::core::stringify!(new),
447 )
448 });
449 <Self as ITransformAnimation_AnimationMethods>::ctor(this);
450 this
451 }
452}
453
454#[cfg(feature = "app-transformanimation")]
455#[doc(hidden)]
456pub mod prelude {
457 pub use super::{
458 ITransformAnimation, ITransformAnimationMethods, ITransformAnimation_Animation, ITransformAnimation_AnimationMethods,
459 ITransformAnimation_Animator, ITransformAnimation_AnimatorMethods, ITransformAnimation_Animator_Node,
460 ITransformAnimation_Animator_NodeMethods, TransformAnimation, TransformAnimation_Actions, TransformAnimation_Animation,
461 TransformAnimation_Animator, TransformAnimation_Animator_Node, TransformAnimation_Kinds,
462 };
463 #[cfg(feature = "system-object")]
464 pub use crate::system::object::IObjectMethods;
465 #[cfg(feature = "system-enum")]
466 pub use crate::system::r#enum::IEnumMethods;
467 #[cfg(feature = "system-valuetype")]
468 pub use crate::system::valuetype::IValueTypeMethods;
469 #[cfg(feature = "unity_engine-behaviour")]
470 pub use crate::unity_engine::behaviour::IBehaviourMethods;
471 #[cfg(feature = "unity_engine-component")]
472 pub use crate::unity_engine::component::IComponentMethods;
473 #[cfg(feature = "unity_engine-monobehaviour")]
474 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
475 #[cfg(feature = "unity_engine-object_2")]
476 pub use crate::unity_engine::object_2::IObject_2Methods;
477 pub use crate::{
478 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
479 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
480 };
481}