Skip to main content

engage/generated/unity_engine/
humanposehandler.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-humanposehandler-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/unity_engine/humanposehandler/HumanPoseHandler.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "HumanPoseHandler")]
12    #[parent(crate::system::object::Object)]
13    pub struct HumanPoseHandler {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17    }
18}
19
20#[cfg(feature = "unity_engine-humanposehandler-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-humanposehandler")]
24impl HumanPoseHandler {
25    #[doc = "`Internal_CreateFromRoot(crate::unity_engine::avatar::Avatar, crate::unity_engine::transform::Transform)` overload"]
26    pub fn internal_create_from_root(
27        avatar: impl ::core::convert::Into<crate::unity_engine::avatar::Avatar>,
28        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
29    ) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x3eb9420usize)as*mut u8, ::unity::IntPtr;
32(crate::unity_engine::avatar::Avatar)::core::convert::Into::into(avatar),(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
33        }
34    }
35
36    #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
37    pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x3eb9470usize)as*mut u8,();
40(::unity::IntPtr)::core::convert::Into::into(ptr))
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-humanposehandler")]
46pub trait IHumanPoseHandlerMethods: IHumanPoseHandler {
47    #[doc = "`GetHumanPose(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::quaternion::Quaternion, ::unity::Array<f32>)` overload"]
48    fn get_human_pose(
49        self,
50        muscles: impl ::core::convert::Into<::unity::Array<f32>>,
51    ) -> (crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion) {
52        unsafe {
53            let __receiver = <HumanPoseHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
55            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::quaternion::Quaternion>::uninit();
56            ::unity::il2cpp_call!((::unity::module_base()+0x3eb94c0usize)as*mut u8,();
57(HumanPoseHandler)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::quaternion::Quaternion)__out_1.as_mut_ptr(),(::unity::Array<f32>)::core::convert::Into::into(muscles));
58            (__out_0.assume_init(), __out_1.assume_init())
59        }
60    }
61    #[doc = "`Dispose()` overload"]
62    fn dispose(self) -> () {
63        unsafe {
64            let __receiver = <HumanPoseHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        4usize,
75                        __vt.len(),
76                        <HumanPoseHandler as ::unity::ClassIdentity>::NAME,
77                        "Dispose",
78                    )
79                });
80                let __inner: extern "C" fn(HumanPoseHandler, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
81                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
82                __inner(__receiver, __mi)
83            }
84        }
85    }
86    #[doc = "`.ctor(crate::unity_engine::avatar::Avatar, crate::unity_engine::transform::Transform)` overload"]
87    fn ctor(
88        self,
89        avatar: impl ::core::convert::Into<crate::unity_engine::avatar::Avatar>,
90        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
91    ) -> () {
92        unsafe {
93            let __receiver = <HumanPoseHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x3eb95f0usize)as*mut u8,();
95(HumanPoseHandler)__receiver,(crate::unity_engine::avatar::Avatar)::core::convert::Into::into(avatar),(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
96        }
97    }
98    #[doc = "`GetHumanPose(*mutcrate::unity_engine::humanpose::HumanPose)` overload"]
99    fn get_human_pose_2(self) -> crate::unity_engine::humanpose::HumanPose {
100        unsafe {
101            let __receiver = <HumanPoseHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::humanpose::HumanPose>::uninit();
103            ::unity::il2cpp_call!((::unity::module_base()+0x3eb9810usize)as*mut u8,();
104(HumanPoseHandler)__receiver,(*mut crate::unity_engine::humanpose::HumanPose)__out_0.as_mut_ptr());
105            __out_0.assume_init()
106        }
107    }
108}
109
110#[cfg(feature = "unity_engine-humanposehandler")]
111impl<__T: IHumanPoseHandler> IHumanPoseHandlerMethods for __T {}
112
113#[cfg(feature = "unity_engine-humanposehandler")]
114impl HumanPoseHandler {
115    pub fn internal_create_from_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn get_human_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134
135    pub fn get_human_pose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137    }
138}
139
140#[cfg(feature = "unity_engine-humanposehandler")]
141impl HumanPoseHandler {
142    #[doc = "Direct (non-virtual) call to `HumanPoseHandler`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
143    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
144        let __mi = Self::dispose_method_info();
145        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
146        __inner(this.into(), ::core::option::Option::None)
147    }
148}
149
150#[cfg(feature = "unity_engine-humanposehandler")]
151impl HumanPoseHandler {
152    #[doc = "`.ctor(crate::unity_engine::avatar::Avatar, crate::unity_engine::transform::Transform)` — overload selector"]
153    pub fn new(avatar: crate::unity_engine::avatar::Avatar, root: crate::unity_engine::transform::Transform) -> Self {
154        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
155            panic!(
156                "{}
157::{}
158 failed to instantiate",
159                ::core::stringify!(HumanPoseHandler),
160                ::core::stringify!(new),
161            )
162        });
163        <Self as IHumanPoseHandlerMethods>::ctor(this, avatar, root);
164        this
165    }
166}
167
168#[cfg(feature = "unity_engine-humanposehandler")]
169#[doc(hidden)]
170pub mod prelude {
171    pub use super::{HumanPoseHandler, IHumanPoseHandler, IHumanPoseHandlerMethods};
172    pub use crate::system::object::IObject;
173    #[cfg(feature = "system-object")]
174    pub use crate::system::object::IObjectMethods;
175}