engage/generated/unity_engine/
boneweight.rs1#[cfg(feature = "unity_engine-boneweight-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/boneweight/BoneWeight.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct BoneWeight {
17 pub m_weight0: f32,
18 pub m_weight1: f32,
19 pub m_weight2: f32,
20 pub m_weight3: f32,
21 pub m_bone_index0: i32,
22 pub m_bone_index1: i32,
23 pub m_bone_index2: i32,
24 pub m_bone_index3: i32,
25 }
26 impl ::unity::ClassIdentity for BoneWeight {
27 const NAME: &'static str = "BoneWeight";
28 const NAMESPACE: &'static str = "UnityEngine";
29
30 fn class() -> ::unity::Class {
31 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33 }
34 }
35 impl ::unity::IlType for BoneWeight {
36 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38 }
39 }
40}
41
42#[cfg(feature = "unity_engine-boneweight-types")]
43pub use __types::*;
44
45#[cfg(feature = "unity_engine-boneweight")]
46impl BoneWeight {
47 #[doc = "`get_weight0()` overload"]
48 pub fn get_weight0(&mut self) -> f32 {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c20usize)as*mut u8,f32;
51(*mut BoneWeight)self as*mut BoneWeight)
52 }
53 }
54
55 #[doc = "`get_weight1()` overload"]
56 pub fn get_weight1(&mut self) -> f32 {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c30usize)as*mut u8,f32;
59(*mut BoneWeight)self as*mut BoneWeight)
60 }
61 }
62
63 #[doc = "`get_weight2()` overload"]
64 pub fn get_weight2(&mut self) -> f32 {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c40usize)as*mut u8,f32;
67(*mut BoneWeight)self as*mut BoneWeight)
68 }
69 }
70
71 #[doc = "`get_weight3()` overload"]
72 pub fn get_weight3(&mut self) -> f32 {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c50usize)as*mut u8,f32;
75(*mut BoneWeight)self as*mut BoneWeight)
76 }
77 }
78
79 #[doc = "`get_boneIndex0()` overload"]
80 pub fn get_bone_index0(&mut self) -> i32 {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c60usize)as*mut u8,i32;
83(*mut BoneWeight)self as*mut BoneWeight)
84 }
85 }
86
87 #[doc = "`get_boneIndex1()` overload"]
88 pub fn get_bone_index1(&mut self) -> i32 {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c70usize)as*mut u8,i32;
91(*mut BoneWeight)self as*mut BoneWeight)
92 }
93 }
94
95 #[doc = "`get_boneIndex2()` overload"]
96 pub fn get_bone_index2(&mut self) -> i32 {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c80usize)as*mut u8,i32;
99(*mut BoneWeight)self as*mut BoneWeight)
100 }
101 }
102
103 #[doc = "`get_boneIndex3()` overload"]
104 pub fn get_bone_index3(&mut self) -> i32 {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x2c37c90usize)as*mut u8,i32;
107(*mut BoneWeight)self as*mut BoneWeight)
108 }
109 }
110
111 #[doc = "`GetHashCode()` overload"]
112 pub fn get_hash_code(&mut self) -> i32 {
113 unsafe {
114 ::unity::il2cpp_call!((::unity::module_base()+0x2c37ca0usize)as*mut u8,i32;
115(*mut BoneWeight)self as*mut BoneWeight)
116 }
117 }
118
119 #[doc = "`Equals(crate::system::object::Object)` overload"]
120 pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
121 unsafe {
122 ::unity::il2cpp_call!((::unity::module_base()+0x2c37dc0usize)as*mut u8,bool;
123(*mut BoneWeight)self as*mut BoneWeight,(crate::system::object::Object)::core::convert::Into::into(other))
124 }
125 }
126
127 #[doc = "`Equals(crate::unity_engine::boneweight::BoneWeight)` overload"]
128 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::boneweight::BoneWeight>) -> bool {
129 unsafe {
130 ::unity::il2cpp_call!((::unity::module_base()+0x2c37e60usize)as*mut u8,bool;
131(*mut BoneWeight)self as*mut BoneWeight,(crate::unity_engine::boneweight::BoneWeight)::core::convert::Into::into(other))
132 }
133 }
134}
135
136#[cfg(feature = "unity_engine-boneweight")]
137impl BoneWeight {
138 pub fn get_weight0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
140 }
141
142 pub fn get_weight1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
144 }
145
146 pub fn get_weight2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
148 }
149
150 pub fn get_weight3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
152 }
153
154 pub fn get_bone_index0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
156 }
157
158 pub fn get_bone_index1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
160 }
161
162 pub fn get_bone_index2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
164 }
165
166 pub fn get_bone_index3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
168 }
169
170 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
172 }
173
174 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
176 }
177
178 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
180 }
181}
182
183#[cfg(feature = "unity_engine-boneweight")]
184#[doc(hidden)]
185pub mod prelude {
186 pub use super::BoneWeight;
187 #[cfg(feature = "system-object")]
188 pub use crate::system::object::IObjectMethods;
189 #[cfg(feature = "system-valuetype")]
190 pub use crate::system::valuetype::IValueTypeMethods;
191 pub use crate::system::{object::IObject, valuetype::IValueType};
192}