Skip to main content

engage/generated/tm_pro/
tmp_vertex.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_vertex-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/tm_pro/tmp_vertex/TMP_Vertex.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TMP_Vertex {
17        pub position: crate::unity_engine::vector3::Vector3,
18        pub uv: crate::unity_engine::vector2::Vector2,
19        pub uv2: crate::unity_engine::vector2::Vector2,
20        pub uv4: crate::unity_engine::vector2::Vector2,
21        pub color: crate::unity_engine::color32::Color32,
22    }
23    impl ::unity::ClassIdentity for TMP_Vertex {
24        const NAME: &'static str = "TMP_Vertex";
25        const NAMESPACE: &'static str = "TMPro";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for TMP_Vertex {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl TMP_Vertex {
38        #[inline]
39        pub fn k_zero() -> crate::tm_pro::tmp_vertex::TMP_Vertex {
40            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
41            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_Zero");
42            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
43        }
44
45        #[inline]
46        pub fn set_k_zero(value: crate::tm_pro::tmp_vertex::TMP_Vertex) {
47            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
48            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "k_Zero");
49            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
50        }
51    }
52}
53
54#[cfg(feature = "tm_pro-tmp_vertex-types")]
55pub use __types::*;
56
57#[cfg(feature = "tm_pro-tmp_vertex")]
58impl TMP_Vertex {
59    #[doc = "`get_zero()` overload"]
60    pub fn get_zero() -> crate::tm_pro::tmp_vertex::TMP_Vertex {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2e68830usize)as*mut u8,crate::tm_pro::tmp_vertex::TMP_Vertex;
63            )
64        }
65    }
66
67    #[doc = "`.cctor()` overload"]
68    pub fn cctor() -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x2e688c0usize)as*mut u8,();
71            )
72        }
73    }
74}
75
76#[cfg(feature = "tm_pro-tmp_vertex")]
77impl TMP_Vertex {
78    pub fn get_zero_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81
82    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84    }
85}
86
87#[cfg(feature = "tm_pro-tmp_vertex")]
88#[doc(hidden)]
89pub mod prelude {
90    pub use super::TMP_Vertex;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93    #[cfg(feature = "system-valuetype")]
94    pub use crate::system::valuetype::IValueTypeMethods;
95    pub use crate::system::{object::IObject, valuetype::IValueType};
96}