Skip to main content

engage/generated/app/
filehandle_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-filehandle_1-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/filehandle_1/FileHandle_1.md"))]
14    #[::unity::class(namespace = "App", name = "FileHandle`1")]
15    #[parent(crate::app::filecommon::FileCommon)]
16    #[parent(crate::system::object::Object)]
17    pub struct FileHandle_1<T0: ::unity::ClassIdentity> {
18        #[rename(name = "m_Data")]
19        pub m_data: crate::app::filedata::FileData,
20    }
21}
22
23#[cfg(feature = "app-filehandle_1-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-filehandle_1")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity> FileHandle_1<T0> {
29    #[doc = "`Load(::unity::Il2CppString)` overload"]
30    #[method(name = "Load", args = 1)]
31    pub fn load(self, path: ::unity::Il2CppString) -> bool;
32
33    #[doc = "`LoadAsync(::unity::Il2CppString)` overload"]
34    #[method(name = "LoadAsync", args = 1)]
35    pub fn load_async(self, path: ::unity::Il2CppString) -> ();
36
37    #[doc = "`Unload()` overload"]
38    #[method(name = "Unload", args = 0)]
39    pub fn unload(self) -> ();
40
41    #[doc = "`Dump()` overload"]
42    #[method(name = "Dump", args = 0)]
43    pub fn dump(self) -> ();
44
45    #[doc = "`IsLoading()` overload"]
46    #[method(name = "IsLoading", args = 0)]
47    pub fn is_loading(self) -> bool;
48
49    #[doc = "`IsValid()` overload"]
50    #[method(name = "IsValid", args = 0)]
51    pub fn is_valid(self) -> bool;
52
53    #[doc = "`GetData()` overload"]
54    #[method(name = "GetData", args = 0)]
55    pub fn get_data(self) -> ::unity::Array<u8>;
56
57    #[doc = "`GetSize()` overload"]
58    #[method(name = "GetSize", args = 0)]
59    pub fn get_size(self) -> i32;
60
61    #[doc = "`GetPath()` overload"]
62    #[method(name = "GetPath", args = 0)]
63    pub fn get_path(self) -> ::unity::Il2CppString;
64
65    #[doc = "`Dispose()` overload"]
66    #[method(name = "Dispose", args = 0)]
67    pub fn dispose(self) -> ();
68
69    #[doc = "`.ctor()` overload"]
70    #[method(name = ".ctor", args = 0)]
71    pub fn ctor(self) -> ();
72
73    #[doc = "`Finalize()` overload"]
74    #[method(name = "Finalize", args = 0)]
75    pub fn finalize(self) -> ();
76}
77
78#[cfg(feature = "app-filehandle_1")]
79impl<T0: ::unity::ClassIdentity> FileHandle_1<T0> {
80    #[doc = "`.ctor()` — no args"]
81    pub fn new() -> Self {
82        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83            panic!(
84                "{}
85::{}
86 failed to instantiate",
87                ::core::stringify!(FileHandle_1),
88                ::core::stringify!(new),
89            )
90        });
91        <Self as IFileHandle_1Methods<T0>>::ctor(this);
92        this
93    }
94}
95
96#[cfg(feature = "app-filehandle_1")]
97#[doc(hidden)]
98pub mod prelude {
99    pub use super::{FileHandle_1, IFileHandle_1, IFileHandle_1Methods};
100    #[cfg(feature = "app-filecommon")]
101    pub use crate::app::filecommon::IFileCommonMethods;
102    #[cfg(feature = "system-object")]
103    pub use crate::system::object::IObjectMethods;
104    pub use crate::{app::filecommon::IFileCommon, system::object::IObject};
105}