engage/generated/tm_pro/
tmp_linkinfo.rs1#[cfg(feature = "tm_pro-tmp_linkinfo-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_linkinfo/TMP_LinkInfo.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct TMP_LinkInfo {
17 pub text_component: crate::tm_pro::tmp_text::TMP_Text,
18 pub hash_code: i32,
19 pub link_id_first_character_index: i32,
20 pub link_id_length: i32,
21 pub link_textfirst_character_index: i32,
22 pub link_text_length: i32,
23 pub link_id: ::unity::Array<u16>,
24 }
25 impl ::unity::ClassIdentity for TMP_LinkInfo {
26 const NAME: &'static str = "TMP_LinkInfo";
27 const NAMESPACE: &'static str = "TMPro";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for TMP_LinkInfo {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39}
40
41#[cfg(feature = "tm_pro-tmp_linkinfo-types")]
42pub use __types::*;
43
44#[cfg(feature = "tm_pro-tmp_linkinfo")]
45impl TMP_LinkInfo {
46 #[doc = "`SetLinkID(::unity::Array<u16>, i32, i32)` overload"]
47 pub fn set_link_id(
48 &mut self,
49 text: impl ::core::convert::Into<::unity::Array<u16>>,
50 start_index: impl ::core::convert::Into<i32>,
51 length: impl ::core::convert::Into<i32>,
52 ) -> () {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x33b1ad0usize)as*mut u8,();
55(*mut TMP_LinkInfo)self as*mut TMP_LinkInfo,(::unity::Array<u16>)::core::convert::Into::into(text),(i32)::core::convert::Into::into(start_index),(i32)::core::convert::Into::into(length))
56 }
57 }
58
59 #[doc = "`GetLinkText()` overload"]
60 pub fn get_link_text(&mut self) -> ::unity::Il2CppString {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x33b1bd0usize)as*mut u8, ::unity::Il2CppString;
63(*mut TMP_LinkInfo)self as*mut TMP_LinkInfo)
64 }
65 }
66
67 #[doc = "`GetLinkID()` overload"]
68 pub fn get_link_id(&mut self) -> ::unity::Il2CppString {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x33b1cb0usize)as*mut u8, ::unity::Il2CppString;
71(*mut TMP_LinkInfo)self as*mut TMP_LinkInfo)
72 }
73 }
74}
75
76#[cfg(feature = "tm_pro-tmp_linkinfo")]
77impl TMP_LinkInfo {
78 pub fn set_link_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80 }
81
82 pub fn get_link_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84 }
85
86 pub fn get_link_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
88 }
89}
90
91#[cfg(feature = "tm_pro-tmp_linkinfo")]
92#[doc(hidden)]
93pub mod prelude {
94 pub use super::TMP_LinkInfo;
95 #[cfg(feature = "system-object")]
96 pub use crate::system::object::IObjectMethods;
97 #[cfg(feature = "system-valuetype")]
98 pub use crate::system::valuetype::IValueTypeMethods;
99 pub use crate::system::{object::IObject, valuetype::IValueType};
100}