engage/generated/app/
commonsprite.rs1#[cfg(feature = "app-commonsprite-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/commonsprite/CommonSprite.md"))]
11 #[::unity::class(namespace = "App", name = "CommonSprite")]
12 #[parent(crate::system::object::Object)]
13 pub struct CommonSprite {
14 #[static_field]
15 #[rename(name = "s_AtlasManager")]
16 pub s_atlas_manager: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
17 }
18}
19
20#[cfg(feature = "app-commonsprite-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-commonsprite")]
24impl CommonSprite {
25 #[doc = "`LoadAsync()` overload"]
26 pub fn load_async() -> () {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x2535f00usize)as*mut u8,();
29 )
30 }
31 }
32
33 #[doc = "`Unload()` overload"]
34 pub fn unload() -> () {
35 unsafe {
36 ::unity::il2cpp_call!((::unity::module_base()+0x2536000usize)as*mut u8,();
37 )
38 }
39 }
40
41 #[doc = "`TryGet(::unity::Il2CppString)` overload"]
42 pub fn try_get(sprite_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x25360c0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
45(::unity::Il2CppString)::core::convert::Into::into(sprite_name))
46 }
47 }
48
49 #[doc = "`.cctor()` overload"]
50 pub fn cctor() -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x2536150usize)as*mut u8,();
53 )
54 }
55 }
56}
57
58#[cfg(feature = "app-commonsprite")]
59pub trait ICommonSpriteMethods: ICommonSprite {
60 #[doc = "`.ctor()` overload"]
61 fn ctor(self) -> () {
62 unsafe {
63 let __receiver = <CommonSprite as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x2536140usize)as*mut u8,();
65(CommonSprite)__receiver)
66 }
67 }
68}
69
70#[cfg(feature = "app-commonsprite")]
71impl<__T: ICommonSprite> ICommonSpriteMethods for __T {}
72
73#[cfg(feature = "app-commonsprite")]
74impl CommonSprite {
75 pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77 }
78
79 pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81 }
82
83 pub fn try_get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85 }
86
87 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
89 }
90
91 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
93 }
94}
95
96#[cfg(feature = "app-commonsprite")]
97impl CommonSprite {
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!(CommonSprite),
106 ::core::stringify!(new),
107 )
108 });
109 <Self as ICommonSpriteMethods>::ctor(this);
110 this
111 }
112}
113
114#[cfg(feature = "app-commonsprite")]
115#[doc(hidden)]
116pub mod prelude {
117 pub use super::{CommonSprite, ICommonSprite, ICommonSpriteMethods};
118 pub use crate::system::object::IObject;
119 #[cfg(feature = "system-object")]
120 pub use crate::system::object::IObjectMethods;
121}