Skip to main content

engage/generated/root_motion/final_ik/
editorikpose.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-editorikpose-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            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/editorikpose/EditorIKPose.md"))]
17    #[::unity::class(namespace = "RootMotion.FinalIK", name = "EditorIKPose")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct EditorIKPose {
20        #[offset(24)]
21        #[rename(name = "localPositions")]
22        pub local_positions: ::unity::Array<crate::unity_engine::vector3::Vector3>,
23        #[offset(32)]
24        #[rename(name = "localRotations")]
25        pub local_rotations: ::unity::Array<crate::unity_engine::quaternion::Quaternion>,
26    }
27}
28
29#[cfg(feature = "root_motion-final_ik-editorikpose-types")]
30pub use __types::*;
31
32#[cfg(feature = "root_motion-final_ik-editorikpose")]
33pub trait IEditorIKPoseMethods: IEditorIKPose {
34    #[doc = "`get_poseStored()` overload"]
35    fn get_pose_stored(self) -> bool {
36        unsafe {
37            let __receiver = <EditorIKPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x22d6230usize)as*mut u8,bool;
39(EditorIKPose)__receiver)
40        }
41    }
42    #[doc = "`Store(::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
43    fn store(self, t: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>) -> () {
44        unsafe {
45            let __receiver = <EditorIKPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x22d6510usize)as*mut u8,();
47(EditorIKPose)__receiver,(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(t))
48        }
49    }
50    #[doc = "`Restore(::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
51    fn restore(self, t: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>) -> bool {
52        unsafe {
53            let __receiver = <EditorIKPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x22d6250usize)as*mut u8,bool;
55(EditorIKPose)__receiver,(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(t))
56        }
57    }
58    #[doc = "`.ctor()` overload"]
59    fn ctor(self) -> () {
60        unsafe {
61            let __receiver = <EditorIKPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x22d6ae0usize)as*mut u8,();
63(EditorIKPose)__receiver)
64        }
65    }
66}
67
68#[cfg(feature = "root_motion-final_ik-editorikpose")]
69impl<__T: IEditorIKPose> IEditorIKPoseMethods for __T {}
70
71#[cfg(feature = "root_motion-final_ik-editorikpose")]
72impl EditorIKPose {
73    pub fn get_pose_stored_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
75    }
76
77    pub fn store_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
79    }
80
81    pub fn restore_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
83    }
84
85    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
87    }
88}
89
90#[cfg(feature = "root_motion-final_ik-editorikpose")]
91impl EditorIKPose {
92    #[doc = "`.ctor()` — no args"]
93    pub fn new() -> Self {
94        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
95            panic!(
96                "{}
97::{}
98 failed to instantiate",
99                ::core::stringify!(EditorIKPose),
100                ::core::stringify!(new),
101            )
102        });
103        <Self as IEditorIKPoseMethods>::ctor(this);
104        this
105    }
106}
107
108#[cfg(feature = "root_motion-final_ik-editorikpose")]
109#[doc(hidden)]
110pub mod prelude {
111    pub use super::{EditorIKPose, IEditorIKPose, IEditorIKPoseMethods};
112    #[cfg(feature = "system-object")]
113    pub use crate::system::object::IObjectMethods;
114    #[cfg(feature = "unity_engine-object_2")]
115    pub use crate::unity_engine::object_2::IObject_2Methods;
116    #[cfg(feature = "unity_engine-scriptableobject")]
117    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
118    pub use crate::{
119        system::object::IObject,
120        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
121    };
122}