Skip to main content

engage/generated/root_motion/final_ik/
interactionlookat.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-interactionlookat-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/final_ik/interactionlookat/InteractionLookAt.md"))]
11    #[::unity::class(namespace = "RootMotion.FinalIK", name = "InteractionLookAt")]
12    #[parent(crate::system::object::Object)]
13    pub struct InteractionLookAt {
14        #[offset(16)]
15        #[rename(name = "ik")]
16        pub ik: crate::root_motion::final_ik::lookatik::LookAtIK,
17        #[offset(24)]
18        #[rename(name = "lerpSpeed")]
19        pub lerp_speed: f32,
20        #[offset(28)]
21        #[rename(name = "weightSpeed")]
22        pub weight_speed: f32,
23        #[offset(32)]
24        #[rename(name = "isPaused")]
25        pub is_paused: bool,
26        #[offset(40)]
27        #[rename(name = "lookAtTarget")]
28        pub look_at_target: crate::unity_engine::transform::Transform,
29        #[offset(48)]
30        #[rename(name = "stopLookTime")]
31        pub stop_look_time: f32,
32        #[offset(52)]
33        #[rename(name = "weight")]
34        pub weight: f32,
35        #[offset(56)]
36        #[rename(name = "firstFBBIKSolve")]
37        pub first_fbbik_solve: bool,
38    }
39}
40
41#[cfg(feature = "root_motion-final_ik-interactionlookat-types")]
42pub use __types::*;
43
44#[cfg(feature = "root_motion-final_ik-interactionlookat")]
45pub trait IInteractionLookAtMethods: IInteractionLookAt {
46    #[doc = "`Look(crate::unity_engine::transform::Transform, f32)` overload"]
47    fn look(self, target: impl ::core::convert::Into<crate::unity_engine::transform::Transform>, time: impl ::core::convert::Into<f32>) -> () {
48        unsafe {
49            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x291aa90usize)as*mut u8,();
51(InteractionLookAt)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(target),(f32)::core::convert::Into::into(time))
52        }
53    }
54    #[doc = "`OnFixTransforms()` overload"]
55    fn on_fix_transforms(self) -> () {
56        unsafe {
57            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x291aba0usize)as*mut u8,();
59(InteractionLookAt)__receiver)
60        }
61    }
62    #[doc = "`Update()` overload"]
63    fn update(self) -> () {
64        unsafe {
65            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x291ac50usize)as*mut u8,();
67(InteractionLookAt)__receiver)
68        }
69    }
70    #[doc = "`SolveSpine()` overload"]
71    fn solve_spine(self) -> () {
72        unsafe {
73            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x291ae50usize)as*mut u8,();
75(InteractionLookAt)__receiver)
76        }
77    }
78    #[doc = "`SolveHead()` overload"]
79    fn solve_head(self) -> () {
80        unsafe {
81            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x291af20usize)as*mut u8,();
83(InteractionLookAt)__receiver)
84        }
85    }
86    #[doc = "`.ctor()` overload"]
87    fn ctor(self) -> () {
88        unsafe {
89            let __receiver = <InteractionLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x291afe0usize)as*mut u8,();
91(InteractionLookAt)__receiver)
92        }
93    }
94}
95
96#[cfg(feature = "root_motion-final_ik-interactionlookat")]
97impl<__T: IInteractionLookAt> IInteractionLookAtMethods for __T {}
98
99#[cfg(feature = "root_motion-final_ik-interactionlookat")]
100impl InteractionLookAt {
101    pub fn look_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104
105    pub fn on_fix_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107    }
108
109    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111    }
112
113    pub fn solve_spine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
115    }
116
117    pub fn solve_head_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
119    }
120
121    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
123    }
124}
125
126#[cfg(feature = "root_motion-final_ik-interactionlookat")]
127impl InteractionLookAt {
128    #[doc = "`.ctor()` — no args"]
129    pub fn new() -> Self {
130        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131            panic!(
132                "{}
133::{}
134 failed to instantiate",
135                ::core::stringify!(InteractionLookAt),
136                ::core::stringify!(new),
137            )
138        });
139        <Self as IInteractionLookAtMethods>::ctor(this);
140        this
141    }
142}
143
144#[cfg(feature = "root_motion-final_ik-interactionlookat")]
145#[doc(hidden)]
146pub mod prelude {
147    pub use super::{IInteractionLookAt, IInteractionLookAtMethods, InteractionLookAt};
148    pub use crate::system::object::IObject;
149    #[cfg(feature = "system-object")]
150    pub use crate::system::object::IObjectMethods;
151}