Skip to main content

engage/generated/system/io/
filenotfoundexception.rs

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