engage/generated/app/
spritemanager.rs1#[cfg(feature = "app-spritemanager-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/spritemanager/SpriteManager.md"))]
11 #[::unity::class(namespace = "App", name = "SpriteManager")]
12 #[parent(crate::system::object::Object)]
13 pub struct SpriteManager {
14 #[offset(16)]
15 #[rename(name = "m_Sprites")]
16 pub m_sprites: ::unity::Array<crate::unity_engine::sprite::Sprite>,
17 #[offset(24)]
18 #[rename(name = "m_Dictionary")]
19 pub m_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::unity_engine::sprite::Sprite>,
20 }
21}
22
23#[cfg(feature = "app-spritemanager-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-spritemanager")]
27pub trait ISpriteManagerMethods: ISpriteManager {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <SpriteManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x24ffc80usize)as*mut u8,();
33(SpriteManager)__receiver)
34 }
35 }
36 #[doc = "`Load(::unity::Il2CppString)` overload"]
37 fn load(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
38 unsafe {
39 let __receiver = <SpriteManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x24ffd10usize)as*mut u8,();
41(SpriteManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
42 }
43 }
44 #[doc = "`Unload()` overload"]
45 fn unload(self) -> () {
46 unsafe {
47 let __receiver = <SpriteManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x24ffe40usize)as*mut u8,();
49(SpriteManager)__receiver)
50 }
51 }
52 #[doc = "`Get(::unity::Il2CppString)` overload"]
53 fn get(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
54 unsafe {
55 let __receiver = <SpriteManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x24fff70usize)as*mut u8,crate::unity_engine::sprite::Sprite;
57(SpriteManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
58 }
59 }
60 #[doc = "`TryGet(::unity::Il2CppString)` overload"]
61 fn try_get(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
62 unsafe {
63 let __receiver = <SpriteManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x24fffd0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
65(SpriteManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
66 }
67 }
68}
69
70#[cfg(feature = "app-spritemanager")]
71impl<__T: ISpriteManager> ISpriteManagerMethods for __T {}
72
73#[cfg(feature = "app-spritemanager")]
74impl SpriteManager {
75 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77 }
78
79 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81 }
82
83 pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85 }
86
87 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
89 }
90
91 pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
93 }
94}
95
96#[cfg(feature = "app-spritemanager")]
97impl SpriteManager {
98 #[doc = "`.ctor()` — no args"]
99 pub fn new() -> Self {
100 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
101 panic!(
102 "{}
103::{}
104 failed to instantiate",
105 ::core::stringify!(SpriteManager),
106 ::core::stringify!(new),
107 )
108 });
109 <Self as ISpriteManagerMethods>::ctor(this);
110 this
111 }
112}
113
114#[cfg(feature = "app-spritemanager")]
115#[doc(hidden)]
116pub mod prelude {
117 pub use super::{ISpriteManager, ISpriteManagerMethods, SpriteManager};
118 pub use crate::system::object::IObject;
119 #[cfg(feature = "system-object")]
120 pub use crate::system::object::IObjectMethods;
121}