engage/generated/root_motion/final_ik/
ccdbendgoal.rs1#[cfg(feature = "root_motion-final_ik-ccdbendgoal-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/ccdbendgoal/CCDBendGoal.md"))]
19 #[::unity::class(namespace = "RootMotion.FinalIK", name = "CCDBendGoal")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CCDBendGoal {
22 #[offset(24)]
23 #[rename(name = "ik")]
24 pub ik: crate::root_motion::final_ik::ccdik::CCDIK,
25 #[offset(32)]
26 #[rename(name = "weight")]
27 pub weight: f32,
28 }
29}
30
31#[cfg(feature = "root_motion-final_ik-ccdbendgoal-types")]
32pub use __types::*;
33
34#[cfg(feature = "root_motion-final_ik-ccdbendgoal")]
35pub trait ICCDBendGoalMethods: ICCDBendGoal {
36 #[doc = "`Start()` overload"]
37 fn start(self) -> () {
38 unsafe {
39 let __receiver = <CCDBendGoal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x298c3b0usize)as*mut u8,();
41(CCDBendGoal)__receiver)
42 }
43 }
44 #[doc = "`BeforeIK()` overload"]
45 fn before_ik(self) -> () {
46 unsafe {
47 let __receiver = <CCDBendGoal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x298c480usize)as*mut u8,();
49(CCDBendGoal)__receiver)
50 }
51 }
52 #[doc = "`OnDestroy()` overload"]
53 fn on_destroy(self) -> () {
54 unsafe {
55 let __receiver = <CCDBendGoal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x298c660usize)as*mut u8,();
57(CCDBendGoal)__receiver)
58 }
59 }
60 #[doc = "`.ctor()` overload"]
61 fn ctor(self) -> () {
62 unsafe {
63 let __receiver = <CCDBendGoal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x298c790usize)as*mut u8,();
65(CCDBendGoal)__receiver)
66 }
67 }
68}
69
70#[cfg(feature = "root_motion-final_ik-ccdbendgoal")]
71impl<__T: ICCDBendGoal> ICCDBendGoalMethods for __T {}
72
73#[cfg(feature = "root_motion-final_ik-ccdbendgoal")]
74impl CCDBendGoal {
75 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77 }
78
79 pub fn before_ik_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81 }
82
83 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85 }
86
87 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
89 }
90}
91
92#[cfg(feature = "root_motion-final_ik-ccdbendgoal")]
93impl CCDBendGoal {
94 #[doc = "`.ctor()` — no args"]
95 pub fn new() -> Self {
96 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
97 panic!(
98 "{}
99::{}
100 failed to instantiate",
101 ::core::stringify!(CCDBendGoal),
102 ::core::stringify!(new),
103 )
104 });
105 <Self as ICCDBendGoalMethods>::ctor(this);
106 this
107 }
108}
109
110#[cfg(feature = "root_motion-final_ik-ccdbendgoal")]
111#[doc(hidden)]
112pub mod prelude {
113 pub use super::{CCDBendGoal, ICCDBendGoal, ICCDBendGoalMethods};
114 #[cfg(feature = "system-object")]
115 pub use crate::system::object::IObjectMethods;
116 #[cfg(feature = "unity_engine-behaviour")]
117 pub use crate::unity_engine::behaviour::IBehaviourMethods;
118 #[cfg(feature = "unity_engine-component")]
119 pub use crate::unity_engine::component::IComponentMethods;
120 #[cfg(feature = "unity_engine-monobehaviour")]
121 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
122 #[cfg(feature = "unity_engine-object_2")]
123 pub use crate::unity_engine::object_2::IObject_2Methods;
124 pub use crate::{
125 system::object::IObject,
126 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
127 };
128}