Skip to main content

engage/generated/unity_engine/resource_management/exceptions/
unknownresourceproviderexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::resource_management::exceptions::resourcemanagerexception::{IResourceManagerException, ResourceManagerException},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/exceptions/unknownresourceproviderexception/UnknownResourceProviderException.md"))]
14    #[::unity::class(namespace = "UnityEngine.ResourceManagement.Exceptions", name = "UnknownResourceProviderException")]
15    #[parent(crate::unity_engine::resource_management::exceptions::resourcemanagerexception::ResourceManagerException)]
16    pub struct UnknownResourceProviderException {}
17}
18
19#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __UnknownResourceProviderException_unity_raw {
26    use super::*;
27    #[doc(hidden)]
28    #[allow(non_snake_case)]
29    pub mod __lookup_get_location {
30        use super::*;
31        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
33            ::unity::lookup::method_info_on_class_with_signature(
34                <UnknownResourceProviderException as ::unity::ClassIdentity>::class(),
35                "get_Location",
36                0,
37                param_types,
38                false,
39            )
40        });
41        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42            match &*METHOD {
43                ::core::result::Result::Ok(mi) => *mi,
44                ::core::result::Result::Err(e) => {
45                    panic!(
46                        "method lookup failed: {}
47::{}
48: {}
49",
50                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
51                        "get_Location",
52                        e
53                    )
54                },
55            }
56        }
57    }
58    #[doc(hidden)]
59    #[allow(non_snake_case)]
60    pub mod __lookup_set_location {
61        use super::*;
62        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
64                <crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation as ::unity::IlType>::il_type(),
65            ];
66            ::unity::lookup::method_info_on_class_with_signature(
67                <UnknownResourceProviderException as ::unity::ClassIdentity>::class(),
68                "set_Location",
69                1,
70                param_types,
71                false,
72            )
73        });
74        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75            match &*METHOD {
76                ::core::result::Result::Ok(mi) => *mi,
77                ::core::result::Result::Err(e) => {
78                    panic!(
79                        "method lookup failed: {}
80::{}
81: {}
82",
83                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
84                        "set_Location",
85                        e
86                    )
87                },
88            }
89        }
90    }
91    #[doc(hidden)]
92    #[allow(non_snake_case)]
93    pub mod __lookup_ctor {
94        use super::*;
95        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
96            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
97                <crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation as ::unity::IlType>::il_type(),
98            ];
99            ::unity::lookup::method_info_on_class_with_signature(
100                <UnknownResourceProviderException as ::unity::ClassIdentity>::class(),
101                ".ctor",
102                1,
103                param_types,
104                false,
105            )
106        });
107        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108            match &*METHOD {
109                ::core::result::Result::Ok(mi) => *mi,
110                ::core::result::Result::Err(e) => {
111                    panic!(
112                        "method lookup failed: {}
113::{}
114: {}
115",
116                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
117                        ".ctor",
118                        e
119                    )
120                },
121            }
122        }
123    }
124    #[doc(hidden)]
125    #[allow(non_snake_case)]
126    pub mod __lookup_ctor_2 {
127        use super::*;
128        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
129            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
130            ::unity::lookup::method_info_on_class_with_signature(
131                <UnknownResourceProviderException as ::unity::ClassIdentity>::class(),
132                ".ctor",
133                0,
134                param_types,
135                false,
136            )
137        });
138        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139            match &*METHOD {
140                ::core::result::Result::Ok(mi) => *mi,
141                ::core::result::Result::Err(e) => {
142                    panic!(
143                        "method lookup failed: {}
144::{}
145: {}
146",
147                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
148                        ".ctor",
149                        e
150                    )
151                },
152            }
153        }
154    }
155    #[doc(hidden)]
156    #[allow(non_snake_case)]
157    pub mod __lookup_ctor_3 {
158        use super::*;
159        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
160            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
161            ::unity::lookup::method_info_on_class_with_signature(
162                <UnknownResourceProviderException as ::unity::ClassIdentity>::class(),
163                ".ctor",
164                1,
165                param_types,
166                false,
167            )
168        });
169        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170            match &*METHOD {
171                ::core::result::Result::Ok(mi) => *mi,
172                ::core::result::Result::Err(e) => {
173                    panic!(
174                        "method lookup failed: {}
175::{}
176: {}
177",
178                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
179                        ".ctor",
180                        e
181                    )
182                },
183            }
184        }
185    }
186}
187
188#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
189pub trait IUnknownResourceProviderExceptionMethods: IUnknownResourceProviderException {
190    #[doc = "`get_Location()` overload"]
191    fn get_location(self) -> crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation {
192        unsafe {
193            let __receiver =
194                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!(__UnknownResourceProviderException_unity_raw::__lookup_get_location::get_method_info().method_ptr,crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation;
196(UnknownResourceProviderException)__receiver)
197        }
198    }
199    #[doc = "`set_Location(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)` overload"]
200    fn set_location(
201        self,
202        value: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
203    ) -> () {
204        unsafe {
205            let __receiver =
206                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!(__UnknownResourceProviderException_unity_raw::__lookup_set_location::get_method_info().method_ptr,();
208(UnknownResourceProviderException)__receiver,(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)::core::convert::Into::into(value))
209        }
210    }
211    #[doc = "`.ctor(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)` overload"]
212    fn ctor(
213        self,
214        location: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
215    ) -> () {
216        unsafe {
217            let __receiver =
218                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!(__UnknownResourceProviderException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
220(UnknownResourceProviderException)__receiver,(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)::core::convert::Into::into(location))
221        }
222    }
223    #[doc = "`.ctor()` overload"]
224    fn ctor_2(self) -> () {
225        unsafe {
226            let __receiver =
227                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!(__UnknownResourceProviderException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
229(UnknownResourceProviderException)__receiver)
230        }
231    }
232    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
233    fn ctor_3(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
234        unsafe {
235            let __receiver =
236                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!(__UnknownResourceProviderException_unity_raw::__lookup_ctor_3::get_method_info().method_ptr,();
238(UnknownResourceProviderException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
239        }
240    }
241    #[doc = "`get_Message()` overload"]
242    fn get_message(self) -> ::unity::Il2CppString {
243        unsafe {
244            let __receiver =
245                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            {
247                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
248                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
249                    panic!(
250                        "unity: virtual slot {}
251 out of range (vtable len {}
252) on the runtime class behind {}
253 (method `{}
254`)",
255                        5usize,
256                        __vt.len(),
257                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
258                        "get_Message",
259                    )
260                });
261                let __inner: extern "C" fn(UnknownResourceProviderException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
262                    ::core::mem::transmute(__vi.method_ptr);
263                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
264                __inner(__receiver, __mi)
265            }
266        }
267    }
268    #[doc = "`ToString()` overload"]
269    fn to_string(self) -> ::unity::Il2CppString {
270        unsafe {
271            let __receiver =
272                <UnknownResourceProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            {
274                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
275                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
276                    panic!(
277                        "unity: virtual slot {}
278 out of range (vtable len {}
279) on the runtime class behind {}
280 (method `{}
281`)",
282                        3usize,
283                        __vt.len(),
284                        <UnknownResourceProviderException as ::unity::ClassIdentity>::NAME,
285                        "ToString",
286                    )
287                });
288                let __inner: extern "C" fn(UnknownResourceProviderException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
289                    ::core::mem::transmute(__vi.method_ptr);
290                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
291                __inner(__receiver, __mi)
292            }
293        }
294    }
295}
296
297#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
298impl<__T: IUnknownResourceProviderException> IUnknownResourceProviderExceptionMethods for __T {}
299
300#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
301impl UnknownResourceProviderException {
302    pub fn get_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
304    }
305
306    pub fn set_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
308    }
309
310    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
312    }
313
314    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
316    }
317
318    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
320    }
321
322    pub fn get_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
324    }
325
326    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
328    }
329}
330
331#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
332impl UnknownResourceProviderException {
333    #[doc = "Direct (non-virtual) call to `UnknownResourceProviderException`'s own `get_Message`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334    pub unsafe fn get_message(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
335        let __mi = Self::get_message_method_info();
336        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
337        __inner(this.into(), ::core::option::Option::None)
338    }
339
340    #[doc = "Direct (non-virtual) call to `UnknownResourceProviderException`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
342        let __mi = Self::to_string_method_info();
343        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
344        __inner(this.into(), ::core::option::Option::None)
345    }
346}
347
348#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
349impl UnknownResourceProviderException {
350    #[doc = "`.ctor(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)` — overload selector"]
351    pub fn new(location: crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) -> Self {
352        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
353            panic!(
354                "{}
355::{}
356 failed to instantiate",
357                ::core::stringify!(UnknownResourceProviderException),
358                ::core::stringify!(new),
359            )
360        });
361        <Self as IUnknownResourceProviderExceptionMethods>::ctor(this, location);
362        this
363    }
364
365    #[doc = "`.ctor()` — no args"]
366    pub fn new_2() -> Self {
367        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
368            panic!(
369                "{}
370::{}
371 failed to instantiate",
372                ::core::stringify!(UnknownResourceProviderException),
373                ::core::stringify!(new_2),
374            )
375        });
376        <Self as IUnknownResourceProviderExceptionMethods>::ctor_2(this);
377        this
378    }
379
380    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
381    pub fn new_3(message: ::unity::Il2CppString) -> Self {
382        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
383            panic!(
384                "{}
385::{}
386 failed to instantiate",
387                ::core::stringify!(UnknownResourceProviderException),
388                ::core::stringify!(new_3),
389            )
390        });
391        <Self as IUnknownResourceProviderExceptionMethods>::ctor_3(this, message);
392        this
393    }
394}
395
396#[cfg(feature = "unity_engine-resource_management-exceptions-unknownresourceproviderexception")]
397#[doc(hidden)]
398pub mod prelude {
399    pub use super::{IUnknownResourceProviderException, IUnknownResourceProviderExceptionMethods, UnknownResourceProviderException};
400    #[cfg(feature = "system-object")]
401    pub use crate::system::object::IObjectMethods;
402    #[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
403    pub use crate::unity_engine::resource_management::exceptions::resourcemanagerexception::IResourceManagerExceptionMethods;
404    pub use crate::{system::object::IObject, unity_engine::resource_management::exceptions::resourcemanagerexception::IResourceManagerException};
405}