Skip to main content

engage/generated/unity_engine/
motion.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-motion-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::object_2::{IObject_2, Object_2},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/motion/Motion.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "Motion")]
15    #[parent(crate::unity_engine::object_2::Object_2)]
16    pub struct Motion {}
17}
18
19#[cfg(feature = "unity_engine-motion-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-motion")]
23pub trait IMotionMethods: IMotion {
24    #[doc = "`.ctor()` overload"]
25    fn ctor(self) -> () {
26        unsafe {
27            let __receiver = <Motion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x3eac380usize)as*mut u8,();
29(Motion)__receiver)
30        }
31    }
32    #[doc = "`get_isLooping()` overload"]
33    fn get_is_looping(self) -> bool {
34        unsafe {
35            let __receiver = <Motion as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x3eb9940usize)as*mut u8,bool;
37(Motion)__receiver)
38        }
39    }
40}
41
42#[cfg(feature = "unity_engine-motion")]
43impl<__T: IMotion> IMotionMethods for __T {}
44
45#[cfg(feature = "unity_engine-motion")]
46impl Motion {
47    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn get_is_looping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "unity_engine-motion")]
57impl Motion {
58    #[doc = "`.ctor()` — no args"]
59    pub fn new() -> Self {
60        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61            panic!(
62                "{}
63::{}
64 failed to instantiate",
65                ::core::stringify!(Motion),
66                ::core::stringify!(new),
67            )
68        });
69        <Self as IMotionMethods>::ctor(this);
70        this
71    }
72}
73
74#[cfg(feature = "unity_engine-motion")]
75#[doc(hidden)]
76pub mod prelude {
77    pub use super::{IMotion, IMotionMethods, Motion};
78    #[cfg(feature = "system-object")]
79    pub use crate::system::object::IObjectMethods;
80    #[cfg(feature = "unity_engine-object_2")]
81    pub use crate::unity_engine::object_2::IObject_2Methods;
82    pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
83}