engage/generated/app/
filemanager.rs1#[cfg(feature = "app-filemanager-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::filecommon::{FileCommon, IFileCommon},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filemanager/FileManager.md"))]
14 #[::unity::class(namespace = "App", name = "FileManager")]
15 #[parent(crate::app::filecommon::FileCommon)]
16 pub struct FileManager {
17 #[static_field]
18 #[rename(name = "s_Thread")]
19 pub s_thread: ::unity::IlInstance,
20 #[static_field]
21 #[rename(name = "s_CrcTable")]
22 pub s_crc_table: ::unity::Array<u32>,
23 }
24}
25
26#[cfg(feature = "app-filemanager-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-filemanager")]
30impl FileManager {
31 #[doc = "`Initialize()` overload"]
32 pub fn initialize() -> () {
33 unsafe {
34 ::unity::il2cpp_call!((::unity::module_base()+0x26e9390usize)as*mut u8,();
35 )
36 }
37 }
38
39 #[doc = "`BuildCRC32Table()` overload"]
40 pub fn build_crc32_table() -> () {
41 unsafe {
42 ::unity::il2cpp_call!((::unity::module_base()+0x26e94a0usize)as*mut u8,();
43 )
44 }
45 }
46
47 #[doc = "`CalcCrc32(::unity::Array<u8>)` overload"]
48 pub fn calc_crc32(buf: impl ::core::convert::Into<::unity::Array<u8>>) -> u32 {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x26e8f50usize)as*mut u8,u32;
51(::unity::Array<u8>)::core::convert::Into::into(buf))
52 }
53 }
54
55 #[doc = "`Dump()` overload"]
56 pub fn dump() -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x26e9100usize)as*mut u8,();
59 )
60 }
61 }
62
63 #[doc = "`Update()` overload"]
64 pub fn update() -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x26e9620usize)as*mut u8,();
67 )
68 }
69 }
70
71 #[doc = "`DirectLoad(::unity::Il2CppString)` overload"]
72 pub fn direct_load(path: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::filedata::FileData {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x26e9960usize)as*mut u8,crate::app::filedata::FileData;
75(::unity::Il2CppString)::core::convert::Into::into(path))
76 }
77 }
78
79 #[doc = "`ThreadFunc()` overload"]
80 pub fn thread_func() -> () {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x26e9a40usize)as*mut u8,();
83 )
84 }
85 }
86
87 #[doc = "`.cctor()` overload"]
88 pub fn cctor() -> () {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x26e9df0usize)as*mut u8,();
91 )
92 }
93 }
94}
95
96#[cfg(feature = "app-filemanager")]
97pub trait IFileManagerMethods: IFileManager {
98 #[doc = "`.ctor()` overload"]
99 fn ctor(self) -> () {
100 unsafe {
101 let __receiver = <FileManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x26e9d80usize)as*mut u8,();
103(FileManager)__receiver)
104 }
105 }
106}
107
108#[cfg(feature = "app-filemanager")]
109impl<__T: IFileManager> IFileManagerMethods for __T {}
110
111#[cfg(feature = "app-filemanager")]
112impl FileManager {
113 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115 }
116
117 pub fn build_crc32_table_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119 }
120
121 pub fn calc_crc32_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
123 }
124
125 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
127 }
128
129 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
131 }
132
133 pub fn direct_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
135 }
136
137 pub fn thread_func_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
139 }
140
141 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
143 }
144
145 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
147 }
148}
149
150#[cfg(feature = "app-filemanager")]
151impl FileManager {
152 #[doc = "`.ctor()` — no args"]
153 pub fn new() -> Self {
154 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
155 panic!(
156 "{}
157::{}
158 failed to instantiate",
159 ::core::stringify!(FileManager),
160 ::core::stringify!(new),
161 )
162 });
163 <Self as IFileManagerMethods>::ctor(this);
164 this
165 }
166}
167
168#[cfg(feature = "app-filemanager")]
169#[doc(hidden)]
170pub mod prelude {
171 pub use super::{FileManager, IFileManager, IFileManagerMethods};
172 #[cfg(feature = "app-filecommon")]
173 pub use crate::app::filecommon::IFileCommonMethods;
174 #[cfg(feature = "system-object")]
175 pub use crate::system::object::IObjectMethods;
176 pub use crate::{app::filecommon::IFileCommon, system::object::IObject};
177}