Skip to main content

engage/generated/unity_engine/xr/
hand.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-xr-hand-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/xr/hand/Hand.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Hand {
17        pub m_device_id: u64,
18        pub m_feature_index: u32,
19    }
20    impl ::unity::ClassIdentity for Hand {
21        const NAME: &'static str = "Hand";
22        const NAMESPACE: &'static str = "UnityEngine.XR";
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 Hand {
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-xr-hand-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-xr-hand")]
40impl Hand {
41    #[doc = "`get_deviceId()` overload"]
42    pub fn get_device_id(&mut self) -> u64 {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x3f1e4d0usize)as*mut u8,u64;
45(*mut Hand)self as*mut Hand)
46        }
47    }
48
49    #[doc = "`get_featureIndex()` overload"]
50    pub fn get_feature_index(&mut self) -> u32 {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x3f1e4e0usize)as*mut u8,u32;
53(*mut Hand)self as*mut Hand)
54        }
55    }
56
57    #[doc = "`Equals(crate::system::object::Object)` overload"]
58    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x3f1e4f0usize)as*mut u8,bool;
61(*mut Hand)self as*mut Hand,(crate::system::object::Object)::core::convert::Into::into(obj))
62        }
63    }
64
65    #[doc = "`Equals(crate::unity_engine::xr::hand::Hand)` overload"]
66    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::xr::hand::Hand>) -> bool {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x3f1e590usize)as*mut u8,bool;
69(*mut Hand)self as*mut Hand,(crate::unity_engine::xr::hand::Hand)::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()+0x3f1e5c0usize)as*mut u8,i32;
77(*mut Hand)self as*mut Hand)
78        }
79    }
80}
81
82#[cfg(feature = "unity_engine-xr-hand")]
83impl Hand {
84    pub fn get_device_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86    }
87
88    pub fn get_feature_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-xr-hand")]
106#[doc(hidden)]
107pub mod prelude {
108    pub use super::Hand;
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}