Skip to main content

engage/generated/root_motion/final_ik/
offsetpose.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-offsetpose-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/offsetpose/OffsetPose.md"))]
19    #[::unity::class(namespace = "RootMotion.FinalIK", name = "OffsetPose")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct OffsetPose {
22        #[offset(24)]
23        #[rename(name = "effectorLinks")]
24        pub effector_links: ::unity::Array<crate::root_motion::final_ik::offsetpose::OffsetPose_EffectorLink>,
25    }
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/offsetpose/OffsetPose_EffectorLink.md"))]
28    #[::unity::class(namespace = "RootMotion.FinalIK", name = "OffsetPose.EffectorLink")]
29    #[parent(crate::system::object::Object)]
30    pub struct OffsetPose_EffectorLink {
31        #[offset(16)]
32        #[rename(name = "effector")]
33        pub effector: crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector,
34        #[offset(20)]
35        #[rename(name = "offset")]
36        pub offset: crate::unity_engine::vector3::Vector3,
37        #[offset(32)]
38        #[rename(name = "pin")]
39        pub pin: crate::unity_engine::vector3::Vector3,
40        #[offset(44)]
41        #[rename(name = "pinWeight")]
42        pub pin_weight: crate::unity_engine::vector3::Vector3,
43    }
44}
45
46#[cfg(feature = "root_motion-final_ik-offsetpose-types")]
47pub use __types::*;
48
49#[cfg(feature = "root_motion-final_ik-offsetpose")]
50pub trait IOffsetPoseMethods: IOffsetPose {
51    #[doc = "`Apply(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped, f32)` overload"]
52    fn apply(
53        self,
54        solver: impl ::core::convert::Into<crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped>,
55        weight: impl ::core::convert::Into<f32>,
56    ) -> () {
57        unsafe {
58            let __receiver = <OffsetPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1f21bb0usize)as*mut u8,();
60(OffsetPose)__receiver,(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped)::core::convert::Into::into(solver),(f32)::core::convert::Into::into(weight))
61        }
62    }
63    #[doc = "`Apply(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped, f32, crate::unity_engine::quaternion::Quaternion)` overload"]
64    fn apply_2(
65        self,
66        solver: impl ::core::convert::Into<crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped>,
67        weight: impl ::core::convert::Into<f32>,
68        rotation: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
69    ) -> () {
70        unsafe {
71            let __receiver = <OffsetPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x1f21c70usize)as*mut u8,();
73(OffsetPose)__receiver,(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped)::core::convert::Into::into(solver),(f32)::core::convert::Into::into(weight),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(rotation))
74        }
75    }
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <OffsetPose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x1f21d30usize)as*mut u8,();
81(OffsetPose)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "root_motion-final_ik-offsetpose")]
87impl<__T: IOffsetPose> IOffsetPoseMethods for __T {}
88
89#[cfg(feature = "root_motion-final_ik-offsetpose")]
90impl OffsetPose {
91    pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn apply_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102}
103
104#[cfg(feature = "root_motion-final_ik-offsetpose")]
105impl OffsetPose {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(OffsetPose),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as IOffsetPoseMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "root_motion-final_ik-offsetpose")]
123pub trait IOffsetPose_EffectorLinkMethods: IOffsetPose_EffectorLink {
124    #[doc = "`Apply(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped, f32, crate::unity_engine::quaternion::Quaternion)` overload"]
125    fn apply(
126        self,
127        solver: impl ::core::convert::Into<crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped>,
128        weight: impl ::core::convert::Into<f32>,
129        rotation: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
130    ) -> () {
131        unsafe {
132            let __receiver =
133                <OffsetPose_EffectorLink as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x22607a0usize)as*mut u8,();
135(OffsetPose_EffectorLink)__receiver,(crate::root_motion::final_ik::iksolverfullbodybiped::IKSolverFullBodyBiped)::core::convert::Into::into(solver),(f32)::core::convert::Into::into(weight),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(rotation))
136        }
137    }
138    #[doc = "`.ctor()` overload"]
139    fn ctor(self) -> () {
140        unsafe {
141            let __receiver =
142                <OffsetPose_EffectorLink as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2260970usize)as*mut u8,();
144(OffsetPose_EffectorLink)__receiver)
145        }
146    }
147}
148
149#[cfg(feature = "root_motion-final_ik-offsetpose")]
150impl<__T: IOffsetPose_EffectorLink> IOffsetPose_EffectorLinkMethods for __T {}
151
152#[cfg(feature = "root_motion-final_ik-offsetpose")]
153impl OffsetPose_EffectorLink {
154    pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161}
162
163#[cfg(feature = "root_motion-final_ik-offsetpose")]
164impl OffsetPose_EffectorLink {
165    #[doc = "`.ctor()` — no args"]
166    pub fn new() -> Self {
167        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168            panic!(
169                "{}
170::{}
171 failed to instantiate",
172                ::core::stringify!(OffsetPose_EffectorLink),
173                ::core::stringify!(new),
174            )
175        });
176        <Self as IOffsetPose_EffectorLinkMethods>::ctor(this);
177        this
178    }
179}
180
181#[cfg(feature = "root_motion-final_ik-offsetpose")]
182#[doc(hidden)]
183pub mod prelude {
184    pub use super::{
185        IOffsetPose, IOffsetPoseMethods, IOffsetPose_EffectorLink, IOffsetPose_EffectorLinkMethods, OffsetPose, OffsetPose_EffectorLink,
186    };
187    #[cfg(feature = "system-object")]
188    pub use crate::system::object::IObjectMethods;
189    #[cfg(feature = "unity_engine-behaviour")]
190    pub use crate::unity_engine::behaviour::IBehaviourMethods;
191    #[cfg(feature = "unity_engine-component")]
192    pub use crate::unity_engine::component::IComponentMethods;
193    #[cfg(feature = "unity_engine-monobehaviour")]
194    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
195    #[cfg(feature = "unity_engine-object_2")]
196    pub use crate::unity_engine::object_2::IObject_2Methods;
197    pub use crate::{
198        system::object::IObject,
199        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
200    };
201}