engage/generated/app/
gamesavedataheader.rs1#[cfg(feature = "app-gamesavedataheader-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/gamesavedataheader/GameSaveDataHeader.md"))]
11 #[::unity::class(namespace = "App", name = "GameSaveDataHeader")]
12 #[parent(crate::system::object::Object)]
13 pub struct GameSaveDataHeader {
14 #[static_field]
15 #[rename(name = "Size")]
16 pub size: i32,
17 #[static_field]
18 #[rename(name = "Version")]
19 pub version: i32,
20 #[offset(16)]
21 #[rename(name = "m_GameVersion")]
22 pub m_game_version: i32,
23 #[offset(24)]
24 #[rename(name = "m_Status")]
25 pub m_status: crate::app::gameuserdata::GameUserData_StatusField,
26 #[offset(32)]
27 #[rename(name = "m_Chapter")]
28 pub m_chapter: crate::app::chapterdata::ChapterData,
29 #[offset(40)]
30 #[rename(name = "m_NextChapter")]
31 pub m_next_chapter: crate::app::chapterdata::ChapterData,
32 #[offset(48)]
33 #[rename(name = "m_Sequence")]
34 pub m_sequence: crate::app::gameuserdata::GameUserData_Sequences,
35 #[offset(52)]
36 #[rename(name = "m_GameMode")]
37 pub m_game_mode: crate::app::gamemode::GameMode,
38 #[offset(56)]
39 #[rename(name = "m_Difficulty")]
40 pub m_difficulty: crate::app::difficulty::Difficulty,
41 #[offset(60)]
42 #[rename(name = "m_EvilDifficulty")]
43 pub m_evil_difficulty: crate::app::difficulty::Difficulty,
44 #[offset(64)]
45 #[rename(name = "m_Turn")]
46 pub m_turn: i32,
47 #[offset(68)]
48 #[rename(name = "m_ContentsIndex")]
49 pub m_contents_index: i32,
50 #[offset(72)]
51 #[rename(name = "m_Identifier")]
52 pub m_identifier: u64,
53 #[offset(80)]
54 #[rename(name = "m_PlayTime")]
55 pub m_play_time: f32,
56 #[offset(84)]
57 #[rename(name = "m_ChallengeRoute")]
58 pub m_challenge_route: i32,
59 #[offset(88)]
60 #[rename(name = "m_ChallengeStage")]
61 pub m_challenge_stage: i32,
62 #[offset(96)]
63 #[rename(name = "m_UnitEdit")]
64 pub m_unit_edit: crate::app::unitedit::UnitEdit,
65 }
66}
67
68#[cfg(feature = "app-gamesavedataheader-types")]
69pub use __types::*;
70
71#[cfg(feature = "app-gamesavedataheader")]
72pub trait IGameSaveDataHeaderMethods: IGameSaveDataHeader {
73 #[doc = "`.ctor()` overload"]
74 fn ctor(self) -> () {
75 unsafe {
76 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x22821e0usize)as*mut u8,();
78(GameSaveDataHeader)__receiver)
79 }
80 }
81 #[doc = "`Update()` overload"]
82 fn update(self) -> () {
83 unsafe {
84 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x2282320usize)as*mut u8,();
86(GameSaveDataHeader)__receiver)
87 }
88 }
89 #[doc = "`Reset()` overload"]
90 fn reset(self) -> () {
91 unsafe {
92 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x2283ee0usize)as*mut u8,();
94(GameSaveDataHeader)__receiver)
95 }
96 }
97 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
98 fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
99 unsafe {
100 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x22825d0usize)as*mut u8,();
102(GameSaveDataHeader)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
103 }
104 }
105 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
106 fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> bool {
107 unsafe {
108 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2283f80usize)as*mut u8,bool;
110(GameSaveDataHeader)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
111 }
112 }
113 #[doc = "`get_GameVersion()` overload"]
114 fn get_game_version(self) -> i32 {
115 unsafe {
116 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2284620usize)as*mut u8,i32;
118(GameSaveDataHeader)__receiver)
119 }
120 }
121 #[doc = "`get_Status()` overload"]
122 fn get_status(self) -> crate::app::gameuserdata::GameUserData_StatusField {
123 unsafe {
124 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2284630usize)as*mut u8,crate::app::gameuserdata::GameUserData_StatusField;
126(GameSaveDataHeader)__receiver)
127 }
128 }
129 #[doc = "`get_Chapter()` overload"]
130 fn get_chapter(self) -> crate::app::chapterdata::ChapterData {
131 unsafe {
132 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x2284640usize)as*mut u8,crate::app::chapterdata::ChapterData;
134(GameSaveDataHeader)__receiver)
135 }
136 }
137 #[doc = "`get_Sequence()` overload"]
138 fn get_sequence(self) -> crate::app::gameuserdata::GameUserData_Sequences {
139 unsafe {
140 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x2284650usize)as*mut u8,crate::app::gameuserdata::GameUserData_Sequences;
142(GameSaveDataHeader)__receiver)
143 }
144 }
145 #[doc = "`get_Difficulty()` overload"]
146 fn get_difficulty(self) -> crate::app::difficulty::Difficulty {
147 unsafe {
148 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x2284700usize)as*mut u8,crate::app::difficulty::Difficulty;
150(GameSaveDataHeader)__receiver)
151 }
152 }
153 #[doc = "`get_GameMode()` overload"]
154 fn get_game_mode(self) -> crate::app::gamemode::GameMode {
155 unsafe {
156 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x2284710usize)as*mut u8,crate::app::gamemode::GameMode;
158(GameSaveDataHeader)__receiver)
159 }
160 }
161 #[doc = "`get_Turn()` overload"]
162 fn get_turn(self) -> i32 {
163 unsafe {
164 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2284720usize)as*mut u8,i32;
166(GameSaveDataHeader)__receiver)
167 }
168 }
169 #[doc = "`get_PlayTime()` overload"]
170 fn get_play_time(self) -> f32 {
171 unsafe {
172 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x2284730usize)as*mut u8,f32;
174(GameSaveDataHeader)__receiver)
175 }
176 }
177 #[doc = "`get_ContentsIndex()` overload"]
178 fn get_contents_index(self) -> i32 {
179 unsafe {
180 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x2284740usize)as*mut u8,i32;
182(GameSaveDataHeader)__receiver)
183 }
184 }
185 #[doc = "`get_Identifier()` overload"]
186 fn get_identifier(self) -> u64 {
187 unsafe {
188 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2284750usize)as*mut u8,u64;
190(GameSaveDataHeader)__receiver)
191 }
192 }
193 #[doc = "`get_NextChapter()` overload"]
194 fn get_next_chapter(self) -> crate::app::chapterdata::ChapterData {
195 unsafe {
196 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2284760usize)as*mut u8,crate::app::chapterdata::ChapterData;
198(GameSaveDataHeader)__receiver)
199 }
200 }
201 #[doc = "`GetChapterPrefix()` overload"]
202 fn get_chapter_prefix(self) -> ::unity::Il2CppString {
203 unsafe {
204 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2284770usize)as*mut u8, ::unity::Il2CppString;
206(GameSaveDataHeader)__receiver)
207 }
208 }
209 #[doc = "`GetChapterName()` overload"]
210 fn get_chapter_name(self) -> ::unity::Il2CppString {
211 unsafe {
212 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x22849e0usize)as*mut u8, ::unity::Il2CppString;
214(GameSaveDataHeader)__receiver)
215 }
216 }
217 #[doc = "`GetPlaceName()` overload"]
218 fn get_place_name(self) -> ::unity::Il2CppString {
219 unsafe {
220 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x2284ac0usize)as*mut u8, ::unity::Il2CppString;
222(GameSaveDataHeader)__receiver)
223 }
224 }
225 #[doc = "`GetChapterForDisplay()` overload"]
226 fn get_chapter_for_display(self) -> crate::app::chapterdata::ChapterData {
227 unsafe {
228 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x2284890usize)as*mut u8,crate::app::chapterdata::ChapterData;
230(GameSaveDataHeader)__receiver)
231 }
232 }
233 #[doc = "`GetHeroName()` overload"]
234 fn get_hero_name(self) -> ::unity::Il2CppString {
235 unsafe {
236 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x2284cc0usize)as*mut u8, ::unity::Il2CppString;
238(GameSaveDataHeader)__receiver)
239 }
240 }
241 #[doc = "`GetHeroGender()` overload"]
242 fn get_hero_gender(self) -> crate::app::gender::Gender {
243 unsafe {
244 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x2284cd0usize)as*mut u8,crate::app::gender::Gender;
246(GameSaveDataHeader)__receiver)
247 }
248 }
249 #[doc = "`IsEncountMap()` overload"]
250 fn is_encount_map(self) -> bool {
251 unsafe {
252 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x2284c60usize)as*mut u8,bool;
254(GameSaveDataHeader)__receiver)
255 }
256 }
257 #[doc = "`IsChallengeMap()` overload"]
258 fn is_challenge_map(self) -> bool {
259 unsafe {
260 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x22849b0usize)as*mut u8,bool;
262(GameSaveDataHeader)__receiver)
263 }
264 }
265 #[doc = "`IsTemporary()` overload"]
266 fn is_temporary(self) -> bool {
267 unsafe {
268 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x2284ce0usize)as*mut u8,bool;
270(GameSaveDataHeader)__receiver)
271 }
272 }
273 #[doc = "`IsCompleted()` overload"]
274 fn is_completed(self) -> bool {
275 unsafe {
276 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x2284d40usize)as*mut u8,bool;
278(GameSaveDataHeader)__receiver)
279 }
280 }
281 #[doc = "`IsEvilCompleted()` overload"]
282 fn is_evil_completed(self) -> bool {
283 unsafe {
284 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x2284da0usize)as*mut u8,bool;
286(GameSaveDataHeader)__receiver)
287 }
288 }
289 #[doc = "`get_EvilDifficulty()` overload"]
290 fn get_evil_difficulty(self) -> crate::app::difficulty::Difficulty {
291 unsafe {
292 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 ::unity::il2cpp_call!((::unity::module_base()+0x2284e00usize)as*mut u8,crate::app::difficulty::Difficulty;
294(GameSaveDataHeader)__receiver)
295 }
296 }
297 #[doc = "`IsEvilMap()` overload"]
298 fn is_evil_map(self) -> bool {
299 unsafe {
300 let __receiver = <GameSaveDataHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 ::unity::il2cpp_call!((::unity::module_base()+0x2284e10usize)as*mut u8,bool;
302(GameSaveDataHeader)__receiver)
303 }
304 }
305}
306
307#[cfg(feature = "app-gamesavedataheader")]
308impl<__T: IGameSaveDataHeader> IGameSaveDataHeaderMethods for __T {}
309
310#[cfg(feature = "app-gamesavedataheader")]
311impl GameSaveDataHeader {
312 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
314 }
315
316 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
318 }
319
320 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
322 }
323
324 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
326 }
327
328 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
330 }
331
332 pub fn get_game_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
334 }
335
336 pub fn get_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
338 }
339
340 pub fn get_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
342 }
343
344 pub fn get_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
346 }
347
348 pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
350 }
351
352 pub fn get_game_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
354 }
355
356 pub fn get_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
358 }
359
360 pub fn get_play_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
362 }
363
364 pub fn get_contents_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
366 }
367
368 pub fn get_identifier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
370 }
371
372 pub fn get_next_chapter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
374 }
375
376 pub fn get_chapter_prefix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
378 }
379
380 pub fn get_chapter_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
382 }
383
384 pub fn get_place_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
386 }
387
388 pub fn get_chapter_for_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
390 }
391
392 pub fn get_hero_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
394 }
395
396 pub fn get_hero_gender_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
398 }
399
400 pub fn is_encount_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
402 }
403
404 pub fn is_challenge_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
406 }
407
408 pub fn is_temporary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
410 }
411
412 pub fn is_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
414 }
415
416 pub fn is_evil_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
418 }
419
420 pub fn get_evil_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
422 }
423
424 pub fn is_evil_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
426 }
427}
428
429#[cfg(feature = "app-gamesavedataheader")]
430impl GameSaveDataHeader {
431 #[doc = "`.ctor()` — no args"]
432 pub fn new() -> Self {
433 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
434 panic!(
435 "{}
436::{}
437 failed to instantiate",
438 ::core::stringify!(GameSaveDataHeader),
439 ::core::stringify!(new),
440 )
441 });
442 <Self as IGameSaveDataHeaderMethods>::ctor(this);
443 this
444 }
445}
446
447#[cfg(feature = "app-gamesavedataheader")]
448#[doc(hidden)]
449pub mod prelude {
450 pub use super::{GameSaveDataHeader, IGameSaveDataHeader, IGameSaveDataHeaderMethods};
451 pub use crate::system::object::IObject;
452 #[cfg(feature = "system-object")]
453 pub use crate::system::object::IObjectMethods;
454}