engage/generated/unity_engine/xr/
inputfeatureusage.rs1#[cfg(feature = "unity_engine-xr-inputfeatureusage-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/inputfeatureusage/InputFeatureUsage.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct InputFeatureUsage {
17 pub m_name: ::unity::Il2CppString,
18 pub m_internal_type: crate::unity_engine::xr::inputfeaturetype::InputFeatureType,
19 }
20 impl ::unity::ClassIdentity for InputFeatureUsage {
21 const NAME: &'static str = "InputFeatureUsage";
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 InputFeatureUsage {
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-inputfeatureusage-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-xr-inputfeatureusage")]
40impl InputFeatureUsage {
41 #[doc = "`get_name()` overload"]
42 pub fn get_name(&mut self) -> ::unity::Il2CppString {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e860usize)as*mut u8, ::unity::Il2CppString;
45(*mut InputFeatureUsage)self as*mut InputFeatureUsage)
46 }
47 }
48
49 #[doc = "`get_internalType()` overload"]
50 pub fn get_internal_type(&mut self) -> crate::unity_engine::xr::inputfeaturetype::InputFeatureType {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e870usize)as*mut u8,crate::unity_engine::xr::inputfeaturetype::InputFeatureType;
53(*mut InputFeatureUsage)self as*mut InputFeatureUsage)
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()+0x3f1e880usize)as*mut u8,bool;
61(*mut InputFeatureUsage)self as*mut InputFeatureUsage,(crate::system::object::Object)::core::convert::Into::into(obj))
62 }
63 }
64
65 #[doc = "`Equals(crate::unity_engine::xr::inputfeatureusage::InputFeatureUsage)` overload"]
66 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::xr::inputfeatureusage::InputFeatureUsage>) -> bool {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e920usize)as*mut u8,bool;
69(*mut InputFeatureUsage)self as*mut InputFeatureUsage,(crate::unity_engine::xr::inputfeatureusage::InputFeatureUsage)::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()+0x3f1e970usize)as*mut u8,i32;
77(*mut InputFeatureUsage)self as*mut InputFeatureUsage)
78 }
79 }
80}
81
82#[cfg(feature = "unity_engine-xr-inputfeatureusage")]
83impl InputFeatureUsage {
84 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86 }
87
88 pub fn get_internal_type_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-inputfeatureusage")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::InputFeatureUsage;
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}