Skip to main content

engage/generated/app/
fortunetellingcard.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fortunetellingcard-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/fortunetellingcard/FortuneTellingCard.md"))]
11    #[::unity::class(namespace = "App", name = "FortuneTellingCard")]
12    #[parent(crate::system::object::Object)]
13    pub struct FortuneTellingCard {
14        #[static_field]
15        #[rename(name = "Path")]
16        pub path: ::unity::Il2CppString,
17        #[static_field]
18        #[rename(name = "s_FortuneTellingCard")]
19        pub s_fortune_telling_card: crate::app::spriteatlasmanager_2::SpriteAtlasManager_2,
20    }
21}
22
23#[cfg(feature = "app-fortunetellingcard-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-fortunetellingcard")]
27impl FortuneTellingCard {
28    #[doc = "`LoadAsync()` overload"]
29    pub fn load_async() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2616fb0usize)as*mut u8,();
32            )
33        }
34    }
35
36    #[doc = "`Unload()` overload"]
37    pub fn unload() -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x26170a0usize)as*mut u8,();
40            )
41        }
42    }
43
44    #[doc = "`Get(::unity::Il2CppString)` overload"]
45    pub fn get(icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::sprite::Sprite {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2617160usize)as*mut u8,crate::unity_engine::sprite::Sprite;
48(::unity::Il2CppString)::core::convert::Into::into(icon_name))
49        }
50    }
51
52    #[doc = "`.cctor()` overload"]
53    pub fn cctor() -> () {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2617230usize)as*mut u8,();
56            )
57        }
58    }
59}
60
61#[cfg(feature = "app-fortunetellingcard")]
62pub trait IFortuneTellingCardMethods: IFortuneTellingCard {
63    #[doc = "`.ctor()` overload"]
64    fn ctor(self) -> () {
65        unsafe {
66            let __receiver = <FortuneTellingCard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2617220usize)as*mut u8,();
68(FortuneTellingCard)__receiver)
69        }
70    }
71}
72
73#[cfg(feature = "app-fortunetellingcard")]
74impl<__T: IFortuneTellingCard> IFortuneTellingCardMethods for __T {}
75
76#[cfg(feature = "app-fortunetellingcard")]
77impl FortuneTellingCard {
78    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81
82    pub fn unload_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84    }
85
86    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
88    }
89
90    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
92    }
93
94    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
96    }
97}
98
99#[cfg(feature = "app-fortunetellingcard")]
100impl FortuneTellingCard {
101    #[doc = "`.ctor()` — no args"]
102    pub fn new() -> Self {
103        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
104            panic!(
105                "{}
106::{}
107 failed to instantiate",
108                ::core::stringify!(FortuneTellingCard),
109                ::core::stringify!(new),
110            )
111        });
112        <Self as IFortuneTellingCardMethods>::ctor(this);
113        this
114    }
115}
116
117#[cfg(feature = "app-fortunetellingcard")]
118#[doc(hidden)]
119pub mod prelude {
120    pub use super::{FortuneTellingCard, IFortuneTellingCard, IFortuneTellingCardMethods};
121    pub use crate::system::object::IObject;
122    #[cfg(feature = "system-object")]
123    pub use crate::system::object::IObjectMethods;
124}