1#[cfg(feature = "tm_pro-tmp_spriteasset-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_asset::{ITMP_Asset, TMP_Asset},
11 unity_engine::{
12 object_2::{IObject_2, Object_2},
13 scriptableobject::{IScriptableObject, ScriptableObject},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_spriteasset/TMP_SpriteAsset.md"))]
18 #[::unity::class(namespace = "TMPro", name = "TMP_SpriteAsset")]
19 #[parent(crate::tm_pro::tmp_asset::TMP_Asset)]
20 pub struct TMP_SpriteAsset {
21 #[offset(48)]
22 #[rename(name = "m_NameLookup")]
23 pub m_name_lookup: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, i32>,
24 #[offset(56)]
25 #[rename(name = "m_GlyphIndexLookup")]
26 pub m_glyph_index_lookup: crate::system::collections::generic::dictionary_2::Dictionary_2<u32, i32>,
27 #[offset(64)]
28 #[rename(name = "m_Version")]
29 pub m_version: ::unity::Il2CppString,
30 #[offset(72)]
31 #[rename(name = "m_FaceInfo")]
32 pub m_face_info: crate::unity_engine::text_core::faceinfo::FaceInfo,
33 #[offset(168)]
34 #[rename(name = "spriteSheet")]
35 pub sprite_sheet: crate::unity_engine::texture::Texture,
36 #[offset(176)]
37 #[rename(name = "m_SpriteCharacterTable")]
38 pub m_sprite_character_table: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>,
39 #[offset(184)]
40 #[rename(name = "m_SpriteCharacterLookup")]
41 pub m_sprite_character_lookup:
42 crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>,
43 #[offset(192)]
44 #[rename(name = "m_SpriteGlyphTable")]
45 pub m_sprite_glyph_table: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>,
46 #[offset(200)]
47 #[rename(name = "m_SpriteGlyphLookup")]
48 pub m_sprite_glyph_lookup:
49 crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>,
50 #[offset(208)]
51 #[rename(name = "spriteInfoList")]
52 pub sprite_info_list: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_sprite::TMP_Sprite>,
53 #[offset(216)]
54 #[rename(name = "fallbackSpriteAssets")]
55 pub fallback_sprite_assets: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
56 #[offset(224)]
57 #[rename(name = "m_IsSpriteAssetLookupTablesDirty")]
58 pub m_is_sprite_asset_lookup_tables_dirty: bool,
59 #[static_field]
60 #[rename(name = "k_searchedSpriteAssets")]
61 pub k_searched_sprite_assets: crate::system::collections::generic::hashset_1::HashSet_1<i32>,
62 }
63}
64
65#[cfg(feature = "tm_pro-tmp_spriteasset-types")]
66pub use __types::*;
67
68#[cfg(feature = "tm_pro-tmp_spriteasset")]
69impl TMP_SpriteAsset {
70 #[doc = "`SearchForSpriteByUnicode(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, u32, bool, *muti32)` overload"]
71 pub fn search_for_sprite_by_unicode(
72 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
73 unicode: impl ::core::convert::Into<u32>,
74 include_fallbacks: impl ::core::convert::Into<bool>,
75 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
76 unsafe {
77 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
78 let __ret = {
79 ::unity::il2cpp_call!((::unity::module_base()+0x282c8b0usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
80(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(u32)::core::convert::Into::into(unicode),(bool)::core::convert::Into::into(include_fallbacks),(*mut i32)__out_0.as_mut_ptr())
81 };
82 (__ret, __out_0.assume_init())
83 }
84 }
85
86 #[doc = "`SearchForSpriteByUnicodeInternal(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>, u32, bool, *muti32)` overload"]
87 pub fn search_for_sprite_by_unicode_internal(
88 sprite_assets: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>>,
89 unicode: impl ::core::convert::Into<u32>,
90 include_fallbacks: impl ::core::convert::Into<bool>,
91 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
92 unsafe {
93 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
94 let __ret = {
95 ::unity::il2cpp_call!((::unity::module_base()+0x282cb30usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
96(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>)::core::convert::Into::into(sprite_assets),(u32)::core::convert::Into::into(unicode),(bool)::core::convert::Into::into(include_fallbacks),(*mut i32)__out_0.as_mut_ptr())
97 };
98 (__ret, __out_0.assume_init())
99 }
100 }
101
102 #[doc = "`SearchForSpriteByUnicodeInternal(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, u32, bool, *muti32)` overload"]
103 pub fn search_for_sprite_by_unicode_internal_2(
104 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
105 unicode: impl ::core::convert::Into<u32>,
106 include_fallbacks: impl ::core::convert::Into<bool>,
107 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
108 unsafe {
109 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
110 let __ret = {
111 ::unity::il2cpp_call!((::unity::module_base()+0x282ccd0usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
112(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(u32)::core::convert::Into::into(unicode),(bool)::core::convert::Into::into(include_fallbacks),(*mut i32)__out_0.as_mut_ptr())
113 };
114 (__ret, __out_0.assume_init())
115 }
116 }
117
118 #[doc = "`SearchForSpriteByHashCode(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32, bool, *muti32)` overload"]
119 pub fn search_for_sprite_by_hash_code(
120 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
121 hash_code: impl ::core::convert::Into<i32>,
122 include_fallbacks: impl ::core::convert::Into<bool>,
123 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
124 unsafe {
125 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
126 let __ret = {
127 ::unity::il2cpp_call!((::unity::module_base()+0x282cde0usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
128(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(i32)::core::convert::Into::into(hash_code),(bool)::core::convert::Into::into(include_fallbacks),(*mut i32)__out_0.as_mut_ptr())
129 };
130 (__ret, __out_0.assume_init())
131 }
132 }
133
134 #[doc = "`SearchForSpriteByHashCodeInternal(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>, i32, bool, *muti32)` overload"]
135 pub fn search_for_sprite_by_hash_code_internal(
136 sprite_assets: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>>,
137 hash_code: impl ::core::convert::Into<i32>,
138 search_fallbacks: impl ::core::convert::Into<bool>,
139 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
140 unsafe {
141 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
142 let __ret = {
143 ::unity::il2cpp_call!((::unity::module_base()+0x282d1b0usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
144(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>)::core::convert::Into::into(sprite_assets),(i32)::core::convert::Into::into(hash_code),(bool)::core::convert::Into::into(search_fallbacks),(*mut i32)__out_0.as_mut_ptr())
145 };
146 (__ret, __out_0.assume_init())
147 }
148 }
149
150 #[doc = "`SearchForSpriteByHashCodeInternal(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32, bool, *muti32)` overload"]
151 pub fn search_for_sprite_by_hash_code_internal_2(
152 sprite_asset: impl ::core::convert::Into<crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset>,
153 hash_code: impl ::core::convert::Into<i32>,
154 search_fallbacks: impl ::core::convert::Into<bool>,
155 ) -> (crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset, i32) {
156 unsafe {
157 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
158 let __ret = {
159 ::unity::il2cpp_call!((::unity::module_base()+0x282d350usize)as*mut u8,crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset;
160(crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset)::core::convert::Into::into(sprite_asset),(i32)::core::convert::Into::into(hash_code),(bool)::core::convert::Into::into(search_fallbacks),(*mut i32)__out_0.as_mut_ptr())
161 };
162 (__ret, __out_0.assume_init())
163 }
164 }
165}
166
167#[cfg(feature = "tm_pro-tmp_spriteasset")]
168pub trait ITMP_SpriteAssetMethods: ITMP_SpriteAsset {
169 #[doc = "`get_version()` overload"]
170 fn get_version(self) -> ::unity::Il2CppString {
171 unsafe {
172 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x282b880usize)as*mut u8, ::unity::Il2CppString;
174(TMP_SpriteAsset)__receiver)
175 }
176 }
177 #[doc = "`set_version(::unity::Il2CppString)` overload"]
178 fn set_version(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
179 unsafe {
180 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x282b890usize)as*mut u8,();
182(TMP_SpriteAsset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
183 }
184 }
185 #[doc = "`get_faceInfo()` overload"]
186 fn get_face_info(self) -> crate::unity_engine::text_core::faceinfo::FaceInfo {
187 unsafe {
188 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x282b8a0usize)as*mut u8,crate::unity_engine::text_core::faceinfo::FaceInfo;
190(TMP_SpriteAsset)__receiver)
191 }
192 }
193 #[doc = "`set_faceInfo(crate::unity_engine::text_core::faceinfo::FaceInfo)` overload"]
194 fn set_face_info(self, value: impl ::core::convert::Into<crate::unity_engine::text_core::faceinfo::FaceInfo>) -> () {
195 unsafe {
196 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x282b8e0usize)as*mut u8,();
198(TMP_SpriteAsset)__receiver,(crate::unity_engine::text_core::faceinfo::FaceInfo)::core::convert::Into::into(value))
199 }
200 }
201 #[doc = "`get_spriteCharacterTable()` overload"]
202 fn get_sprite_character_table(
203 self,
204 ) -> crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter> {
205 unsafe {
206 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x282b910usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter> ;
208(TMP_SpriteAsset)__receiver)
209 }
210 }
211 #[doc = "`set_spriteCharacterTable(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>)` overload"]
212 fn set_sprite_character_table(
213 self,
214 value: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>>,
215 ) -> () {
216 unsafe {
217 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 ::unity::il2cpp_call!((::unity::module_base()+0x282bed0usize)as*mut u8,();
219(TMP_SpriteAsset)__receiver,(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>)::core::convert::Into::into(value))
220 }
221 }
222 #[doc = "`get_spriteCharacterLookupTable()` overload"]
223 fn get_sprite_character_lookup_table(
224 self,
225 ) -> crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter> {
226 unsafe {
227 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x282bee0usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2<u32,crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter> ;
229(TMP_SpriteAsset)__receiver)
230 }
231 }
232 #[doc = "`set_spriteCharacterLookupTable(crate::system::collections::generic::dictionary_2::Dictionary_2<u32,crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>)` overload"]
233 fn set_sprite_character_lookup_table(
234 self,
235 value: impl ::core::convert::Into<
236 crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>,
237 >,
238 ) -> () {
239 unsafe {
240 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241 ::unity::il2cpp_call!((::unity::module_base()+0x282bf20usize)as*mut u8,();
242(TMP_SpriteAsset)__receiver,(crate::system::collections::generic::dictionary_2::Dictionary_2<u32,crate::tm_pro::tmp_spritecharacter::TMP_SpriteCharacter>)::core::convert::Into::into(value))
243 }
244 }
245 #[doc = "`get_spriteGlyphTable()` overload"]
246 fn get_sprite_glyph_table(self) -> crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph> {
247 unsafe {
248 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 ::unity::il2cpp_call!((::unity::module_base()+0x282bf30usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph> ;
250(TMP_SpriteAsset)__receiver)
251 }
252 }
253 #[doc = "`set_spriteGlyphTable(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>)` overload"]
254 fn set_sprite_glyph_table(
255 self,
256 value: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>>,
257 ) -> () {
258 unsafe {
259 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x282bf40usize)as*mut u8,();
261(TMP_SpriteAsset)__receiver,(crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_spriteglyph::TMP_SpriteGlyph>)::core::convert::Into::into(value))
262 }
263 }
264 #[doc = "`Awake()` overload"]
265 fn awake(self) -> () {
266 unsafe {
267 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x282bf50usize)as*mut u8,();
269(TMP_SpriteAsset)__receiver)
270 }
271 }
272 #[doc = "`GetDefaultSpriteMaterial()` overload"]
273 fn get_default_sprite_material(self) -> crate::unity_engine::material::Material {
274 unsafe {
275 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x282c580usize)as*mut u8,crate::unity_engine::material::Material;
277(TMP_SpriteAsset)__receiver)
278 }
279 }
280 #[doc = "`UpdateLookupTables()` overload"]
281 fn update_lookup_tables(self) -> () {
282 unsafe {
283 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x282b950usize)as*mut u8,();
285(TMP_SpriteAsset)__receiver)
286 }
287 }
288 #[doc = "`GetSpriteIndexFromHashcode(i32)` overload"]
289 fn get_sprite_index_from_hashcode(self, hash_code: impl ::core::convert::Into<i32>) -> i32 {
290 unsafe {
291 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x282c670usize)as*mut u8,i32;
293(TMP_SpriteAsset)__receiver,(i32)::core::convert::Into::into(hash_code))
294 }
295 }
296 #[doc = "`GetSpriteIndexFromUnicode(u32)` overload"]
297 fn get_sprite_index_from_unicode(self, unicode: impl ::core::convert::Into<u32>) -> i32 {
298 unsafe {
299 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x282c700usize)as*mut u8,i32;
301(TMP_SpriteAsset)__receiver,(u32)::core::convert::Into::into(unicode))
302 }
303 }
304 #[doc = "`GetSpriteIndexFromName(::unity::Il2CppString)` overload"]
305 fn get_sprite_index_from_name(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
306 unsafe {
307 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x282c7a0usize)as*mut u8,i32;
309(TMP_SpriteAsset)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
310 }
311 }
312 #[doc = "`SortGlyphTable()` overload"]
313 fn sort_glyph_table(self) -> () {
314 unsafe {
315 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x282d450usize)as*mut u8,();
317(TMP_SpriteAsset)__receiver)
318 }
319 }
320 #[doc = "`SortCharacterTable()` overload"]
321 fn sort_character_table(self) -> () {
322 unsafe {
323 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x282d5f0usize)as*mut u8,();
325(TMP_SpriteAsset)__receiver)
326 }
327 }
328 #[doc = "`SortGlyphAndCharacterTables()` overload"]
329 fn sort_glyph_and_character_tables(self) -> () {
330 unsafe {
331 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x282d790usize)as*mut u8,();
333(TMP_SpriteAsset)__receiver)
334 }
335 }
336 #[doc = "`UpgradeSpriteAsset()` overload"]
337 fn upgrade_sprite_asset(self) -> () {
338 unsafe {
339 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!((::unity::module_base()+0x282bff0usize)as*mut u8,();
341(TMP_SpriteAsset)__receiver)
342 }
343 }
344 #[doc = "`.ctor()` overload"]
345 fn ctor(self) -> () {
346 unsafe {
347 let __receiver = <TMP_SpriteAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348 ::unity::il2cpp_call!((::unity::module_base()+0x282d8b0usize)as*mut u8,();
349(TMP_SpriteAsset)__receiver)
350 }
351 }
352}
353
354#[cfg(feature = "tm_pro-tmp_spriteasset")]
355impl<__T: ITMP_SpriteAsset> ITMP_SpriteAssetMethods for __T {}
356
357#[cfg(feature = "tm_pro-tmp_spriteasset")]
358impl TMP_SpriteAsset {
359 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
361 }
362
363 pub fn set_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
365 }
366
367 pub fn get_face_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
369 }
370
371 pub fn set_face_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
373 }
374
375 pub fn get_sprite_character_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
377 }
378
379 pub fn set_sprite_character_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
381 }
382
383 pub fn get_sprite_character_lookup_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
385 }
386
387 pub fn set_sprite_character_lookup_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
389 }
390
391 pub fn get_sprite_glyph_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
393 }
394
395 pub fn set_sprite_glyph_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
397 }
398
399 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
401 }
402
403 pub fn get_default_sprite_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
405 }
406
407 pub fn update_lookup_tables_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
409 }
410
411 pub fn get_sprite_index_from_hashcode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
413 }
414
415 pub fn get_sprite_index_from_unicode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
417 }
418
419 pub fn get_sprite_index_from_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
421 }
422
423 pub fn search_for_sprite_by_unicode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
425 }
426
427 pub fn search_for_sprite_by_unicode_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
429 }
430
431 pub fn search_for_sprite_by_unicode_internal_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
433 }
434
435 pub fn search_for_sprite_by_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
437 }
438
439 pub fn search_for_sprite_by_hash_code_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
441 }
442
443 pub fn search_for_sprite_by_hash_code_internal_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
445 }
446
447 pub fn sort_glyph_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
449 }
450
451 pub fn sort_character_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
453 }
454
455 pub fn sort_glyph_and_character_tables_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
457 }
458
459 pub fn upgrade_sprite_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
461 }
462
463 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
465 }
466}
467
468#[cfg(feature = "tm_pro-tmp_spriteasset")]
469impl TMP_SpriteAsset {
470 #[doc = "`.ctor()` — no args"]
471 pub fn new() -> Self {
472 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
473 panic!(
474 "{}
475::{}
476 failed to instantiate",
477 ::core::stringify!(TMP_SpriteAsset),
478 ::core::stringify!(new),
479 )
480 });
481 <Self as ITMP_SpriteAssetMethods>::ctor(this);
482 this
483 }
484}
485
486#[cfg(feature = "tm_pro-tmp_spriteasset")]
487#[doc(hidden)]
488pub mod prelude {
489 pub use super::{ITMP_SpriteAsset, ITMP_SpriteAssetMethods, TMP_SpriteAsset};
490 #[cfg(feature = "system-object")]
491 pub use crate::system::object::IObjectMethods;
492 #[cfg(feature = "tm_pro-tmp_asset")]
493 pub use crate::tm_pro::tmp_asset::ITMP_AssetMethods;
494 #[cfg(feature = "unity_engine-object_2")]
495 pub use crate::unity_engine::object_2::IObject_2Methods;
496 #[cfg(feature = "unity_engine-scriptableobject")]
497 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
498 pub use crate::{
499 system::object::IObject,
500 tm_pro::tmp_asset::ITMP_Asset,
501 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
502 };
503}