Skip to main content

engage/generated/root_motion/
avatarutility.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-avatarutility-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/avatarutility/AvatarUtility.md"))]
11    #[::unity::class(namespace = "RootMotion", name = "AvatarUtility")]
12    #[parent(crate::system::object::Object)]
13    pub struct AvatarUtility {}
14}
15
16#[cfg(feature = "root_motion-avatarutility-types")]
17pub use __types::*;
18
19#[cfg(feature = "root_motion-avatarutility")]
20impl AvatarUtility {
21    #[doc = "`GetPostRotation(crate::unity_engine::avatar::Avatar, crate::unity_engine::avatarikgoal::AvatarIKGoal)` overload"]
22    pub fn get_post_rotation(
23        avatar: impl ::core::convert::Into<crate::unity_engine::avatar::Avatar>,
24        avatar_ik_goal: impl ::core::convert::Into<crate::unity_engine::avatarikgoal::AvatarIKGoal>,
25    ) -> crate::unity_engine::quaternion::Quaternion {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x2120930usize)as*mut u8,crate::unity_engine::quaternion::Quaternion;
28(crate::unity_engine::avatar::Avatar)::core::convert::Into::into(avatar),(crate::unity_engine::avatarikgoal::AvatarIKGoal)::core::convert::Into::into(avatar_ik_goal))
29        }
30    }
31
32    #[doc = "`GetIKGoalTQ(crate::unity_engine::avatar::Avatar, f32, crate::unity_engine::avatarikgoal::AvatarIKGoal, crate::root_motion::tq::TQ, crate::root_motion::tq::TQ)` overload"]
33    pub fn get_ik_goal_tq(
34        avatar: impl ::core::convert::Into<crate::unity_engine::avatar::Avatar>,
35        human_scale: impl ::core::convert::Into<f32>,
36        avatar_ik_goal: impl ::core::convert::Into<crate::unity_engine::avatarikgoal::AvatarIKGoal>,
37        body_position_rotation: impl ::core::convert::Into<crate::root_motion::tq::TQ>,
38        bone_tq: impl ::core::convert::Into<crate::root_motion::tq::TQ>,
39    ) -> crate::root_motion::tq::TQ {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x2120b90usize)as*mut u8,crate::root_motion::tq::TQ;
42(crate::unity_engine::avatar::Avatar)::core::convert::Into::into(avatar),(f32)::core::convert::Into::into(human_scale),(crate::unity_engine::avatarikgoal::AvatarIKGoal)::core::convert::Into::into(avatar_ik_goal),(crate::root_motion::tq::TQ)::core::convert::Into::into(body_position_rotation),(crate::root_motion::tq::TQ)::core::convert::Into::into(bone_tq))
43        }
44    }
45
46    #[doc = "`HumanIDFromAvatarIKGoal(crate::unity_engine::avatarikgoal::AvatarIKGoal)` overload"]
47    pub fn human_id_from_avatar_ik_goal(
48        avatar_ik_goal: impl ::core::convert::Into<crate::unity_engine::avatarikgoal::AvatarIKGoal>,
49    ) -> crate::unity_engine::humanbodybones::HumanBodyBones {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2120b70usize)as*mut u8,crate::unity_engine::humanbodybones::HumanBodyBones;
52(crate::unity_engine::avatarikgoal::AvatarIKGoal)::core::convert::Into::into(avatar_ik_goal))
53        }
54    }
55}
56
57#[cfg(feature = "root_motion-avatarutility")]
58pub trait IAvatarUtilityMethods: IAvatarUtility {
59    #[doc = "`.ctor()` overload"]
60    fn ctor(self) -> () {
61        unsafe {
62            let __receiver = <AvatarUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2121140usize)as*mut u8,();
64(AvatarUtility)__receiver)
65        }
66    }
67}
68
69#[cfg(feature = "root_motion-avatarutility")]
70impl<__T: IAvatarUtility> IAvatarUtilityMethods for __T {}
71
72#[cfg(feature = "root_motion-avatarutility")]
73impl AvatarUtility {
74    pub fn get_post_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
76    }
77
78    pub fn get_ik_goal_tq_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
80    }
81
82    pub fn human_id_from_avatar_ik_goal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
84    }
85
86    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
88    }
89}
90
91#[cfg(feature = "root_motion-avatarutility")]
92impl AvatarUtility {
93    #[doc = "`.ctor()` — no args"]
94    pub fn new() -> Self {
95        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
96            panic!(
97                "{}
98::{}
99 failed to instantiate",
100                ::core::stringify!(AvatarUtility),
101                ::core::stringify!(new),
102            )
103        });
104        <Self as IAvatarUtilityMethods>::ctor(this);
105        this
106    }
107}
108
109#[cfg(feature = "root_motion-avatarutility")]
110#[doc(hidden)]
111pub mod prelude {
112    pub use super::{AvatarUtility, IAvatarUtility, IAvatarUtilityMethods};
113    pub use crate::system::object::IObject;
114    #[cfg(feature = "system-object")]
115    pub use crate::system::object::IObjectMethods;
116}