Skip to main content

engage/generated/app/
loadingmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-loadingmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/loadingmanager/LoadingManager_Modes.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct LoadingManager_Modes {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for LoadingManager_Modes {
21        const NAME: &'static str = "LoadingManager.Modes";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for LoadingManager_Modes {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl LoadingManager_Modes {
35        pub fn none() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn map() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn hub() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn gmap() -> Self {
48            Self { value: 3 }
49        }
50
51        pub fn cook() -> Self {
52            Self { value: 4 }
53        }
54    }
55
56    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/loadingmanager/LoadingManager.md"))]
57    #[::unity::class(namespace = "App", name = "LoadingManager")]
58    #[parent(crate::system::object::Object)]
59    pub struct LoadingManager {
60        #[static_field]
61        #[rename(name = "s_Binder")]
62        pub s_binder: crate::app::bindholder::BindHolder,
63        #[static_field]
64        #[rename(name = "s_Timer")]
65        pub s_timer: crate::app::timer::Timer,
66        #[static_field]
67        #[rename(name = "s_FadeBind")]
68        pub s_fade_bind: bool,
69    }
70}
71
72#[cfg(feature = "app-loadingmanager-types")]
73pub use __types::*;
74
75#[cfg(feature = "app-loadingmanager")]
76impl LoadingManager {
77    #[doc = "`Bind()` overload"]
78    pub fn bind() -> () {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x1bee4e0usize)as*mut u8,();
81            )
82        }
83    }
84
85    #[doc = "`Bind(crate::app::loadingmanager::LoadingManager_Modes)` overload"]
86    pub fn bind_2(mode: impl ::core::convert::Into<crate::app::loadingmanager::LoadingManager_Modes>) -> () {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x1bee550usize)as*mut u8,();
89(crate::app::loadingmanager::LoadingManager_Modes)::core::convert::Into::into(mode))
90        }
91    }
92
93    #[doc = "`BindForCook(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
94    pub fn bind_for_cook(
95        hero_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
96        eat_unit0: impl ::core::convert::Into<crate::app::unit::Unit>,
97        eat_unit1: impl ::core::convert::Into<crate::app::unit::Unit>,
98    ) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x1bee620usize)as*mut u8,();
101(crate::app::unit::Unit)::core::convert::Into::into(hero_unit),(crate::app::unit::Unit)::core::convert::Into::into(eat_unit0),(crate::app::unit::Unit)::core::convert::Into::into(eat_unit1))
102        }
103    }
104
105    #[doc = "`Update()` overload"]
106    pub fn update() -> () {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x1bee750usize)as*mut u8,();
109            )
110        }
111    }
112
113    #[doc = "`Unbind()` overload"]
114    pub fn unbind() -> () {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x1bee830usize)as*mut u8,();
117            )
118        }
119    }
120
121    #[doc = "`IsBind()` overload"]
122    pub fn is_bind() -> bool {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x1bee8f0usize)as*mut u8,bool;
125            )
126        }
127    }
128
129    #[doc = "`TryFadeBind()` overload"]
130    pub fn try_fade_bind() -> () {
131        unsafe {
132            ::unity::il2cpp_call!((::unity::module_base()+0x1bee960usize)as*mut u8,();
133            )
134        }
135    }
136
137    #[doc = "`.cctor()` overload"]
138    pub fn cctor() -> () {
139        unsafe {
140            ::unity::il2cpp_call!((::unity::module_base()+0x1beeaa0usize)as*mut u8,();
141            )
142        }
143    }
144}
145
146#[cfg(feature = "app-loadingmanager")]
147pub trait ILoadingManagerMethods: ILoadingManager {
148    #[doc = "`.ctor()` overload"]
149    fn ctor(self) -> () {
150        unsafe {
151            let __receiver = <LoadingManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x1beea90usize)as*mut u8,();
153(LoadingManager)__receiver)
154        }
155    }
156}
157
158#[cfg(feature = "app-loadingmanager")]
159impl<__T: ILoadingManager> ILoadingManagerMethods for __T {}
160
161#[cfg(feature = "app-loadingmanager")]
162impl LoadingManager {
163    pub fn bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
165    }
166
167    pub fn bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
169    }
170
171    pub fn bind_for_cook_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
173    }
174
175    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
177    }
178
179    pub fn unbind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
181    }
182
183    pub fn is_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
185    }
186
187    pub fn try_fade_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
189    }
190
191    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
193    }
194
195    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
197    }
198}
199
200#[cfg(feature = "app-loadingmanager")]
201impl LoadingManager {
202    #[doc = "`.ctor()` — no args"]
203    pub fn new() -> Self {
204        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
205            panic!(
206                "{}
207::{}
208 failed to instantiate",
209                ::core::stringify!(LoadingManager),
210                ::core::stringify!(new),
211            )
212        });
213        <Self as ILoadingManagerMethods>::ctor(this);
214        this
215    }
216}
217
218#[cfg(feature = "app-loadingmanager")]
219#[doc(hidden)]
220pub mod prelude {
221    pub use super::{ILoadingManager, ILoadingManagerMethods, LoadingManager, LoadingManager_Modes};
222    #[cfg(feature = "system-object")]
223    pub use crate::system::object::IObjectMethods;
224    #[cfg(feature = "system-enum")]
225    pub use crate::system::r#enum::IEnumMethods;
226    #[cfg(feature = "system-valuetype")]
227    pub use crate::system::valuetype::IValueTypeMethods;
228    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
229}