Skip to main content

engage/generated/root_motion/
tq.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-tq-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/tq/TQ.md"))]
11    #[::unity::class(namespace = "RootMotion", name = "TQ")]
12    #[parent(crate::system::object::Object)]
13    pub struct TQ {
14        #[offset(16)]
15        #[rename(name = "t")]
16        pub t: crate::unity_engine::vector3::Vector3,
17        #[offset(28)]
18        #[rename(name = "q")]
19        pub q: crate::unity_engine::quaternion::Quaternion,
20    }
21}
22
23#[cfg(feature = "root_motion-tq-types")]
24pub use __types::*;
25
26#[cfg(feature = "root_motion-tq")]
27pub trait ITQMethods: ITQ {
28    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion)` overload"]
29    fn ctor(
30        self,
31        translation: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
32        rotation: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
33    ) -> () {
34        unsafe {
35            let __receiver = <TQ as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x20b76a0usize)as*mut u8,();
37(TQ)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(translation),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(rotation))
38        }
39    }
40}
41
42#[cfg(feature = "root_motion-tq")]
43impl<__T: ITQ> ITQMethods for __T {}
44
45#[cfg(feature = "root_motion-tq")]
46impl TQ {
47    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50}
51
52#[cfg(feature = "root_motion-tq")]
53impl TQ {
54    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion)` — overload selector"]
55    pub fn new(translation: crate::unity_engine::vector3::Vector3, rotation: crate::unity_engine::quaternion::Quaternion) -> Self {
56        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
57            panic!(
58                "{}
59::{}
60 failed to instantiate",
61                ::core::stringify!(TQ),
62                ::core::stringify!(new),
63            )
64        });
65        <Self as ITQMethods>::ctor(this, translation, rotation);
66        this
67    }
68}
69
70#[cfg(feature = "root_motion-tq")]
71#[doc(hidden)]
72pub mod prelude {
73    pub use super::{ITQMethods, ITQ, TQ};
74    pub use crate::system::object::IObject;
75    #[cfg(feature = "system-object")]
76    pub use crate::system::object::IObjectMethods;
77}