engage/generated/combat/
dressutility.rs1#[cfg(feature = "combat-dressutility-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/combat/dressutility/DressUtility.md"))]
11 #[::unity::class(namespace = "Combat", name = "DressUtility")]
12 #[parent(crate::system::object::Object)]
13 pub struct DressUtility {
14 #[offset(16)]
15 #[rename(name = "bodyCache")]
16 pub body_cache: crate::combat::hierarchycache::HierarchyCache,
17 }
18}
19
20#[cfg(feature = "combat-dressutility-types")]
21pub use __types::*;
22
23#[cfg(feature = "combat-dressutility")]
24pub trait IDressUtilityMethods: IDressUtility {
25 #[doc = "`get_Cache()` overload"]
26 fn get_cache(self) -> crate::combat::hierarchycache::HierarchyCache {
27 unsafe {
28 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x22d2ac0usize)as*mut u8,crate::combat::hierarchycache::HierarchyCache;
30(DressUtility)__receiver)
31 }
32 }
33 #[doc = "`get_Item(::unity::Il2CppString)` overload"]
34 fn get_item(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::transform::Transform {
35 unsafe {
36 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x22d2ad0usize)as*mut u8,crate::unity_engine::transform::Transform;
38(DressUtility)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
39 }
40 }
41 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` overload"]
42 fn ctor(self, body_root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
43 unsafe {
44 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x22d2ae0usize)as*mut u8,();
46(DressUtility)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(body_root))
47 }
48 }
49 #[doc = "`TransplantDressOnlyBones(crate::unity_engine::transform::Transform)` overload"]
50 fn transplant_dress_only_bones(self, dress: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
51 unsafe {
52 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x22d2b60usize)as*mut u8,();
54(DressUtility)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(dress))
55 }
56 }
57 #[doc = "`TransplantSkinnedMesh(crate::unity_engine::gameobject::GameObject, ::unity::Array<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>, ::unity::Il2CppString)` overload"]
58 fn transplant_skinned_mesh(
59 self,
60 dress_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
61 dress_meshes: impl ::core::convert::Into<::unity::Array<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>>,
62 parent_name: impl ::core::convert::Into<::unity::Il2CppString>,
63 ) -> () {
64 unsafe {
65 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x22d2e20usize)as*mut u8,();
67(DressUtility)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(dress_go),(::unity::Array<crate::unity_engine::skinnedmeshrenderer::SkinnedMeshRenderer>)::core::convert::Into::into(dress_meshes),(::unity::Il2CppString)::core::convert::Into::into(parent_name))
68 }
69 }
70 #[doc = "`TransplantMesh(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString)` overload"]
71 fn transplant_mesh(
72 self,
73 acc_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
74 parent_name: impl ::core::convert::Into<::unity::Il2CppString>,
75 ) -> () {
76 unsafe {
77 let __receiver = <DressUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x22d3100usize)as*mut u8,();
79(DressUtility)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(acc_go),(::unity::Il2CppString)::core::convert::Into::into(parent_name))
80 }
81 }
82}
83
84#[cfg(feature = "combat-dressutility")]
85impl<__T: IDressUtility> IDressUtilityMethods for __T {}
86
87#[cfg(feature = "combat-dressutility")]
88impl DressUtility {
89 pub fn get_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91 }
92
93 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95 }
96
97 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
99 }
100
101 pub fn transplant_dress_only_bones_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
103 }
104
105 pub fn transplant_skinned_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
107 }
108
109 pub fn transplant_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
111 }
112}
113
114#[cfg(feature = "combat-dressutility")]
115impl DressUtility {
116 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` — overload selector"]
117 pub fn new(body_root: crate::unity_engine::transform::Transform) -> Self {
118 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
119 panic!(
120 "{}
121::{}
122 failed to instantiate",
123 ::core::stringify!(DressUtility),
124 ::core::stringify!(new),
125 )
126 });
127 <Self as IDressUtilityMethods>::ctor(this, body_root);
128 this
129 }
130}
131
132#[cfg(feature = "combat-dressutility")]
133#[doc(hidden)]
134pub mod prelude {
135 pub use super::{DressUtility, IDressUtility, IDressUtilityMethods};
136 pub use crate::system::object::IObject;
137 #[cfg(feature = "system-object")]
138 pub use crate::system::object::IObjectMethods;
139}