1#[cfg(feature = "combat-puppet-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/puppet/Puppet.md"))]
15 #[::unity::class(namespace = "Combat", name = "Puppet")]
16 #[parent(crate::system::object::Object)]
17 pub struct Puppet {
18 #[offset(16)]
19 #[rename(name = "m_BodyInst")]
20 pub m_body_inst: crate::unity_engine::gameobject::GameObject,
21 #[offset(24)]
22 #[rename(name = "m_RideInst")]
23 pub m_ride_inst: crate::unity_engine::gameobject::GameObject,
24 #[offset(32)]
25 #[rename(name = "m_BodyAnim")]
26 pub m_body_anim: crate::unity_engine::animationclip::AnimationClip,
27 #[offset(40)]
28 #[rename(name = "m_RideAnim")]
29 pub m_ride_anim: crate::unity_engine::animationclip::AnimationClip,
30 #[offset(48)]
31 #[rename(name = "m_Joint")]
32 pub m_joint: crate::combat::characterjoint::CharacterJoint,
33 #[offset(56)]
34 #[rename(name = "m_Proportion")]
35 pub m_proportion: crate::combat::proportionparameters::ProportionParameters,
36 #[offset(64)]
37 #[rename(name = "m_InitialTransform")]
38 pub m_initial_transform: crate::combat::tr::TR,
39 #[offset(92)]
40 #[rename(name = "m_LastEvalTime")]
41 pub m_last_eval_time: f32,
42 #[offset(96)]
43 #[rename(name = "m_DestroyableGOs")]
44 pub m_destroyable_g_os: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
45 #[offset(104)]
46 #[rename(name = "m_trailSlots")]
47 pub m_trail_slots: ::unity::Array<crate::unity_engine::transform::Transform>,
48 }
49
50 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/puppet/Puppet_Hand.md"))]
51 #[repr(C)]
52 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
53 pub struct Puppet_Hand {
54 pub value: i32,
55 }
56 impl ::unity::ClassIdentity for Puppet_Hand {
57 const NAME: &'static str = "Puppet.Hand";
58 const NAMESPACE: &'static str = "Combat";
59
60 fn class() -> ::unity::Class {
61 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
62 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
63 }
64 }
65 impl ::unity::IlType for Puppet_Hand {
66 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
67 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
68 }
69 }
70 impl Puppet_Hand {
71 pub fn right() -> Self {
72 Self { value: 0 }
73 }
74
75 pub fn left() -> Self {
76 Self { value: 1 }
77 }
78 }
79}
80
81#[cfg(feature = "combat-puppet-types")]
82pub use __types::*;
83
84#[cfg(feature = "combat-puppet")]
85pub trait IPuppetMethods: IPuppet {
86 #[doc = "`get_RightRoot()` overload"]
87 fn get_right_root(self) -> crate::unity_engine::transform::Transform {
88 unsafe {
89 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x2c0a970usize)as*mut u8,crate::unity_engine::transform::Transform;
91(Puppet)__receiver)
92 }
93 }
94 #[doc = "`get_RightTip()` overload"]
95 fn get_right_tip(self) -> crate::unity_engine::transform::Transform {
96 unsafe {
97 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x2c0a9a0usize)as*mut u8,crate::unity_engine::transform::Transform;
99(Puppet)__receiver)
100 }
101 }
102 #[doc = "`get_LeftRoot()` overload"]
103 fn get_left_root(self) -> crate::unity_engine::transform::Transform {
104 unsafe {
105 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x2c0a9d0usize)as*mut u8,crate::unity_engine::transform::Transform;
107(Puppet)__receiver)
108 }
109 }
110 #[doc = "`get_LeftTip()` overload"]
111 fn get_left_tip(self) -> crate::unity_engine::transform::Transform {
112 unsafe {
113 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aa00usize)as*mut u8,crate::unity_engine::transform::Transform;
115(Puppet)__receiver)
116 }
117 }
118 #[doc = "`get_HumanAnimationClip()` overload"]
119 fn get_human_animation_clip(self) -> crate::unity_engine::animationclip::AnimationClip {
120 unsafe {
121 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aa30usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
123(Puppet)__receiver)
124 }
125 }
126 #[doc = "`get_RideAnimationClip()` overload"]
127 fn get_ride_animation_clip(self) -> crate::unity_engine::animationclip::AnimationClip {
128 unsafe {
129 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aa40usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
131(Puppet)__receiver)
132 }
133 }
134 #[doc = "`get_HumanGameObject()` overload"]
135 fn get_human_game_object(self) -> crate::unity_engine::gameobject::GameObject {
136 unsafe {
137 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aa50usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
139(Puppet)__receiver)
140 }
141 }
142 #[doc = "`get_BaseGameObject()` overload"]
143 fn get_base_game_object(self) -> crate::unity_engine::gameobject::GameObject {
144 unsafe {
145 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aa60usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
147(Puppet)__receiver)
148 }
149 }
150 #[doc = "`get_RootTransform()` overload"]
151 fn get_root_transform(self) -> crate::unity_engine::transform::Transform {
152 unsafe {
153 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aaf0usize)as*mut u8,crate::unity_engine::transform::Transform;
155(Puppet)__receiver)
156 }
157 }
158 #[doc = "`get_Item(::unity::Il2CppString)` overload"]
159 fn get_item(self, joint_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::transform::Transform {
160 unsafe {
161 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x2c0ad00usize)as*mut u8,crate::unity_engine::transform::Transform;
163(Puppet)__receiver,(::unity::Il2CppString)::core::convert::Into::into(joint_name))
164 }
165 }
166 #[doc = "`get_IsRiding()` overload"]
167 fn get_is_riding(self) -> bool {
168 unsafe {
169 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x2c0ac80usize)as*mut u8,bool;
171(Puppet)__receiver)
172 }
173 }
174 #[doc = "`get_IsFlying()` overload"]
175 fn get_is_flying(self) -> bool {
176 unsafe {
177 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x2c0aed0usize)as*mut u8,bool;
179(Puppet)__receiver)
180 }
181 }
182 #[doc = "`get_IsHorse()` overload"]
183 fn get_is_horse(self) -> bool {
184 unsafe {
185 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x2c0af00usize)as*mut u8,bool;
187(Puppet)__receiver)
188 }
189 }
190 #[doc = "`get_IsValid()` overload"]
191 fn get_is_valid(self) -> bool {
192 unsafe {
193 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x2c0afb0usize)as*mut u8,bool;
195(Puppet)__receiver)
196 }
197 }
198 #[doc = "`set_IsValid(bool)` overload"]
199 fn set_is_valid(self, value: impl ::core::convert::Into<bool>) -> () {
200 unsafe {
201 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x2c0afc0usize)as*mut u8,();
203(Puppet)__receiver,(bool)::core::convert::Into::into(value))
204 }
205 }
206 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, crate::unity_engine::animationclip::AnimationClip, crate::unity_engine::gameobject::GameObject, crate::unity_engine::animationclip::AnimationClip)` overload"]
207 fn ctor(
208 self,
209 body_inst: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
210 body_anim: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
211 ride_inst: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
212 ride_anim: impl ::core::convert::Into<crate::unity_engine::animationclip::AnimationClip>,
213 ) -> () {
214 unsafe {
215 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x2c0afd0usize)as*mut u8,();
217(Puppet)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(body_inst),(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(body_anim),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(ride_inst),(crate::unity_engine::animationclip::AnimationClip)::core::convert::Into::into(ride_anim))
218 }
219 }
220 #[doc = "`CreateWeaponTrailSlots()` overload"]
221 fn create_weapon_trail_slots(self) -> () {
222 unsafe {
223 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x2c0b490usize)as*mut u8,();
225(Puppet)__receiver)
226 }
227 }
228 #[doc = "`CreateSlot(crate::unity_engine::transform::Transform, crate::unity_engine::vector3::Vector3, ::unity::Il2CppString)` overload"]
229 fn create_slot(
230 self,
231 parent: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
232 offset: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
233 name: impl ::core::convert::Into<::unity::Il2CppString>,
234 ) -> crate::unity_engine::transform::Transform {
235 unsafe {
236 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x2c0b8e0usize)as*mut u8,crate::unity_engine::transform::Transform;
238(Puppet)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(parent),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(offset),(::unity::Il2CppString)::core::convert::Into::into(name))
239 }
240 }
241 #[doc = "`Dispose()` overload"]
242 fn dispose(self) -> () {
243 unsafe {
244 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 {
246 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
247 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
248 panic!(
249 "unity: virtual slot {}
250 out of range (vtable len {}
251) on the runtime class behind {}
252 (method `{}
253`)",
254 4usize,
255 __vt.len(),
256 <Puppet as ::unity::ClassIdentity>::NAME,
257 "Dispose",
258 )
259 });
260 let __inner: extern "C" fn(Puppet, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
261 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
262 __inner(__receiver, __mi)
263 }
264 }
265 }
266 #[doc = "`Evaluate(f32)` overload"]
267 fn evaluate(self, time: impl ::core::convert::Into<f32>) -> () {
268 unsafe {
269 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!((::unity::module_base()+0x2c0bc20usize)as*mut u8,();
271(Puppet)__receiver,(f32)::core::convert::Into::into(time))
272 }
273 }
274 #[doc = "`ClearRootMovedAfterEvaluate()` overload"]
275 fn clear_root_moved_after_evaluate(self) -> () {
276 unsafe {
277 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278 ::unity::il2cpp_call!((::unity::module_base()+0x2c0bcf0usize)as*mut u8,();
279(Puppet)__receiver)
280 }
281 }
282 #[doc = "`AddDestroyableGOs(::unity::Array<crate::unity_engine::gameobject::GameObject>)` overload"]
283 fn add_destroyable_g_os(self, gos: impl ::core::convert::Into<::unity::Array<crate::unity_engine::gameobject::GameObject>>) -> () {
284 unsafe {
285 let __receiver = <Puppet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286 ::unity::il2cpp_call!((::unity::module_base()+0x2c0bd20usize)as*mut u8,();
287(Puppet)__receiver,(::unity::Array<crate::unity_engine::gameobject::GameObject>)::core::convert::Into::into(gos))
288 }
289 }
290}
291
292#[cfg(feature = "combat-puppet")]
293impl<__T: IPuppet> IPuppetMethods for __T {}
294
295#[cfg(feature = "combat-puppet")]
296impl Puppet {
297 pub fn get_right_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
299 }
300
301 pub fn get_right_tip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
303 }
304
305 pub fn get_left_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
307 }
308
309 pub fn get_left_tip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
311 }
312
313 pub fn get_human_animation_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
315 }
316
317 pub fn get_ride_animation_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
319 }
320
321 pub fn get_human_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
323 }
324
325 pub fn get_base_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
327 }
328
329 pub fn get_root_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
331 }
332
333 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
335 }
336
337 pub fn get_is_riding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
339 }
340
341 pub fn get_is_flying_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
343 }
344
345 pub fn get_is_horse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
347 }
348
349 pub fn get_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
351 }
352
353 pub fn set_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
355 }
356
357 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
359 }
360
361 pub fn create_weapon_trail_slots_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
363 }
364
365 pub fn create_slot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
367 }
368
369 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
371 }
372
373 pub fn evaluate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
375 }
376
377 pub fn clear_root_moved_after_evaluate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
379 }
380
381 pub fn add_destroyable_g_os_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
383 }
384}
385
386#[cfg(feature = "combat-puppet")]
387impl Puppet {
388 #[doc = "Direct (non-virtual) call to `Puppet`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
389 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
390 let __mi = Self::dispose_method_info();
391 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
392 __inner(this.into(), ::core::option::Option::None)
393 }
394}
395
396#[cfg(feature = "combat-puppet")]
397impl Puppet {
398 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, crate::unity_engine::animationclip::AnimationClip, crate::unity_engine::gameobject::GameObject, crate::unity_engine::animationclip::AnimationClip)` — overload selector"]
399 pub fn new(
400 body_inst: crate::unity_engine::gameobject::GameObject,
401 body_anim: crate::unity_engine::animationclip::AnimationClip,
402 ride_inst: crate::unity_engine::gameobject::GameObject,
403 ride_anim: crate::unity_engine::animationclip::AnimationClip,
404 ) -> Self {
405 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
406 panic!(
407 "{}
408::{}
409 failed to instantiate",
410 ::core::stringify!(Puppet),
411 ::core::stringify!(new),
412 )
413 });
414 <Self as IPuppetMethods>::ctor(this, body_inst, body_anim, ride_inst, ride_anim);
415 this
416 }
417}
418
419#[cfg(feature = "combat-puppet")]
420#[doc(hidden)]
421pub mod prelude {
422 pub use super::{IPuppet, IPuppetMethods, Puppet, Puppet_Hand};
423 #[cfg(feature = "system-object")]
424 pub use crate::system::object::IObjectMethods;
425 #[cfg(feature = "system-enum")]
426 pub use crate::system::r#enum::IEnumMethods;
427 #[cfg(feature = "system-valuetype")]
428 pub use crate::system::valuetype::IValueTypeMethods;
429 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
430}