Skip to main content

engage/generated/tm_pro/
tmp_character.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_character-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        tm_pro::tmp_textelement::{ITMP_TextElement, TMP_TextElement},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_character/TMP_Character.md"))]
14    #[::unity::class(namespace = "TMPro", name = "TMP_Character")]
15    #[parent(crate::tm_pro::tmp_textelement::TMP_TextElement)]
16    pub struct TMP_Character {}
17}
18
19#[cfg(feature = "tm_pro-tmp_character-types")]
20pub use __types::*;
21
22#[cfg(feature = "tm_pro-tmp_character")]
23pub trait ITMP_CharacterMethods: ITMP_Character {
24    #[doc = "`.ctor()` overload"]
25    fn ctor(self) -> () {
26        unsafe {
27            let __receiver = <TMP_Character as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x2d91280usize)as*mut u8,();
29(TMP_Character)__receiver)
30        }
31    }
32    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyph::Glyph)` overload"]
33    fn ctor_2(self, unicode: impl ::core::convert::Into<u32>, glyph: impl ::core::convert::Into<crate::unity_engine::text_core::glyph::Glyph>) -> () {
34        unsafe {
35            let __receiver = <TMP_Character as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x2d912c0usize)as*mut u8,();
37(TMP_Character)__receiver,(u32)::core::convert::Into::into(unicode),(crate::unity_engine::text_core::glyph::Glyph)::core::convert::Into::into(glyph))
38        }
39    }
40    #[doc = "`.ctor(u32, crate::tm_pro::tmp_fontasset::TMP_FontAsset, crate::unity_engine::text_core::glyph::Glyph)` overload"]
41    fn ctor_3(
42        self,
43        unicode: impl ::core::convert::Into<u32>,
44        font_asset: impl ::core::convert::Into<crate::tm_pro::tmp_fontasset::TMP_FontAsset>,
45        glyph: impl ::core::convert::Into<crate::unity_engine::text_core::glyph::Glyph>,
46    ) -> () {
47        unsafe {
48            let __receiver = <TMP_Character as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x2d91340usize)as*mut u8,();
50(TMP_Character)__receiver,(u32)::core::convert::Into::into(unicode),(crate::tm_pro::tmp_fontasset::TMP_FontAsset)::core::convert::Into::into(font_asset),(crate::unity_engine::text_core::glyph::Glyph)::core::convert::Into::into(glyph))
51        }
52    }
53    #[doc = "`.ctor(u32, u32)` overload"]
54    fn ctor_4(self, unicode: impl ::core::convert::Into<u32>, glyph_index: impl ::core::convert::Into<u32>) -> () {
55        unsafe {
56            let __receiver = <TMP_Character as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x2d913c0usize)as*mut u8,();
58(TMP_Character)__receiver,(u32)::core::convert::Into::into(unicode),(u32)::core::convert::Into::into(glyph_index))
59        }
60    }
61}
62
63#[cfg(feature = "tm_pro-tmp_character")]
64impl<__T: ITMP_Character> ITMP_CharacterMethods for __T {}
65
66#[cfg(feature = "tm_pro-tmp_character")]
67impl TMP_Character {
68    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70    }
71
72    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74    }
75
76    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
78    }
79
80    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
82    }
83}
84
85#[cfg(feature = "tm_pro-tmp_character")]
86impl TMP_Character {
87    #[doc = "`.ctor()` — no args"]
88    pub fn new() -> Self {
89        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
90            panic!(
91                "{}
92::{}
93 failed to instantiate",
94                ::core::stringify!(TMP_Character),
95                ::core::stringify!(new),
96            )
97        });
98        <Self as ITMP_CharacterMethods>::ctor(this);
99        this
100    }
101
102    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyph::Glyph)` — overload selector"]
103    pub fn new_2(unicode: u32, glyph: crate::unity_engine::text_core::glyph::Glyph) -> Self {
104        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
105            panic!(
106                "{}
107::{}
108 failed to instantiate",
109                ::core::stringify!(TMP_Character),
110                ::core::stringify!(new_2),
111            )
112        });
113        <Self as ITMP_CharacterMethods>::ctor_2(this, unicode, glyph);
114        this
115    }
116
117    #[doc = "`.ctor(u32, crate::tm_pro::tmp_fontasset::TMP_FontAsset, crate::unity_engine::text_core::glyph::Glyph)` — overload selector"]
118    pub fn new_3(unicode: u32, font_asset: crate::tm_pro::tmp_fontasset::TMP_FontAsset, glyph: crate::unity_engine::text_core::glyph::Glyph) -> Self {
119        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
120            panic!(
121                "{}
122::{}
123 failed to instantiate",
124                ::core::stringify!(TMP_Character),
125                ::core::stringify!(new_3),
126            )
127        });
128        <Self as ITMP_CharacterMethods>::ctor_3(this, unicode, font_asset, glyph);
129        this
130    }
131
132    #[doc = "`.ctor(u32, u32)` — overload selector"]
133    pub fn new_4(unicode: u32, glyph_index: u32) -> Self {
134        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
135            panic!(
136                "{}
137::{}
138 failed to instantiate",
139                ::core::stringify!(TMP_Character),
140                ::core::stringify!(new_4),
141            )
142        });
143        <Self as ITMP_CharacterMethods>::ctor_4(this, unicode, glyph_index);
144        this
145    }
146}
147
148#[cfg(feature = "tm_pro-tmp_character")]
149#[doc(hidden)]
150pub mod prelude {
151    pub use super::{ITMP_Character, ITMP_CharacterMethods, TMP_Character};
152    #[cfg(feature = "system-object")]
153    pub use crate::system::object::IObjectMethods;
154    #[cfg(feature = "tm_pro-tmp_textelement")]
155    pub use crate::tm_pro::tmp_textelement::ITMP_TextElementMethods;
156    pub use crate::{system::object::IObject, tm_pro::tmp_textelement::ITMP_TextElement};
157}