engage/generated/app/
spriteatlasmanager_2.rs1#[cfg(feature = "app-spriteatlasmanager_2-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/spriteatlasmanager_2/SpriteAtlasManager_2.md"))]
11 #[::unity::class(namespace = "App", name = "SpriteAtlasManager")]
12 #[parent(crate::system::object::Object)]
13 pub struct SpriteAtlasManager_2 {
14 #[offset(16)]
15 #[rename(name = "m_Handle")]
16 pub m_handle: crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::u2d::spriteatlas::SpriteAtlas>,
17 #[offset(24)]
18 #[rename(name = "m_SpriteAtlas")]
19 pub m_sprite_atlas: crate::unity_engine::u2d::spriteatlas::SpriteAtlas,
20 #[offset(32)]
21 #[rename(name = "m_CacheTable")]
22 pub m_cache_table:
23 crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::unity_engine::sprite::Sprite>,
24 }
25}
26
27#[cfg(feature = "app-spriteatlasmanager_2-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-spriteatlasmanager_2")]
31pub trait ISpriteAtlasManager_2Methods: ISpriteAtlasManager_2 {
32 #[doc = "`LoadAsync(::unity::Il2CppString)` overload"]
33 fn load_async(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
34 unsafe {
35 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x24ff430usize)as*mut u8,();
37(SpriteAtlasManager_2)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
38 }
39 }
40 #[doc = "`IsLoading()` overload"]
41 fn is_loading(self) -> bool {
42 unsafe {
43 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x24ff560usize)as*mut u8,bool;
45(SpriteAtlasManager_2)__receiver)
46 }
47 }
48 #[doc = "`IsLoaded()` overload"]
49 fn is_loaded(self) -> bool {
50 unsafe {
51 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x24ff590usize)as*mut u8,bool;
53(SpriteAtlasManager_2)__receiver)
54 }
55 }
56 #[doc = "`Unload()` overload"]
57 fn unload(self) -> () {
58 unsafe {
59 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x24ff610usize)as*mut u8,();
61(SpriteAtlasManager_2)__receiver)
62 }
63 }
64 #[doc = "`Get(::unity::Il2CppString)` overload"]
65 fn get(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
66 unsafe {
67 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x24ff850usize)as*mut u8,crate::unity_engine::sprite::Sprite;
69(SpriteAtlasManager_2)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
70 }
71 }
72 #[doc = "`TryGet(::unity::Il2CppString)` overload"]
73 fn try_get(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
74 unsafe {
75 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x24ff8e0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
77(SpriteAtlasManager_2)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
78 }
79 }
80 #[doc = "`ClearCache()` overload"]
81 fn clear_cache(self) -> () {
82 unsafe {
83 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x24ff670usize)as*mut u8,();
85(SpriteAtlasManager_2)__receiver)
86 }
87 }
88 #[doc = "`.ctor()` overload"]
89 fn ctor(self) -> () {
90 unsafe {
91 let __receiver = <SpriteAtlasManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x24ff9e0usize)as*mut u8,();
93(SpriteAtlasManager_2)__receiver)
94 }
95 }
96}
97
98#[cfg(feature = "app-spriteatlasmanager_2")]
99impl<__T: ISpriteAtlasManager_2> ISpriteAtlasManager_2Methods for __T {}
100
101#[cfg(feature = "app-spriteatlasmanager_2")]
102impl SpriteAtlasManager_2 {
103 pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105 }
106
107 pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109 }
110
111 pub fn is_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113 }
114
115 pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117 }
118
119 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121 }
122
123 pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
125 }
126
127 pub fn clear_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
129 }
130
131 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
133 }
134}
135
136#[cfg(feature = "app-spriteatlasmanager_2")]
137impl SpriteAtlasManager_2 {
138 #[doc = "`.ctor()` — no args"]
139 pub fn new() -> Self {
140 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
141 panic!(
142 "{}
143::{}
144 failed to instantiate",
145 ::core::stringify!(SpriteAtlasManager_2),
146 ::core::stringify!(new),
147 )
148 });
149 <Self as ISpriteAtlasManager_2Methods>::ctor(this);
150 this
151 }
152}
153
154#[cfg(feature = "app-spriteatlasmanager_2")]
155#[doc(hidden)]
156pub mod prelude {
157 pub use super::{ISpriteAtlasManager_2, ISpriteAtlasManager_2Methods, SpriteAtlasManager_2};
158 pub use crate::system::object::IObject;
159 #[cfg(feature = "system-object")]
160 pub use crate::system::object::IObjectMethods;
161}