Skip to main content

engage/generated/tm_pro/
tmp_spritecharacter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_spritecharacter-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_spritecharacter/TMP_SpriteCharacter.md"))]
14    #[::unity::class(namespace = "TMPro", name = "TMP_SpriteCharacter")]
15    #[parent(crate::tm_pro::tmp_textelement::TMP_TextElement)]
16    pub struct TMP_SpriteCharacter {
17        #[offset(48)]
18        #[rename(name = "m_Name")]
19        pub m_name: ::unity::Il2CppString,
20        #[offset(56)]
21        #[rename(name = "m_HashCode")]
22        pub m_hash_code: i32,
23    }
24}
25
26#[cfg(feature = "tm_pro-tmp_spritecharacter-types")]
27pub use __types::*;
28
29#[cfg(feature = "tm_pro-tmp_spritecharacter")]
30pub trait ITMP_SpriteCharacterMethods: ITMP_SpriteCharacter {
31    #[doc = "`get_name()` overload"]
32    fn get_name(self) -> ::unity::Il2CppString {
33        unsafe {
34            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x282d990usize)as*mut u8, ::unity::Il2CppString;
36(TMP_SpriteCharacter)__receiver)
37        }
38    }
39    #[doc = "`set_name(::unity::Il2CppString)` overload"]
40    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
41        unsafe {
42            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x282d800usize)as*mut u8,();
44(TMP_SpriteCharacter)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
45        }
46    }
47    #[doc = "`get_hashCode()` overload"]
48    fn get_hash_code(self) -> i32 {
49        unsafe {
50            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x282d9a0usize)as*mut u8,i32;
52(TMP_SpriteCharacter)__receiver)
53        }
54    }
55    #[doc = "`.ctor()` overload"]
56    fn ctor(self) -> () {
57        unsafe {
58            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x282d7d0usize)as*mut u8,();
60(TMP_SpriteCharacter)__receiver)
61        }
62    }
63    #[doc = "`.ctor(u32, crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)` overload"]
64    fn ctor_2(
65        self,
66        unicode: impl ::core::convert::Into<u32>,
67        glyph: impl ::core::convert::Into<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>,
68    ) -> () {
69        unsafe {
70            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x282d9b0usize)as*mut u8,();
72(TMP_SpriteCharacter)__receiver,(u32)::core::convert::Into::into(unicode),(crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)::core::convert::Into::into(glyph))
73        }
74    }
75    #[doc = "`.ctor(u32, crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)` overload"]
76    fn ctor_3(
77        self,
78        unicode: impl ::core::convert::Into<u32>,
79        sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
80        glyph: impl ::core::convert::Into<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>,
81    ) -> () {
82        unsafe {
83            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x282da20usize)as*mut u8,();
85(TMP_SpriteCharacter)__receiver,(u32)::core::convert::Into::into(unicode),(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)::core::convert::Into::into(glyph))
86        }
87    }
88    #[doc = "`.ctor(u32, u32)` overload"]
89    fn ctor_4(self, unicode: impl ::core::convert::Into<u32>, glyph_index: impl ::core::convert::Into<u32>) -> () {
90        unsafe {
91            let __receiver = <TMP_SpriteCharacter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x282daa0usize)as*mut u8,();
93(TMP_SpriteCharacter)__receiver,(u32)::core::convert::Into::into(unicode),(u32)::core::convert::Into::into(glyph_index))
94        }
95    }
96}
97
98#[cfg(feature = "tm_pro-tmp_spritecharacter")]
99impl<__T: ITMP_SpriteCharacter> ITMP_SpriteCharacterMethods for __T {}
100
101#[cfg(feature = "tm_pro-tmp_spritecharacter")]
102impl TMP_SpriteCharacter {
103    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105    }
106
107    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109    }
110
111    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113    }
114
115    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117    }
118
119    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121    }
122
123    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
125    }
126
127    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
129    }
130}
131
132#[cfg(feature = "tm_pro-tmp_spritecharacter")]
133impl TMP_SpriteCharacter {
134    #[doc = "`.ctor()` — no args"]
135    pub fn new() -> Self {
136        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
137            panic!(
138                "{}
139::{}
140 failed to instantiate",
141                ::core::stringify!(TMP_SpriteCharacter),
142                ::core::stringify!(new),
143            )
144        });
145        <Self as ITMP_SpriteCharacterMethods>::ctor(this);
146        this
147    }
148
149    #[doc = "`.ctor(u32, crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)` — overload selector"]
150    pub fn new_2(unicode: u32, glyph: crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph) -> Self {
151        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
152            panic!(
153                "{}
154::{}
155 failed to instantiate",
156                ::core::stringify!(TMP_SpriteCharacter),
157                ::core::stringify!(new_2),
158            )
159        });
160        <Self as ITMP_SpriteCharacterMethods>::ctor_2(this, unicode, glyph);
161        this
162    }
163
164    #[doc = "`.ctor(u32, crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph)` — overload selector"]
165    pub fn new_3(
166        unicode: u32,
167        sprite_asset: crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset,
168        glyph: crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph,
169    ) -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(TMP_SpriteCharacter),
176                ::core::stringify!(new_3),
177            )
178        });
179        <Self as ITMP_SpriteCharacterMethods>::ctor_3(this, unicode, sprite_asset, glyph);
180        this
181    }
182
183    #[doc = "`.ctor(u32, u32)` — overload selector"]
184    pub fn new_4(unicode: u32, glyph_index: u32) -> Self {
185        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
186            panic!(
187                "{}
188::{}
189 failed to instantiate",
190                ::core::stringify!(TMP_SpriteCharacter),
191                ::core::stringify!(new_4),
192            )
193        });
194        <Self as ITMP_SpriteCharacterMethods>::ctor_4(this, unicode, glyph_index);
195        this
196    }
197}
198
199#[cfg(feature = "tm_pro-tmp_spritecharacter")]
200#[doc(hidden)]
201pub mod prelude {
202    pub use super::{ITMP_SpriteCharacter, ITMP_SpriteCharacterMethods, TMP_SpriteCharacter};
203    #[cfg(feature = "system-object")]
204    pub use crate::system::object::IObjectMethods;
205    #[cfg(feature = "tm_pro-tmp_textelement")]
206    pub use crate::tm_pro::tmp_textelement::ITMP_TextElementMethods;
207    pub use crate::{system::object::IObject, tm_pro::tmp_textelement::ITMP_TextElement};
208}