engage/generated/root_motion/final_ik/
shoulderrotator.rs1#[cfg(feature = "root_motion-final_ik-shoulderrotator-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 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/shoulderrotator/ShoulderRotator.md"))]
19 #[::unity::class(namespace = "RootMotion.FinalIK", name = "ShoulderRotator")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct ShoulderRotator {
22 #[offset(24)]
23 #[rename(name = "weight")]
24 pub weight: f32,
25 #[offset(28)]
26 #[rename(name = "offset")]
27 pub offset: f32,
28 #[offset(32)]
29 #[rename(name = "ik")]
30 pub ik: crate::root_motion::final_ik::fullbodybipedik::FullBodyBipedIK,
31 #[offset(40)]
32 #[rename(name = "skip")]
33 pub skip: bool,
34 }
35}
36
37#[cfg(feature = "root_motion-final_ik-shoulderrotator-types")]
38pub use __types::*;
39
40#[cfg(feature = "root_motion-final_ik-shoulderrotator")]
41pub trait IShoulderRotatorMethods: IShoulderRotator {
42 #[doc = "`Start()` overload"]
43 fn start(self) -> () {
44 unsafe {
45 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x247bae0usize)as*mut u8,();
47(ShoulderRotator)__receiver)
48 }
49 }
50 #[doc = "`RotateShoulders()` overload"]
51 fn rotate_shoulders(self) -> () {
52 unsafe {
53 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x247bbe0usize)as*mut u8,();
55(ShoulderRotator)__receiver)
56 }
57 }
58 #[doc = "`RotateShoulder(crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain, f32, f32)` overload"]
59 fn rotate_shoulder(
60 self,
61 chain: impl ::core::convert::Into<crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain>,
62 weight: impl ::core::convert::Into<f32>,
63 offset: impl ::core::convert::Into<f32>,
64 ) -> () {
65 unsafe {
66 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x247bcc0usize)as*mut u8,();
68(ShoulderRotator)__receiver,(crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain)::core::convert::Into::into(chain),(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(offset))
69 }
70 }
71 #[doc = "`GetParentBoneMap(crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain)` overload"]
72 fn get_parent_bone_map(
73 self,
74 chain: impl ::core::convert::Into<crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain>,
75 ) -> crate::root_motion::final_ik::ikmapping::IKMapping_BoneMap {
76 unsafe {
77 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x247bfa0usize)as*mut u8,crate::root_motion::final_ik::ikmapping::IKMapping_BoneMap;
79(ShoulderRotator)__receiver,(crate::root_motion::final_ik::fullbodybipedchain::FullBodyBipedChain)::core::convert::Into::into(chain))
80 }
81 }
82 #[doc = "`OnDestroy()` overload"]
83 fn on_destroy(self) -> () {
84 unsafe {
85 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x247bfd0usize)as*mut u8,();
87(ShoulderRotator)__receiver)
88 }
89 }
90 #[doc = "`.ctor()` overload"]
91 fn ctor(self) -> () {
92 unsafe {
93 let __receiver = <ShoulderRotator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x247c100usize)as*mut u8,();
95(ShoulderRotator)__receiver)
96 }
97 }
98}
99
100#[cfg(feature = "root_motion-final_ik-shoulderrotator")]
101impl<__T: IShoulderRotator> IShoulderRotatorMethods for __T {}
102
103#[cfg(feature = "root_motion-final_ik-shoulderrotator")]
104impl ShoulderRotator {
105 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107 }
108
109 pub fn rotate_shoulders_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111 }
112
113 pub fn rotate_shoulder_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115 }
116
117 pub fn get_parent_bone_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119 }
120
121 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123 }
124
125 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
127 }
128}
129
130#[cfg(feature = "root_motion-final_ik-shoulderrotator")]
131impl ShoulderRotator {
132 #[doc = "`.ctor()` — no args"]
133 pub fn new() -> Self {
134 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
135 panic!(
136 "{}
137::{}
138 failed to instantiate",
139 ::core::stringify!(ShoulderRotator),
140 ::core::stringify!(new),
141 )
142 });
143 <Self as IShoulderRotatorMethods>::ctor(this);
144 this
145 }
146}
147
148#[cfg(feature = "root_motion-final_ik-shoulderrotator")]
149#[doc(hidden)]
150pub mod prelude {
151 pub use super::{IShoulderRotator, IShoulderRotatorMethods, ShoulderRotator};
152 #[cfg(feature = "system-object")]
153 pub use crate::system::object::IObjectMethods;
154 #[cfg(feature = "unity_engine-behaviour")]
155 pub use crate::unity_engine::behaviour::IBehaviourMethods;
156 #[cfg(feature = "unity_engine-component")]
157 pub use crate::unity_engine::component::IComponentMethods;
158 #[cfg(feature = "unity_engine-monobehaviour")]
159 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
160 #[cfg(feature = "unity_engine-object_2")]
161 pub use crate::unity_engine::object_2::IObject_2Methods;
162 pub use crate::{
163 system::object::IObject,
164 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
165 };
166}