Skip to main content

engage/generated/system/io/
fileloadexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-fileloadexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        io::ioexception::{IIOException, IOException},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/fileloadexception/FileLoadException.md"))]
14    #[::unity::class(namespace = "System.IO", name = "FileLoadException")]
15    #[parent(crate::system::io::ioexception::IOException)]
16    pub struct FileLoadException {
17        #[offset(144)]
18        #[rename(name = "_fileName")]
19        pub file_name: ::unity::Il2CppString,
20        #[offset(152)]
21        #[rename(name = "_fusionLog")]
22        pub fusion_log: ::unity::Il2CppString,
23    }
24}
25
26#[cfg(feature = "system-io-fileloadexception-types")]
27pub use __types::*;
28
29#[cfg(feature = "system-io-fileloadexception")]
30impl FileLoadException {
31    #[doc = "`FormatFileLoadExceptionMessage(::unity::Il2CppString, i32)` overload"]
32    pub fn format_file_load_exception_message(
33        file_name: impl ::core::convert::Into<::unity::Il2CppString>,
34        h_result: impl ::core::convert::Into<i32>,
35    ) -> ::unity::Il2CppString {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x380d120usize)as*mut u8, ::unity::Il2CppString;
38(::unity::Il2CppString)::core::convert::Into::into(file_name),(i32)::core::convert::Into::into(h_result))
39        }
40    }
41}
42
43#[cfg(feature = "system-io-fileloadexception")]
44pub trait IFileLoadExceptionMethods: IFileLoadException {
45    #[doc = "`.ctor()` overload"]
46    fn ctor(self) -> () {
47        unsafe {
48            let __receiver = <FileLoadException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            ::unity::il2cpp_call!((::unity::module_base()+0x380cf70usize)as*mut u8,();
50(FileLoadException)__receiver)
51        }
52    }
53    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
54    fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
55        unsafe {
56            let __receiver = <FileLoadException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57            ::unity::il2cpp_call!((::unity::module_base()+0x380cff0usize)as*mut u8,();
58(FileLoadException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
59        }
60    }
61    #[doc = "`get_Message()` overload"]
62    fn get_message(self) -> ::unity::Il2CppString {
63        unsafe {
64            let __receiver = <FileLoadException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        5usize,
75                        __vt.len(),
76                        <FileLoadException as ::unity::ClassIdentity>::NAME,
77                        "get_Message",
78                    )
79                });
80                let __inner: extern "C" fn(FileLoadException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
81                    ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, __mi)
84            }
85        }
86    }
87    #[doc = "`SetMessageField()` overload"]
88    fn set_message_field(self) -> () {
89        unsafe {
90            let __receiver = <FileLoadException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x380d060usize)as*mut u8,();
92(FileLoadException)__receiver)
93        }
94    }
95    #[doc = "`ToString()` overload"]
96    fn to_string(self) -> ::unity::Il2CppString {
97        unsafe {
98            let __receiver = <FileLoadException 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(3usize).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                        3usize,
109                        __vt.len(),
110                        <FileLoadException as ::unity::ClassIdentity>::NAME,
111                        "ToString",
112                    )
113                });
114                let __inner: extern "C" fn(FileLoadException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
115                    ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, __mi)
118            }
119        }
120    }
121    #[doc = "`get_FusionLog()` overload"]
122    fn get_fusion_log(self) -> ::unity::Il2CppString {
123        unsafe {
124            let __receiver = <FileLoadException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x380d610usize)as*mut u8, ::unity::Il2CppString;
126(FileLoadException)__receiver)
127        }
128    }
129}
130
131#[cfg(feature = "system-io-fileloadexception")]
132impl<__T: IFileLoadException> IFileLoadExceptionMethods for __T {}
133
134#[cfg(feature = "system-io-fileloadexception")]
135impl FileLoadException {
136    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138    }
139
140    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142    }
143
144    pub fn get_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146    }
147
148    pub fn set_message_field_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150    }
151
152    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154    }
155
156    pub fn get_fusion_log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
158    }
159
160    pub fn format_file_load_exception_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
162    }
163}
164
165#[cfg(feature = "system-io-fileloadexception")]
166impl FileLoadException {
167    #[doc = "Direct (non-virtual) call to `FileLoadException`'s own `get_Message`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168    pub unsafe fn get_message(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
169        let __mi = Self::get_message_method_info();
170        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
171        __inner(this.into(), ::core::option::Option::None)
172    }
173
174    #[doc = "Direct (non-virtual) call to `FileLoadException`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
175    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
176        let __mi = Self::to_string_method_info();
177        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
178        __inner(this.into(), ::core::option::Option::None)
179    }
180}
181
182#[cfg(feature = "system-io-fileloadexception")]
183impl FileLoadException {
184    #[doc = "`.ctor()` — no args"]
185    pub fn new() -> Self {
186        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
187            panic!(
188                "{}
189::{}
190 failed to instantiate",
191                ::core::stringify!(FileLoadException),
192                ::core::stringify!(new),
193            )
194        });
195        <Self as IFileLoadExceptionMethods>::ctor(this);
196        this
197    }
198
199    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
200    pub fn new_2(message: ::unity::Il2CppString) -> Self {
201        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
202            panic!(
203                "{}
204::{}
205 failed to instantiate",
206                ::core::stringify!(FileLoadException),
207                ::core::stringify!(new_2),
208            )
209        });
210        <Self as IFileLoadExceptionMethods>::ctor_2(this, message);
211        this
212    }
213}
214
215#[cfg(feature = "system-io-fileloadexception")]
216#[doc(hidden)]
217pub mod prelude {
218    pub use super::{FileLoadException, IFileLoadException, IFileLoadExceptionMethods};
219    #[cfg(feature = "system-io-ioexception")]
220    pub use crate::system::io::ioexception::IIOExceptionMethods;
221    #[cfg(feature = "system-object")]
222    pub use crate::system::object::IObjectMethods;
223    pub use crate::system::{
224        io::ioexception::{IIOException, IOException},
225        object::IObject,
226    };
227}