Skip to main content

engage/generated/app/
relaysprite.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relaysprite-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/relaysprite/RelaySprite.md"))]
11    #[::unity::class(namespace = "App", name = "RelaySprite")]
12    #[parent(crate::system::object::Object)]
13    pub struct RelaySprite {
14        #[static_field]
15        #[rename(name = "RelayStampPath")]
16        pub relay_stamp_path: ::unity::Il2CppString,
17        #[static_field]
18        #[rename(name = "RelayMapPath")]
19        pub relay_map_path: ::unity::Il2CppString,
20        #[static_field]
21        #[rename(name = "s_RelayStamp")]
22        pub s_relay_stamp: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
23        #[static_field]
24        #[rename(name = "s_RelayMapThumb")]
25        pub s_relay_map_thumb: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
26    }
27}
28
29#[cfg(feature = "app-relaysprite-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-relaysprite")]
33impl RelaySprite {
34    #[doc = "`LoadAsync()` overload"]
35    pub fn load_async() -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x200c9e0usize)as*mut u8,();
38            )
39        }
40    }
41
42    #[doc = "`LoadRelayStampAsync()` overload"]
43    pub fn load_relay_stamp_async() -> () {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x200cb70usize)as*mut u8,();
46            )
47        }
48    }
49
50    #[doc = "`IsLoading()` overload"]
51    pub fn is_loading() -> bool {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x200cc60usize)as*mut u8,bool;
54            )
55        }
56    }
57
58    #[doc = "`Unload()` overload"]
59    pub fn unload() -> () {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x200cdc0usize)as*mut u8,();
62            )
63        }
64    }
65
66    #[doc = "`GetStamp(::unity::Il2CppString)` overload"]
67    pub fn get_stamp(path: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2001600usize)as*mut u8,crate::unity_engine::sprite::Sprite;
70(::unity::Il2CppString)::core::convert::Into::into(path))
71        }
72    }
73
74    #[doc = "`GetMapThumb(::unity::Il2CppString)` overload"]
75    pub fn get_map_thumb(cid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x200cef0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
78(::unity::Il2CppString)::core::convert::Into::into(cid))
79        }
80    }
81
82    #[doc = "`.cctor()` overload"]
83    pub fn cctor() -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x200cfd0usize)as*mut u8,();
86            )
87        }
88    }
89}
90
91#[cfg(feature = "app-relaysprite")]
92pub trait IRelaySpriteMethods: IRelaySprite {
93    #[doc = "`.ctor()` overload"]
94    fn ctor(self) -> () {
95        unsafe {
96            let __receiver = <RelaySprite as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x200cfc0usize)as*mut u8,();
98(RelaySprite)__receiver)
99        }
100    }
101}
102
103#[cfg(feature = "app-relaysprite")]
104impl<__T: IRelaySprite> IRelaySpriteMethods for __T {}
105
106#[cfg(feature = "app-relaysprite")]
107impl RelaySprite {
108    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110    }
111
112    pub fn load_relay_stamp_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114    }
115
116    pub fn is_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118    }
119
120    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122    }
123
124    pub fn get_stamp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
126    }
127
128    pub fn get_map_thumb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
130    }
131
132    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
134    }
135
136    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
138    }
139}
140
141#[cfg(feature = "app-relaysprite")]
142impl RelaySprite {
143    #[doc = "`.ctor()` — no args"]
144    pub fn new() -> Self {
145        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
146            panic!(
147                "{}
148::{}
149 failed to instantiate",
150                ::core::stringify!(RelaySprite),
151                ::core::stringify!(new),
152            )
153        });
154        <Self as IRelaySpriteMethods>::ctor(this);
155        this
156    }
157}
158
159#[cfg(feature = "app-relaysprite")]
160#[doc(hidden)]
161pub mod prelude {
162    pub use super::{IRelaySprite, IRelaySpriteMethods, RelaySprite};
163    pub use crate::system::object::IObject;
164    #[cfg(feature = "system-object")]
165    pub use crate::system::object::IObjectMethods;
166}