1#[cfg(feature = "app-savedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
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/savedata/SaveData_Manager_EventKind.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct SaveData_Manager_EventKind {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for SaveData_Manager_EventKind {
24 const NAME: &'static str = "SaveData.Manager.EventKind";
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 SaveData_Manager_EventKind {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl SaveData_Manager_EventKind {
38 pub fn cleanup() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn task() -> Self {
43 Self { value: 1 }
44 }
45 }
46
47 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedata/SaveData_Manager.md"))]
48 #[::unity::class(namespace = "App", name = "SaveData.Manager")]
49 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::savedata::SaveData_Manager>)]
50 pub struct SaveData_Manager {
51 #[offset(48)]
52 #[rename(name = "m_Tasks")]
53 pub m_tasks: crate::system::collections::generic::queue_1::Queue_1<crate::app::savedata::SaveData_Manager_Task>,
54 }
55
56 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedata/SaveData_Manager_TaskKind.md"))]
57 #[repr(C)]
58 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59 pub struct SaveData_Manager_TaskKind {
60 pub value: i32,
61 }
62 impl ::unity::ClassIdentity for SaveData_Manager_TaskKind {
63 const NAME: &'static str = "SaveData.Manager.TaskKind";
64 const NAMESPACE: &'static str = "App";
65
66 fn class() -> ::unity::Class {
67 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69 }
70 }
71 impl ::unity::IlType for SaveData_Manager_TaskKind {
72 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74 }
75 }
76 impl SaveData_Manager_TaskKind {
77 pub fn read() -> Self {
78 Self { value: 0 }
79 }
80
81 pub fn write() -> Self {
82 Self { value: 1 }
83 }
84
85 pub fn delete() -> Self {
86 Self { value: 2 }
87 }
88
89 pub fn commit() -> Self {
90 Self { value: 3 }
91 }
92 }
93
94 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedata/SaveData.md"))]
95 #[::unity::class(namespace = "App", name = "SaveData")]
96 #[parent(crate::system::object::Object)]
97 pub struct SaveData {
98 #[static_field]
99 #[rename(name = "MountName")]
100 pub mount_name: ::unity::Il2CppString,
101 #[static_field]
102 #[rename(name = "MountNameWithColon")]
103 pub mount_name_with_colon: ::unity::Il2CppString,
104 #[static_field]
105 #[rename(name = "s_IsMounted")]
106 pub s_is_mounted: bool,
107 }
108
109 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/savedata/SaveData_Manager_Task.md"))]
110 #[::unity::class(namespace = "App", name = "SaveData.Manager.Task")]
111 #[parent(crate::system::object::Object)]
112 pub struct SaveData_Manager_Task {}
113}
114
115#[cfg(feature = "app-savedata-types")]
116pub use __types::*;
117
118#[cfg(feature = "app-savedata")]
119impl SaveData_Manager {
120 #[doc = "`.cctor()` overload"]
121 pub fn cctor() -> () {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x1d649d0usize)as*mut u8,();
124 )
125 }
126 }
127}
128
129#[cfg(feature = "app-savedata")]
130pub trait ISaveData_ManagerMethods: ISaveData_Manager {
131 #[doc = "`.ctor()` overload"]
132 fn ctor(self) -> () {
133 unsafe {
134 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x1d62d50usize)as*mut u8,();
136(SaveData_Manager)__receiver)
137 }
138 }
139 #[doc = "`Finalize()` overload"]
140 fn finalize(self) -> () {
141 unsafe {
142 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 {
144 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
146 panic!(
147 "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152 1usize,
153 __vt.len(),
154 <SaveData_Manager as ::unity::ClassIdentity>::NAME,
155 "Finalize",
156 )
157 });
158 let __inner: extern "C" fn(SaveData_Manager, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
159 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
160 __inner(__receiver, __mi)
161 }
162 }
163 }
164 #[doc = "`Cleanup()` overload"]
165 fn cleanup(self) -> () {
166 unsafe {
167 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x1d63060usize)as*mut u8,();
169(SaveData_Manager)__receiver)
170 }
171 }
172 #[doc = "`RegisterTask(crate::app::savedata::SaveData_Manager_Task)` overload"]
173 fn register_task(self, task: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_Task>) -> () {
174 unsafe {
175 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x1d63170usize)as*mut u8,();
177(SaveData_Manager)__receiver,(crate::app::savedata::SaveData_Manager_Task)::core::convert::Into::into(task))
178 }
179 }
180 #[doc = "`Commit(::unity::Il2CppString)` overload"]
181 fn commit(self, mount_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
182 unsafe {
183 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x1d63980usize)as*mut u8,();
185(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mount_name))
186 }
187 }
188 #[doc = "`IsExist(::unity::Il2CppString)` overload"]
189 fn is_exist(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
190 unsafe {
191 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x1d63ac0usize)as*mut u8,bool;
193(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
194 }
195 }
196 #[doc = "`GetFileSize(::unity::Il2CppString)` overload"]
197 fn get_file_size(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> i64 {
198 unsafe {
199 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x1d63ba0usize)as*mut u8,i64;
201(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
202 }
203 }
204 #[doc = "`Dump(::unity::Il2CppString)` overload"]
205 fn dump(self, root_path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
206 unsafe {
207 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x1d63cf0usize)as*mut u8,();
209(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(root_path))
210 }
211 }
212 #[doc = "`ThreadFunc()` overload"]
213 fn thread_func(self) -> () {
214 unsafe {
215 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x1d63e30usize)as*mut u8,();
217(SaveData_Manager)__receiver)
218 }
219 }
220 #[doc = "`Read(crate::app::savedata::SaveData_Manager_Task)` overload"]
221 fn read(self, task: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_Task>) -> () {
222 unsafe {
223 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x1d64110usize)as*mut u8,();
225(SaveData_Manager)__receiver,(crate::app::savedata::SaveData_Manager_Task)::core::convert::Into::into(task))
226 }
227 }
228 #[doc = "`Write(crate::app::savedata::SaveData_Manager_Task)` overload"]
229 fn write(self, task: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_Task>) -> () {
230 unsafe {
231 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 ::unity::il2cpp_call!((::unity::module_base()+0x1d64210usize)as*mut u8,();
233(SaveData_Manager)__receiver,(crate::app::savedata::SaveData_Manager_Task)::core::convert::Into::into(task))
234 }
235 }
236 #[doc = "`Delete(crate::app::savedata::SaveData_Manager_Task)` overload"]
237 fn delete(self, task: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_Task>) -> () {
238 unsafe {
239 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 ::unity::il2cpp_call!((::unity::module_base()+0x1d64270usize)as*mut u8,();
241(SaveData_Manager)__receiver,(crate::app::savedata::SaveData_Manager_Task)::core::convert::Into::into(task))
242 }
243 }
244 #[doc = "`Commit(crate::app::savedata::SaveData_Manager_Task)` overload"]
245 fn commit_2(self, task: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_Task>) -> () {
246 unsafe {
247 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 ::unity::il2cpp_call!((::unity::module_base()+0x1d642c0usize)as*mut u8,();
249(SaveData_Manager)__receiver,(crate::app::savedata::SaveData_Manager_Task)::core::convert::Into::into(task))
250 }
251 }
252 #[doc = "`CommitNX(::unity::Il2CppString)` overload"]
253 fn commit_nx(self, mount_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
254 unsafe {
255 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256 ::unity::il2cpp_call!((::unity::module_base()+0x1d63a20usize)as*mut u8,();
257(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mount_name))
258 }
259 }
260 #[doc = "`IsExistNX(::unity::Il2CppString)` overload"]
261 fn is_exist_nx(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
262 unsafe {
263 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x1d63ad0usize)as*mut u8,bool;
265(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
266 }
267 }
268 #[doc = "`GetFileSizeNX(::unity::Il2CppString)` overload"]
269 fn get_file_size_nx(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> i64 {
270 unsafe {
271 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272 ::unity::il2cpp_call!((::unity::module_base()+0x1d63bb0usize)as*mut u8,i64;
273(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
274 }
275 }
276 #[doc = "`DumpNX(::unity::Il2CppString)` overload"]
277 fn dump_nx(self, root_path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
278 unsafe {
279 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280 ::unity::il2cpp_call!((::unity::module_base()+0x1d63d90usize)as*mut u8,();
281(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(root_path))
282 }
283 }
284 #[doc = "`Backslash2Slash(::unity::Il2CppString)` overload"]
285 fn backslash2_slash(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
286 unsafe {
287 let __receiver = <SaveData_Manager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 ::unity::il2cpp_call!((::unity::module_base()+0x1d643b0usize)as*mut u8, ::unity::Il2CppString;
289(SaveData_Manager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path))
290 }
291 }
292}
293
294#[cfg(feature = "app-savedata")]
295impl<__T: ISaveData_Manager> ISaveData_ManagerMethods for __T {}
296
297#[cfg(feature = "app-savedata")]
298impl SaveData_Manager {
299 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
301 }
302
303 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
305 }
306
307 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
309 }
310
311 pub fn register_task_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
313 }
314
315 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
317 }
318
319 pub fn is_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
321 }
322
323 pub fn get_file_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
325 }
326
327 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
329 }
330
331 pub fn thread_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
333 }
334
335 pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
337 }
338
339 pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
341 }
342
343 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
345 }
346
347 pub fn commit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
349 }
350
351 pub fn commit_nx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
353 }
354
355 pub fn is_exist_nx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
357 }
358
359 pub fn get_file_size_nx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
361 }
362
363 pub fn dump_nx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
365 }
366
367 pub fn backslash2_slash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
369 }
370
371 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
373 }
374}
375
376#[cfg(feature = "app-savedata")]
377impl SaveData_Manager {
378 #[doc = "Direct (non-virtual) call to `SaveData_Manager`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
379 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
380 let __mi = Self::finalize_method_info();
381 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
382 __inner(this.into(), ::core::option::Option::None)
383 }
384}
385
386#[cfg(feature = "app-savedata")]
387impl SaveData_Manager {
388 #[doc = "`.ctor()` — no args"]
389 pub fn new() -> Self {
390 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
391 panic!(
392 "{}
393::{}
394 failed to instantiate",
395 ::core::stringify!(SaveData_Manager),
396 ::core::stringify!(new),
397 )
398 });
399 <Self as ISaveData_ManagerMethods>::ctor(this);
400 this
401 }
402}
403
404#[cfg(feature = "app-savedata")]
405impl SaveData {
406 #[doc = "`Setup()` overload"]
407 pub fn setup() -> () {
408 unsafe {
409 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4950usize)as*mut u8,();
410 )
411 }
412 }
413
414 #[doc = "`Cleanup()` overload"]
415 pub fn cleanup() -> () {
416 unsafe {
417 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4bc0usize)as*mut u8,();
418 )
419 }
420 }
421
422 #[doc = "`PauseExitApp()` overload"]
423 pub fn pause_exit_app() -> () {
424 unsafe {
425 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4d40usize)as*mut u8,();
426 )
427 }
428 }
429
430 #[doc = "`ResumeExitApp()` overload"]
431 pub fn resume_exit_app() -> () {
432 unsafe {
433 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4d50usize)as*mut u8,();
434 )
435 }
436 }
437
438 #[doc = "`ReadAsync(::unity::Il2CppString, i64, ::unity::Array<u8>, i64)` overload"]
439 pub fn read_async(
440 path: impl ::core::convert::Into<::unity::Il2CppString>,
441 offset: impl ::core::convert::Into<i64>,
442 data: impl ::core::convert::Into<::unity::Array<u8>>,
443 size: impl ::core::convert::Into<i64>,
444 ) -> crate::app::savedatareadhandle::SaveDataReadHandle {
445 unsafe {
446 ::unity::il2cpp_call!((::unity::module_base()+0x1ec4e20usize)as*mut u8,crate::app::savedatareadhandle::SaveDataReadHandle;
447(::unity::Il2CppString)::core::convert::Into::into(path),(i64)::core::convert::Into::into(offset),(::unity::Array<u8>)::core::convert::Into::into(data),(i64)::core::convert::Into::into(size))
448 }
449 }
450
451 #[doc = "`WriteAsync(::unity::Il2CppString, i64, ::unity::Array<u8>, i64, bool)` overload"]
452 pub fn write_async(
453 path: impl ::core::convert::Into<::unity::Il2CppString>,
454 offset: impl ::core::convert::Into<i64>,
455 data: impl ::core::convert::Into<::unity::Array<u8>>,
456 size: impl ::core::convert::Into<i64>,
457 is_enable_resize: impl ::core::convert::Into<bool>,
458 ) -> crate::app::savedatahandle::SaveDataHandle {
459 unsafe {
460 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5030usize)as*mut u8,crate::app::savedatahandle::SaveDataHandle;
461(::unity::Il2CppString)::core::convert::Into::into(path),(i64)::core::convert::Into::into(offset),(::unity::Array<u8>)::core::convert::Into::into(data),(i64)::core::convert::Into::into(size),(bool)::core::convert::Into::into(is_enable_resize))
462 }
463 }
464
465 #[doc = "`DeleteAsync(::unity::Il2CppString)` overload"]
466 pub fn delete_async(path: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::savedatahandle::SaveDataHandle {
467 unsafe {
468 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5220usize)as*mut u8,crate::app::savedatahandle::SaveDataHandle;
469(::unity::Il2CppString)::core::convert::Into::into(path))
470 }
471 }
472
473 #[doc = "`Commit(::unity::Il2CppString)` overload"]
474 pub fn commit(mount_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
475 unsafe {
476 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5330usize)as*mut u8,();
477(::unity::Il2CppString)::core::convert::Into::into(mount_name))
478 }
479 }
480
481 #[doc = "`CommitAsync(::unity::Il2CppString)` overload"]
482 pub fn commit_async(mount_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::savedatahandle::SaveDataHandle {
483 unsafe {
484 ::unity::il2cpp_call!((::unity::module_base()+0x1ec53c0usize)as*mut u8,crate::app::savedatahandle::SaveDataHandle;
485(::unity::Il2CppString)::core::convert::Into::into(mount_name))
486 }
487 }
488
489 #[doc = "`IsExist(::unity::Il2CppString)` overload"]
490 pub fn is_exist(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
491 unsafe {
492 ::unity::il2cpp_call!((::unity::module_base()+0x1ec54d0usize)as*mut u8,bool;
493(::unity::Il2CppString)::core::convert::Into::into(path))
494 }
495 }
496
497 #[doc = "`GetFileSize(::unity::Il2CppString)` overload"]
498 pub fn get_file_size(path: impl ::core::convert::Into<::unity::Il2CppString>) -> i64 {
499 unsafe {
500 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5560usize)as*mut u8,i64;
501(::unity::Il2CppString)::core::convert::Into::into(path))
502 }
503 }
504
505 #[doc = "`Dump(::unity::Il2CppString)` overload"]
506 pub fn dump(root_path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
507 unsafe {
508 ::unity::il2cpp_call!((::unity::module_base()+0x1ec55f0usize)as*mut u8,();
509(::unity::Il2CppString)::core::convert::Into::into(root_path))
510 }
511 }
512
513 #[doc = "`get_IsMounted()` overload"]
514 pub fn get_is_mounted() -> bool {
515 unsafe {
516 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5680usize)as*mut u8,bool;
517 )
518 }
519 }
520
521 #[doc = "`.cctor()` overload"]
522 pub fn cctor() -> () {
523 unsafe {
524 ::unity::il2cpp_call!((::unity::module_base()+0x1ec5700usize)as*mut u8,();
525 )
526 }
527 }
528}
529
530#[cfg(feature = "app-savedata")]
531pub trait ISaveDataMethods: ISaveData {
532 #[doc = "`.ctor()` overload"]
533 fn ctor(self) -> () {
534 unsafe {
535 let __receiver = <SaveData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
536 ::unity::il2cpp_call!((::unity::module_base()+0x1ec56f0usize)as*mut u8,();
537(SaveData)__receiver)
538 }
539 }
540}
541
542#[cfg(feature = "app-savedata")]
543impl<__T: ISaveData> ISaveDataMethods for __T {}
544
545#[cfg(feature = "app-savedata")]
546impl SaveData {
547 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
549 }
550
551 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
553 }
554
555 pub fn pause_exit_app_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
557 }
558
559 pub fn resume_exit_app_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
561 }
562
563 pub fn read_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
565 }
566
567 pub fn write_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
569 }
570
571 pub fn delete_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
573 }
574
575 pub fn commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
577 }
578
579 pub fn commit_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
581 }
582
583 pub fn is_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
585 }
586
587 pub fn get_file_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
589 }
590
591 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
593 }
594
595 pub fn get_is_mounted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
597 }
598
599 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
601 }
602
603 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
605 }
606}
607
608#[cfg(feature = "app-savedata")]
609impl SaveData {
610 #[doc = "`.ctor()` — no args"]
611 pub fn new() -> Self {
612 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
613 panic!(
614 "{}
615::{}
616 failed to instantiate",
617 ::core::stringify!(SaveData),
618 ::core::stringify!(new),
619 )
620 });
621 <Self as ISaveDataMethods>::ctor(this);
622 this
623 }
624}
625
626#[cfg(feature = "app-savedata")]
627pub trait ISaveData_Manager_TaskMethods: ISaveData_Manager_Task {
628 #[doc = "`get_Kind()` overload"]
629 fn get_kind(self) -> crate::app::savedata::SaveData_Manager_TaskKind {
630 unsafe {
631 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
632 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc10usize)as*mut u8,crate::app::savedata::SaveData_Manager_TaskKind;
633(SaveData_Manager_Task)__receiver)
634 }
635 }
636 #[doc = "`set_Kind(crate::app::savedata::SaveData_Manager_TaskKind)` overload"]
637 fn set_kind(self, value: impl ::core::convert::Into<crate::app::savedata::SaveData_Manager_TaskKind>) -> () {
638 unsafe {
639 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
640 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc20usize)as*mut u8,();
641(SaveData_Manager_Task)__receiver,(crate::app::savedata::SaveData_Manager_TaskKind)::core::convert::Into::into(value))
642 }
643 }
644 #[doc = "`get_Path()` overload"]
645 fn get_path(self) -> ::unity::Il2CppString {
646 unsafe {
647 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
648 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc30usize)as*mut u8, ::unity::Il2CppString;
649(SaveData_Manager_Task)__receiver)
650 }
651 }
652 #[doc = "`set_Path(::unity::Il2CppString)` overload"]
653 fn set_path(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
654 unsafe {
655 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
656 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc40usize)as*mut u8,();
657(SaveData_Manager_Task)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
658 }
659 }
660 #[doc = "`get_Data()` overload"]
661 fn get_data(self) -> ::unity::Array<u8> {
662 unsafe {
663 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
664 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc50usize)as*mut u8, ::unity::Array<u8> ;
665(SaveData_Manager_Task)__receiver)
666 }
667 }
668 #[doc = "`set_Data(::unity::Array<u8>)` overload"]
669 fn set_data(self, value: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
670 unsafe {
671 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
672 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc60usize)as*mut u8,();
673(SaveData_Manager_Task)__receiver,(::unity::Array<u8>)::core::convert::Into::into(value))
674 }
675 }
676 #[doc = "`get_Size()` overload"]
677 fn get_size(self) -> i64 {
678 unsafe {
679 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
680 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc70usize)as*mut u8,i64;
681(SaveData_Manager_Task)__receiver)
682 }
683 }
684 #[doc = "`set_Size(i64)` overload"]
685 fn set_size(self, value: impl ::core::convert::Into<i64>) -> () {
686 unsafe {
687 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
688 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc80usize)as*mut u8,();
689(SaveData_Manager_Task)__receiver,(i64)::core::convert::Into::into(value))
690 }
691 }
692 #[doc = "`get_Offset()` overload"]
693 fn get_offset(self) -> i64 {
694 unsafe {
695 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
696 ::unity::il2cpp_call!((::unity::module_base()+0x22ecc90usize)as*mut u8,i64;
697(SaveData_Manager_Task)__receiver)
698 }
699 }
700 #[doc = "`set_Offset(i64)` overload"]
701 fn set_offset(self, value: impl ::core::convert::Into<i64>) -> () {
702 unsafe {
703 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
704 ::unity::il2cpp_call!((::unity::module_base()+0x22ecca0usize)as*mut u8,();
705(SaveData_Manager_Task)__receiver,(i64)::core::convert::Into::into(value))
706 }
707 }
708 #[doc = "`get_IsEnableResize()` overload"]
709 fn get_is_enable_resize(self) -> bool {
710 unsafe {
711 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
712 ::unity::il2cpp_call!((::unity::module_base()+0x22eccb0usize)as*mut u8,bool;
713(SaveData_Manager_Task)__receiver)
714 }
715 }
716 #[doc = "`set_IsEnableResize(bool)` overload"]
717 fn set_is_enable_resize(self, value: impl ::core::convert::Into<bool>) -> () {
718 unsafe {
719 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
720 ::unity::il2cpp_call!((::unity::module_base()+0x22eccc0usize)as*mut u8,();
721(SaveData_Manager_Task)__receiver,(bool)::core::convert::Into::into(value))
722 }
723 }
724 #[doc = "`get_Handle()` overload"]
725 fn get_handle(self) -> crate::app::savedatahandle::SaveDataHandle {
726 unsafe {
727 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
728 ::unity::il2cpp_call!((::unity::module_base()+0x22eccd0usize)as*mut u8,crate::app::savedatahandle::SaveDataHandle;
729(SaveData_Manager_Task)__receiver)
730 }
731 }
732 #[doc = "`set_Handle(crate::app::savedatahandle::SaveDataHandle)` overload"]
733 fn set_handle(self, value: impl ::core::convert::Into<crate::app::savedatahandle::SaveDataHandle>) -> () {
734 unsafe {
735 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
736 ::unity::il2cpp_call!((::unity::module_base()+0x22ecce0usize)as*mut u8,();
737(SaveData_Manager_Task)__receiver,(crate::app::savedatahandle::SaveDataHandle)::core::convert::Into::into(value))
738 }
739 }
740 #[doc = "`.ctor()` overload"]
741 fn ctor(self) -> () {
742 unsafe {
743 let __receiver = <SaveData_Manager_Task as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
744 ::unity::il2cpp_call!((::unity::module_base()+0x22eccf0usize)as*mut u8,();
745(SaveData_Manager_Task)__receiver)
746 }
747 }
748}
749
750#[cfg(feature = "app-savedata")]
751impl<__T: ISaveData_Manager_Task> ISaveData_Manager_TaskMethods for __T {}
752
753#[cfg(feature = "app-savedata")]
754impl SaveData_Manager_Task {
755 pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
756 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
757 }
758
759 pub fn set_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
760 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
761 }
762
763 pub fn get_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
764 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
765 }
766
767 pub fn set_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
769 }
770
771 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
772 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
773 }
774
775 pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
776 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
777 }
778
779 pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
780 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
781 }
782
783 pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
784 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
785 }
786
787 pub fn get_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
788 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
789 }
790
791 pub fn set_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
792 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
793 }
794
795 pub fn get_is_enable_resize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
796 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
797 }
798
799 pub fn set_is_enable_resize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
801 }
802
803 pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
804 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
805 }
806
807 pub fn set_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
808 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
809 }
810
811 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
812 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
813 }
814}
815
816#[cfg(feature = "app-savedata")]
817impl SaveData_Manager_Task {
818 #[doc = "`.ctor()` — no args"]
819 pub fn new() -> Self {
820 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
821 panic!(
822 "{}
823::{}
824 failed to instantiate",
825 ::core::stringify!(SaveData_Manager_Task),
826 ::core::stringify!(new),
827 )
828 });
829 <Self as ISaveData_Manager_TaskMethods>::ctor(this);
830 this
831 }
832}
833
834#[cfg(feature = "app-savedata")]
835#[doc(hidden)]
836pub mod prelude {
837 pub use super::{
838 ISaveData, ISaveDataMethods, ISaveData_Manager, ISaveData_ManagerMethods, ISaveData_Manager_Task, ISaveData_Manager_TaskMethods, SaveData,
839 SaveData_Manager, SaveData_Manager_EventKind, SaveData_Manager_Task, SaveData_Manager_TaskKind,
840 };
841 #[cfg(feature = "app-singletonclass_1")]
842 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
843 #[cfg(feature = "system-object")]
844 pub use crate::system::object::IObjectMethods;
845 #[cfg(feature = "system-enum")]
846 pub use crate::system::r#enum::IEnumMethods;
847 #[cfg(feature = "system-valuetype")]
848 pub use crate::system::valuetype::IValueTypeMethods;
849 pub use crate::{
850 app::singletonclass_1::ISingletonClass_1,
851 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
852 };
853}