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