Skip to main content

engage/generated/app/
gameicon.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gameicon-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gameicon/GameIcon.md"))]
11    #[::unity::class(namespace = "App", name = "GameIcon")]
12    #[parent(crate::system::object::Object)]
13    pub struct GameIcon {
14        #[static_field]
15        #[rename(name = "s_Skill")]
16        pub s_skill: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
17        #[static_field]
18        #[rename(name = "s_Item")]
19        pub s_item: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
20        #[static_field]
21        #[rename(name = "s_Efficacy")]
22        pub s_efficacy: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
23        #[static_field]
24        #[rename(name = "s_EfficacyOutline")]
25        pub s_efficacy_outline: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
26        #[static_field]
27        #[rename(name = "s_ItemKinds")]
28        pub s_item_kinds: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
29        #[static_field]
30        #[rename(name = "s_ItemOutlineKinds")]
31        pub s_item_outline_kinds: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
32        #[static_field]
33        #[rename(name = "s_GodSymbol")]
34        pub s_god_symbol: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
35        #[static_field]
36        #[rename(name = "s_GodRing")]
37        pub s_god_ring: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
38        #[static_field]
39        #[rename(name = "s_System")]
40        pub s_system: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
41        #[static_field]
42        #[rename(name = "s_UnitIconIndex")]
43        pub s_unit_icon_index: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
44        #[static_field]
45        #[rename(name = "s_UnitIconPallete")]
46        pub s_unit_icon_pallete: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
47    }
48}
49
50#[cfg(feature = "app-gameicon-types")]
51pub use __types::*;
52
53#[cfg(feature = "app-gameicon")]
54impl GameIcon {
55    #[doc = "`LoadAsync()` overload"]
56    pub fn load_async() -> () {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x227bfb0usize)as*mut u8,();
59            )
60        }
61    }
62
63    #[doc = "`Unload()` overload"]
64    pub fn unload() -> () {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x227c510usize)as*mut u8,();
67            )
68        }
69    }
70
71    #[doc = "`TryGetItemKind(::unity::Il2CppString, bool)` overload"]
72    pub fn try_get_item_kind(
73        icon_name: impl ::core::convert::Into<::unity::Il2CppString>,
74        is_outline: impl ::core::convert::Into<bool>,
75    ) -> crate::unity_engine::sprite::Sprite {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x227c740usize)as*mut u8,crate::unity_engine::sprite::Sprite;
78(::unity::Il2CppString)::core::convert::Into::into(icon_name),(bool)::core::convert::Into::into(is_outline))
79        }
80    }
81
82    #[doc = "`TryGetItemKind(crate::app::itemdata::ItemData_Kinds, bool)` overload"]
83    pub fn try_get_item_kind_2(
84        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
85        is_outline: impl ::core::convert::Into<bool>,
86    ) -> crate::unity_engine::sprite::Sprite {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x227c7c0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
89(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind),(bool)::core::convert::Into::into(is_outline))
90        }
91    }
92
93    #[doc = "`TryGetItemKind(crate::app::itemdata::ItemData_Kinds, bool, bool)` overload"]
94    pub fn try_get_item_kind_3(
95        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
96        is_bullet: impl ::core::convert::Into<bool>,
97        is_outline: impl ::core::convert::Into<bool>,
98    ) -> crate::unity_engine::sprite::Sprite {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x227caa0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
101(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind),(bool)::core::convert::Into::into(is_bullet),(bool)::core::convert::Into::into(is_outline))
102        }
103    }
104
105    #[doc = "`TryGetItemKind(crate::app::itemdata::ItemData_Kinds, crate::app::jobdata::JobData, bool)` overload"]
106    pub fn try_get_item_kind_4(
107        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
108        job_data: impl ::core::convert::Into<crate::app::jobdata::JobData>,
109        is_outline: impl ::core::convert::Into<bool>,
110    ) -> crate::unity_engine::sprite::Sprite {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x227cb70usize)as*mut u8,crate::unity_engine::sprite::Sprite;
113(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind),(crate::app::jobdata::JobData)::core::convert::Into::into(job_data),(bool)::core::convert::Into::into(is_outline))
114        }
115    }
116
117    #[doc = "`TryGetItemKind(crate::app::itemdata::ItemData, bool)` overload"]
118    pub fn try_get_item_kind_5(
119        item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
120        is_outline: impl ::core::convert::Into<bool>,
121    ) -> crate::unity_engine::sprite::Sprite {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x227cc60usize)as*mut u8,crate::unity_engine::sprite::Sprite;
124(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data),(bool)::core::convert::Into::into(is_outline))
125        }
126    }
127
128    #[doc = "`TryGetItem(::unity::Il2CppString)` overload"]
129    pub fn try_get_item(icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x227cd50usize)as*mut u8,crate::unity_engine::sprite::Sprite;
132(::unity::Il2CppString)::core::convert::Into::into(icon_name))
133        }
134    }
135
136    #[doc = "`TryGetItem(crate::app::itemdata::ItemData)` overload"]
137    pub fn try_get_item_2(item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> crate::unity_engine::sprite::Sprite {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x227cdd0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
140(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
141        }
142    }
143
144    #[doc = "`TryGetSystemItem(crate::app::itemdata::ItemData)` overload"]
145    pub fn try_get_system_item(item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> crate::unity_engine::sprite::Sprite {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x227cf60usize)as*mut u8,crate::unity_engine::sprite::Sprite;
148(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
149        }
150    }
151
152    #[doc = "`TryGetEfficacy(::unity::Il2CppString, bool)` overload"]
153    pub fn try_get_efficacy(
154        icon_label: impl ::core::convert::Into<::unity::Il2CppString>,
155        is_outline: impl ::core::convert::Into<bool>,
156    ) -> crate::unity_engine::sprite::Sprite {
157        unsafe {
158            ::unity::il2cpp_call!((::unity::module_base()+0x227d090usize)as*mut u8,crate::unity_engine::sprite::Sprite;
159(::unity::Il2CppString)::core::convert::Into::into(icon_label),(bool)::core::convert::Into::into(is_outline))
160        }
161    }
162
163    #[doc = "`TryGetSkill(::unity::Il2CppString)` overload"]
164    pub fn try_get_skill(skill_icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x227d110usize)as*mut u8,crate::unity_engine::sprite::Sprite;
167(::unity::Il2CppString)::core::convert::Into::into(skill_icon_name))
168        }
169    }
170
171    #[doc = "`TryGetSkillEmpty()` overload"]
172    pub fn try_get_skill_empty() -> crate::unity_engine::sprite::Sprite {
173        unsafe {
174            ::unity::il2cpp_call!((::unity::module_base()+0x227d220usize)as*mut u8,crate::unity_engine::sprite::Sprite;
175            )
176        }
177    }
178
179    #[doc = "`TryGetGodSymbol(crate::app::goddata::GodData)` overload"]
180    pub fn try_get_god_symbol(god_data: impl ::core::convert::Into<crate::app::goddata::GodData>) -> crate::unity_engine::sprite::Sprite {
181        unsafe {
182            ::unity::il2cpp_call!((::unity::module_base()+0x227d290usize)as*mut u8,crate::unity_engine::sprite::Sprite;
183(crate::app::goddata::GodData)::core::convert::Into::into(god_data))
184        }
185    }
186
187    #[doc = "`TryGetGodRing(crate::app::unit::Unit)` overload"]
188    pub fn try_get_god_ring(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::unity_engine::sprite::Sprite {
189        unsafe {
190            ::unity::il2cpp_call!((::unity::module_base()+0x227d2f0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
191(crate::app::unit::Unit)::core::convert::Into::into(unit))
192        }
193    }
194
195    #[doc = "`TryGetGodRing(crate::app::goddata::GodData)` overload"]
196    pub fn try_get_god_ring_2(god_data: impl ::core::convert::Into<crate::app::goddata::GodData>) -> crate::unity_engine::sprite::Sprite {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x227d480usize)as*mut u8,crate::unity_engine::sprite::Sprite;
199(crate::app::goddata::GodData)::core::convert::Into::into(god_data))
200        }
201    }
202
203    #[doc = "`TryGetGodRing(crate::app::ringdata::RingData)` overload"]
204    pub fn try_get_god_ring_3(ring: impl ::core::convert::Into<crate::app::ringdata::RingData>) -> crate::unity_engine::sprite::Sprite {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x227d4f0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
207(crate::app::ringdata::RingData)::core::convert::Into::into(ring))
208        }
209    }
210
211    #[doc = "`TryGetGodRing(crate::app::ringdata::RingData_Ranks)` overload"]
212    pub fn try_get_god_ring_4(rank: impl ::core::convert::Into<crate::app::ringdata::RingData_Ranks>) -> crate::unity_engine::sprite::Sprite {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x227d500usize)as*mut u8,crate::unity_engine::sprite::Sprite;
215(crate::app::ringdata::RingData_Ranks)::core::convert::Into::into(rank))
216        }
217    }
218
219    #[doc = "`TryGetAccessoryKinds(crate::app::accessorydata::AccessoryData_Kinds)` overload"]
220    pub fn try_get_accessory_kinds(
221        accessory_kinds: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData_Kinds>,
222    ) -> crate::unity_engine::sprite::Sprite {
223        unsafe {
224            ::unity::il2cpp_call!((::unity::module_base()+0x227d5b0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
225(crate::app::accessorydata::AccessoryData_Kinds)::core::convert::Into::into(accessory_kinds))
226        }
227    }
228
229    #[doc = "`TryGetCommonRing(crate::app::ringdata::RingData_Ranks)` overload"]
230    pub fn try_get_common_ring(
231        ring_data_rank: impl ::core::convert::Into<crate::app::ringdata::RingData_Ranks>,
232    ) -> crate::unity_engine::sprite::Sprite {
233        unsafe {
234            ::unity::il2cpp_call!((::unity::module_base()+0x227d650usize)as*mut u8,crate::unity_engine::sprite::Sprite;
235(crate::app::ringdata::RingData_Ranks)::core::convert::Into::into(ring_data_rank))
236        }
237    }
238
239    #[doc = "`TryGetSystem(::unity::Il2CppString)` overload"]
240    pub fn try_get_system(icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
241        unsafe {
242            ::unity::il2cpp_call!((::unity::module_base()+0x227cf00usize)as*mut u8,crate::unity_engine::sprite::Sprite;
243(::unity::Il2CppString)::core::convert::Into::into(icon_name))
244        }
245    }
246
247    #[doc = "`TyrGetUnitIconIndex(::unity::Il2CppString)` overload"]
248    pub fn tyr_get_unit_icon_index(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
249        unsafe {
250            ::unity::il2cpp_call!((::unity::module_base()+0x227d710usize)as*mut u8,crate::unity_engine::sprite::Sprite;
251(::unity::Il2CppString)::core::convert::Into::into(name))
252        }
253    }
254
255    #[doc = "`TyrGetUnitIconPallete(::unity::Il2CppString)` overload"]
256    pub fn tyr_get_unit_icon_pallete(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
257        unsafe {
258            ::unity::il2cpp_call!((::unity::module_base()+0x227d790usize)as*mut u8,crate::unity_engine::sprite::Sprite;
259(::unity::Il2CppString)::core::convert::Into::into(name))
260        }
261    }
262
263    #[doc = "`ClearUnitIconCache()` overload"]
264    pub fn clear_unit_icon_cache() -> () {
265        unsafe {
266            ::unity::il2cpp_call!((::unity::module_base()+0x227d810usize)as*mut u8,();
267            )
268        }
269    }
270}
271
272#[cfg(feature = "app-gameicon")]
273pub trait IGameIconMethods: IGameIcon {
274    #[doc = "`.ctor()` overload"]
275    fn ctor(self) -> () {
276        unsafe {
277            let __receiver = <GameIcon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x227d880usize)as*mut u8,();
279(GameIcon)__receiver)
280        }
281    }
282}
283
284#[cfg(feature = "app-gameicon")]
285impl<__T: IGameIcon> IGameIconMethods for __T {}
286
287#[cfg(feature = "app-gameicon")]
288impl GameIcon {
289    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
291    }
292
293    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
295    }
296
297    pub fn try_get_item_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
299    }
300
301    pub fn try_get_item_kind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
303    }
304
305    pub fn try_get_item_kind_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
307    }
308
309    pub fn try_get_item_kind_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
311    }
312
313    pub fn try_get_item_kind_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
315    }
316
317    pub fn try_get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
319    }
320
321    pub fn try_get_item_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
323    }
324
325    pub fn try_get_system_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
327    }
328
329    pub fn try_get_efficacy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
331    }
332
333    pub fn try_get_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
335    }
336
337    pub fn try_get_skill_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
339    }
340
341    pub fn try_get_god_symbol_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
343    }
344
345    pub fn try_get_god_ring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
347    }
348
349    pub fn try_get_god_ring_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
351    }
352
353    pub fn try_get_god_ring_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
355    }
356
357    pub fn try_get_god_ring_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
359    }
360
361    pub fn try_get_accessory_kinds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
363    }
364
365    pub fn try_get_common_ring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
367    }
368
369    pub fn try_get_system_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
371    }
372
373    pub fn tyr_get_unit_icon_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
375    }
376
377    pub fn tyr_get_unit_icon_pallete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
379    }
380
381    pub fn clear_unit_icon_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
383    }
384
385    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
387    }
388}
389
390#[cfg(feature = "app-gameicon")]
391impl GameIcon {
392    #[doc = "`.ctor()` — no args"]
393    pub fn new() -> Self {
394        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
395            panic!(
396                "{}
397::{}
398 failed to instantiate",
399                ::core::stringify!(GameIcon),
400                ::core::stringify!(new),
401            )
402        });
403        <Self as IGameIconMethods>::ctor(this);
404        this
405    }
406}
407
408#[cfg(feature = "app-gameicon")]
409#[doc(hidden)]
410pub mod prelude {
411    pub use super::{GameIcon, IGameIcon, IGameIconMethods};
412    pub use crate::system::object::IObject;
413    #[cfg(feature = "system-object")]
414    pub use crate::system::object::IObjectMethods;
415}