Skip to main content

engage/generated/unity_engine/
boneweight1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-boneweight1-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/boneweight1/BoneWeight1.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct BoneWeight1 {
17        pub m_weight: f32,
18        pub m_bone_index: i32,
19    }
20    impl ::unity::ClassIdentity for BoneWeight1 {
21        const NAME: &'static str = "BoneWeight1";
22        const NAMESPACE: &'static str = "UnityEngine";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for BoneWeight1 {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-boneweight1-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-boneweight1")]
40impl BoneWeight1 {
41    #[doc = "`get_weight()` overload"]
42    pub fn get_weight(&mut self) -> f32 {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x2c37f80usize)as*mut u8,f32;
45(*mut BoneWeight1)self as*mut BoneWeight1)
46        }
47    }
48
49    #[doc = "`get_boneIndex()` overload"]
50    pub fn get_bone_index(&mut self) -> i32 {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x2c37f90usize)as*mut u8,i32;
53(*mut BoneWeight1)self as*mut BoneWeight1)
54        }
55    }
56
57    #[doc = "`Equals(crate::system::object::Object)` overload"]
58    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2c37fa0usize)as*mut u8,bool;
61(*mut BoneWeight1)self as*mut BoneWeight1,(crate::system::object::Object)::core::convert::Into::into(other))
62        }
63    }
64
65    #[doc = "`Equals(crate::unity_engine::boneweight1::BoneWeight1)` overload"]
66    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::boneweight1::BoneWeight1>) -> bool {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x2c38060usize)as*mut u8,bool;
69(*mut BoneWeight1)self as*mut BoneWeight1,(crate::unity_engine::boneweight1::BoneWeight1)::core::convert::Into::into(other))
70        }
71    }
72
73    #[doc = "`GetHashCode()` overload"]
74    pub fn get_hash_code(&mut self) -> i32 {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2c380d0usize)as*mut u8,i32;
77(*mut BoneWeight1)self as*mut BoneWeight1)
78        }
79    }
80}
81
82#[cfg(feature = "unity_engine-boneweight1")]
83impl BoneWeight1 {
84    pub fn get_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86    }
87
88    pub fn get_bone_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90    }
91
92    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94    }
95
96    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98    }
99
100    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
102    }
103}
104
105#[cfg(feature = "unity_engine-boneweight1")]
106#[doc(hidden)]
107pub mod prelude {
108    pub use super::BoneWeight1;
109    #[cfg(feature = "system-object")]
110    pub use crate::system::object::IObjectMethods;
111    #[cfg(feature = "system-valuetype")]
112    pub use crate::system::valuetype::IValueTypeMethods;
113    pub use crate::system::{object::IObject, valuetype::IValueType};
114}