engage/generated/app/
challengesequence.rs1#[cfg(feature = "app-challengesequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengesequence/ChallengeSequence_Label2.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct ChallengeSequence_Label2 {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for ChallengeSequence_Label2 {
24 const NAME: &'static str = "ChallengeSequence.Label2";
25 const NAMESPACE: &'static str = "App";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for ChallengeSequence_Label2 {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl ChallengeSequence_Label2 {
38 pub fn entry() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn map_select_menu() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn difficulty_select_menu() -> Self {
47 Self { value: 2 }
48 }
49
50 pub fn end_and_start_map() -> Self {
51 Self { value: 3 }
52 }
53
54 pub fn end_and_return() -> Self {
55 Self { value: 4 }
56 }
57 }
58
59 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengesequence/ChallengeSequence.md"))]
60 #[::unity::class(namespace = "App", name = "ChallengeSequence")]
61 #[parent(crate::app::procinst::ProcInst)]
62 pub struct ChallengeSequence {
63 #[offset(112)]
64 #[rename(name = "m_ChallengeMapSelectRoot")]
65 pub m_challenge_map_select_root: crate::app::challengemapselectroot::ChallengeMapSelectRoot,
66 #[offset(120)]
67 #[rename(name = "m_Bg")]
68 pub m_bg: crate::app::menubg::MenuBg,
69 #[offset(128)]
70 #[rename(name = "m_Result")]
71 pub m_result: crate::app::basicmenu::BasicMenu_Result,
72 #[offset(136)]
73 #[rename(name = "m_ChallengeData")]
74 pub m_challenge_data: crate::app::challengedata::ChallengeData,
75 #[offset(144)]
76 #[rename(name = "m_Difficulty")]
77 pub m_difficulty: i32,
78 }
79}
80
81#[cfg(feature = "app-challengesequence-types")]
82pub use __types::*;
83
84#[cfg(feature = "app-challengesequence")]
85impl ChallengeSequence {
86 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
87 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x2af79f0usize)as*mut u8,();
90(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
91 }
92 }
93}
94
95#[cfg(feature = "app-challengesequence")]
96pub trait IChallengeSequenceMethods: IChallengeSequence {
97 #[doc = "`.ctor()` overload"]
98 fn ctor(self) -> () {
99 unsafe {
100 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2af7ac0usize)as*mut u8,();
102(ChallengeSequence)__receiver)
103 }
104 }
105 #[doc = "`CreateDesc()` overload"]
106 fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
107 unsafe {
108 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2af7b40usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
110(ChallengeSequence)__receiver)
111 }
112 }
113 #[doc = "`LoadResources()` overload"]
114 fn load_resources(self) -> () {
115 unsafe {
116 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2af89d0usize)as*mut u8,();
118(ChallengeSequence)__receiver)
119 }
120 }
121 #[doc = "`IsLoadingResources()` overload"]
122 fn is_loading_resources(self) -> bool {
123 unsafe {
124 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2af89f0usize)as*mut u8,bool;
126(ChallengeSequence)__receiver)
127 }
128 }
129 #[doc = "`StartSequence()` overload"]
130 fn start_sequence(self) -> () {
131 unsafe {
132 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x2af8a20usize)as*mut u8,();
134(ChallengeSequence)__receiver)
135 }
136 }
137 #[doc = "`CreateMapSelectRoot()` overload"]
138 fn create_map_select_root(self) -> () {
139 unsafe {
140 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x2af8b00usize)as*mut u8,();
142(ChallengeSequence)__receiver)
143 }
144 }
145 #[doc = "`OpenTitle()` overload"]
146 fn open_title(self) -> () {
147 unsafe {
148 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x2af8b30usize)as*mut u8,();
150(ChallengeSequence)__receiver)
151 }
152 }
153 #[doc = "`CreateMapSelectMenu()` overload"]
154 fn create_map_select_menu(self) -> () {
155 unsafe {
156 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x2af8c70usize)as*mut u8,();
158(ChallengeSequence)__receiver)
159 }
160 }
161 #[doc = "`CreateDifficultyMenu()` overload"]
162 fn create_difficulty_menu(self) -> () {
163 unsafe {
164 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2af8d10usize)as*mut u8,();
166(ChallengeSequence)__receiver)
167 }
168 }
169 #[doc = "`Close()` overload"]
170 fn close(self) -> () {
171 unsafe {
172 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x2af8fc0usize)as*mut u8,();
174(ChallengeSequence)__receiver)
175 }
176 }
177 #[doc = "`IsClosed()` overload"]
178 fn is_closed(self) -> bool {
179 unsafe {
180 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x2af90f0usize)as*mut u8,bool;
182(ChallengeSequence)__receiver)
183 }
184 }
185 #[doc = "`DestroyMapSelectRoot()` overload"]
186 fn destroy_map_select_root(self) -> () {
187 unsafe {
188 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2af9190usize)as*mut u8,();
190(ChallengeSequence)__receiver)
191 }
192 }
193 #[doc = "`SetupChallenge()` overload"]
194 fn setup_challenge(self) -> () {
195 unsafe {
196 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2af9240usize)as*mut u8,();
198(ChallengeSequence)__receiver)
199 }
200 }
201 #[doc = "`EndSequence()` overload"]
202 fn end_sequence(self) -> () {
203 unsafe {
204 let __receiver = <ChallengeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2af9370usize)as*mut u8,();
206(ChallengeSequence)__receiver)
207 }
208 }
209}
210
211#[cfg(feature = "app-challengesequence")]
212impl<__T: IChallengeSequence> IChallengeSequenceMethods for __T {}
213
214#[cfg(feature = "app-challengesequence")]
215impl ChallengeSequence {
216 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
218 }
219
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
222 }
223
224 pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
226 }
227
228 pub fn load_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
230 }
231
232 pub fn is_loading_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
234 }
235
236 pub fn start_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
238 }
239
240 pub fn create_map_select_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
242 }
243
244 pub fn open_title_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
246 }
247
248 pub fn create_map_select_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
250 }
251
252 pub fn create_difficulty_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
254 }
255
256 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
258 }
259
260 pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
262 }
263
264 pub fn destroy_map_select_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
266 }
267
268 pub fn setup_challenge_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
270 }
271
272 pub fn end_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
274 }
275}
276
277#[cfg(feature = "app-challengesequence")]
278impl ChallengeSequence {
279 #[doc = "`.ctor()` — no args"]
280 pub fn new() -> Self {
281 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
282 panic!(
283 "{}
284::{}
285 failed to instantiate",
286 ::core::stringify!(ChallengeSequence),
287 ::core::stringify!(new),
288 )
289 });
290 <Self as IChallengeSequenceMethods>::ctor(this);
291 this
292 }
293}
294
295#[cfg(feature = "app-challengesequence")]
296#[doc(hidden)]
297pub mod prelude {
298 pub use super::{ChallengeSequence, ChallengeSequence_Label2, IChallengeSequence, IChallengeSequenceMethods};
299 #[cfg(feature = "app-procinst")]
300 pub use crate::app::procinst::IProcInstMethods;
301 #[cfg(feature = "system-object")]
302 pub use crate::system::object::IObjectMethods;
303 #[cfg(feature = "system-enum")]
304 pub use crate::system::r#enum::IEnumMethods;
305 #[cfg(feature = "system-valuetype")]
306 pub use crate::system::valuetype::IValueTypeMethods;
307 pub use crate::{
308 app::procinst::IProcInst,
309 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
310 };
311}