Skip to main content

engage/generated/unity_engine/xr/
meshid.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-xr-meshid-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/meshid/MeshId.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct MeshId {
17        pub m_sub_id1: u64,
18        pub m_sub_id2: u64,
19    }
20    impl ::unity::ClassIdentity for MeshId {
21        const NAME: &'static str = "MeshId";
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 MeshId {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl MeshId {
35        #[inline]
36        pub fn s_invalid_id() -> crate::unity_engine::xr::meshid::MeshId {
37            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
38            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_InvalidId");
39            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
40        }
41
42        #[inline]
43        pub fn set_s_invalid_id(value: crate::unity_engine::xr::meshid::MeshId) {
44            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
45            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_InvalidId");
46            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
47        }
48    }
49}
50
51#[cfg(feature = "unity_engine-xr-meshid-types")]
52pub use __types::*;
53
54#[cfg(feature = "unity_engine-xr-meshid")]
55impl MeshId {
56    #[doc = "`.cctor()` overload"]
57    pub fn cctor() -> () {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f210usize)as*mut u8,();
60            )
61        }
62    }
63}
64
65#[cfg(feature = "unity_engine-xr-meshid")]
66impl MeshId {
67    #[doc = "`ToString()` overload"]
68    pub fn to_string(&mut self) -> ::unity::Il2CppString {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f0d0usize)as*mut u8, ::unity::Il2CppString;
71(*mut MeshId)self as*mut MeshId)
72        }
73    }
74
75    #[doc = "`GetHashCode()` overload"]
76    pub fn get_hash_code(&mut self) -> i32 {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f090usize)as*mut u8,i32;
79(*mut MeshId)self as*mut MeshId)
80        }
81    }
82
83    #[doc = "`Equals(crate::system::object::Object)` overload"]
84    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f170usize)as*mut u8,bool;
87(*mut MeshId)self as*mut MeshId,(crate::system::object::Object)::core::convert::Into::into(obj))
88        }
89    }
90
91    #[doc = "`Equals(crate::unity_engine::xr::meshid::MeshId)` overload"]
92    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::xr::meshid::MeshId>) -> bool {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x3f1efa0usize)as*mut u8,bool;
95(*mut MeshId)self as*mut MeshId,(crate::unity_engine::xr::meshid::MeshId)::core::convert::Into::into(other))
96        }
97    }
98}
99
100#[cfg(feature = "unity_engine-xr-meshid")]
101impl MeshId {
102    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
104    }
105
106    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
108    }
109
110    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
112    }
113
114    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
116    }
117
118    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
120    }
121}
122
123#[cfg(feature = "unity_engine-xr-meshid")]
124#[doc(hidden)]
125pub mod prelude {
126    pub use super::MeshId;
127    #[cfg(feature = "system-object")]
128    pub use crate::system::object::IObjectMethods;
129    #[cfg(feature = "system-valuetype")]
130    pub use crate::system::valuetype::IValueTypeMethods;
131    pub use crate::system::{object::IObject, valuetype::IValueType};
132}