Skip to main content

engage/generated/app/
rawfilehandle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rawfilehandle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            filecommon::{FileCommon, IFileCommon},
11            filehandle_1::{FileHandle_1, IFileHandle_1},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/rawfilehandle/RawFileHandle.md"))]
17    #[::unity::class(namespace = "App", name = "RawFileHandle")]
18    #[parent(crate::app::filehandle_1::FileHandle_1<crate::app::filedata::FileData>)]
19    pub struct RawFileHandle {}
20}
21
22#[cfg(feature = "app-rawfilehandle-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-rawfilehandle")]
26pub trait IRawFileHandleMethods: IRawFileHandle {
27    #[doc = "`GetTextUTF8()` overload"]
28    fn get_text_utf8(self) -> ::unity::Il2CppString {
29        unsafe {
30            let __receiver = <RawFileHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x237e280usize)as*mut u8, ::unity::Il2CppString;
32(RawFileHandle)__receiver)
33        }
34    }
35    #[doc = "`.ctor()` overload"]
36    fn ctor(self) -> () {
37        unsafe {
38            let __receiver = <RawFileHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x237e300usize)as*mut u8,();
40(RawFileHandle)__receiver)
41        }
42    }
43}
44
45#[cfg(feature = "app-rawfilehandle")]
46impl<__T: IRawFileHandle> IRawFileHandleMethods for __T {}
47
48#[cfg(feature = "app-rawfilehandle")]
49impl RawFileHandle {
50    pub fn get_text_utf8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
52    }
53
54    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
56    }
57}
58
59#[cfg(feature = "app-rawfilehandle")]
60impl RawFileHandle {
61    #[doc = "`.ctor()` — no args"]
62    pub fn new() -> Self {
63        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
64            panic!(
65                "{}
66::{}
67 failed to instantiate",
68                ::core::stringify!(RawFileHandle),
69                ::core::stringify!(new),
70            )
71        });
72        <Self as IRawFileHandleMethods>::ctor(this);
73        this
74    }
75}
76
77#[cfg(feature = "app-rawfilehandle")]
78#[doc(hidden)]
79pub mod prelude {
80    pub use super::{IRawFileHandle, IRawFileHandleMethods, RawFileHandle};
81    #[cfg(feature = "app-filecommon")]
82    pub use crate::app::filecommon::IFileCommonMethods;
83    #[cfg(feature = "app-filehandle_1")]
84    pub use crate::app::filehandle_1::IFileHandle_1Methods;
85    #[cfg(feature = "system-object")]
86    pub use crate::system::object::IObjectMethods;
87    pub use crate::{
88        app::{filecommon::IFileCommon, filehandle_1::IFileHandle_1},
89        system::object::IObject,
90    };
91}