Skip to main content

engage/generated/system/io/
filesysteminfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-filesysteminfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/filesysteminfo/FileSystemInfo.md"))]
10    #[::unity::class(namespace = "System.IO", name = "FileSystemInfo")]
11    pub struct FileSystemInfo {
12        #[offset(24)]
13        #[rename(name = "_data")]
14        pub data: crate::system::io::monoiostat::MonoIOStat,
15        #[offset(64)]
16        #[rename(name = "_dataInitialised")]
17        pub data_initialised: i32,
18        #[offset(72)]
19        #[rename(name = "FullPath")]
20        pub full_path: ::unity::Il2CppString,
21        #[offset(80)]
22        #[rename(name = "OriginalPath")]
23        pub original_path: ::unity::Il2CppString,
24        #[offset(88)]
25        #[rename(name = "_displayPath")]
26        pub display_path_field: ::unity::Il2CppString,
27    }
28}
29
30#[cfg(feature = "system-io-filesysteminfo-types")]
31pub use __types::*;
32
33#[cfg(feature = "system-io-filesysteminfo")]
34pub trait IFileSystemInfoMethods: IFileSystemInfo {
35    #[doc = "`.ctor()` overload"]
36    fn ctor(self) -> () {
37        unsafe {
38            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x380c850usize)as*mut u8,();
40(FileSystemInfo)__receiver)
41        }
42    }
43    #[doc = "`get_FullName()` overload"]
44    fn get_full_name(self) -> ::unity::Il2CppString {
45        unsafe {
46            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            {
48                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
49                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
50                    panic!(
51                        "unity: virtual slot {}
52 out of range (vtable len {}
53) on the runtime class behind {}
54 (method `{}
55`)",
56                        7usize,
57                        __vt.len(),
58                        <FileSystemInfo as ::unity::ClassIdentity>::NAME,
59                        "get_FullName",
60                    )
61                });
62                let __inner: extern "C" fn(FileSystemInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString =
63                    ::core::mem::transmute(__vi.method_ptr);
64                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65                __inner(__receiver, __mi)
66            }
67        }
68    }
69    #[doc = "`get_Name()` overload"]
70    fn get_name(self) -> ::unity::Il2CppString {
71        unsafe {
72            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            {
74                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
75                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
76                    panic!(
77                        "unity: virtual slot {}
78 out of range (vtable len {}
79) on the runtime class behind {}
80 (method `{}
81`)",
82                        8usize,
83                        __vt.len(),
84                        <FileSystemInfo as ::unity::ClassIdentity>::NAME,
85                        "get_Name",
86                    )
87                });
88                let __inner: extern "C" fn(FileSystemInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString =
89                    ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`get_Exists()` overload"]
96    fn get_exists(self) -> bool {
97        unsafe {
98            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            {
100                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
102                    panic!(
103                        "unity: virtual slot {}
104 out of range (vtable len {}
105) on the runtime class behind {}
106 (method `{}
107`)",
108                        9usize,
109                        __vt.len(),
110                        <FileSystemInfo as ::unity::ClassIdentity>::NAME,
111                        "get_Exists",
112                    )
113                });
114                let __inner: extern "C" fn(FileSystemInfo, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, __mi)
117            }
118        }
119    }
120    #[doc = "`Refresh()` overload"]
121    fn refresh(self) -> () {
122        unsafe {
123            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x380ce80usize)as*mut u8,();
125(FileSystemInfo)__receiver)
126        }
127    }
128    #[doc = "`get_DisplayPath()` overload"]
129    fn get_display_path(self) -> ::unity::Il2CppString {
130        unsafe {
131            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x3812440usize)as*mut u8, ::unity::Il2CppString;
133(FileSystemInfo)__receiver)
134        }
135    }
136    #[doc = "`set_DisplayPath(::unity::Il2CppString)` overload"]
137    fn set_display_path(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
138        unsafe {
139            let __receiver = <FileSystemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x3812450usize)as*mut u8,();
141(FileSystemInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
142        }
143    }
144}
145
146#[cfg(feature = "system-io-filesysteminfo")]
147impl<__T: IFileSystemInfo> IFileSystemInfoMethods for __T {}
148
149#[cfg(feature = "system-io-filesysteminfo")]
150impl FileSystemInfo {
151    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
153    }
154
155    pub fn get_full_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
157    }
158
159    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
161    }
162
163    pub fn get_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
165    }
166
167    pub fn refresh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
169    }
170
171    pub fn get_display_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
173    }
174
175    pub fn set_display_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
177    }
178}
179
180#[cfg(feature = "system-io-filesysteminfo")]
181impl FileSystemInfo {
182    #[doc = "Direct (non-virtual) call to `FileSystemInfo`'s own `get_FullName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
183    pub unsafe fn get_full_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
184        let __mi = Self::get_full_name_method_info();
185        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
186        __inner(this.into(), ::core::option::Option::None)
187    }
188
189    #[doc = "Direct (non-virtual) call to `FileSystemInfo`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
191        let __mi = Self::get_name_method_info();
192        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
193        __inner(this.into(), ::core::option::Option::None)
194    }
195
196    #[doc = "Direct (non-virtual) call to `FileSystemInfo`'s own `get_Exists`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
197    pub unsafe fn get_exists(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
198        let __mi = Self::get_exists_method_info();
199        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
200        __inner(this.into(), ::core::option::Option::None)
201    }
202}
203
204#[cfg(feature = "system-io-filesysteminfo")]
205impl FileSystemInfo {
206    #[doc = "`.ctor()` — no args"]
207    pub fn new() -> Self {
208        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
209            panic!(
210                "{}
211::{}
212 failed to instantiate",
213                ::core::stringify!(FileSystemInfo),
214                ::core::stringify!(new),
215            )
216        });
217        <Self as IFileSystemInfoMethods>::ctor(this);
218        this
219    }
220}
221
222#[cfg(feature = "system-io-filesysteminfo")]
223#[doc(hidden)]
224pub mod prelude {
225    pub use super::{FileSystemInfo, IFileSystemInfo, IFileSystemInfoMethods};
226}