Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception-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::operationexception::{IOperationException, OperationException},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/exceptions/providerexception/ProviderException.md"))]
14    #[::unity::class(namespace = "UnityEngine.ResourceManagement.Exceptions", name = "ProviderException")]
15    #[parent(crate::unity_engine::resource_management::exceptions::operationexception::OperationException)]
16    pub struct ProviderException {}
17}
18
19#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __ProviderException_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                <ProviderException 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                        <ProviderException as ::unity::ClassIdentity>::NAME,
51                        "get_Location",
52                        e
53                    )
54                },
55            }
56        }
57    }
58}
59
60#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
61pub trait IProviderExceptionMethods: IProviderException {
62    #[doc = "`get_Location()` overload"]
63    fn get_location(self) -> crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation {
64        unsafe {
65            let __receiver = <ProviderException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!(__ProviderException_unity_raw::__lookup_get_location::get_method_info().method_ptr,crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation;
67(ProviderException)__receiver)
68        }
69    }
70}
71
72#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
73impl<__T: IProviderException> IProviderExceptionMethods for __T {}
74
75#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
76impl ProviderException {
77    pub fn get_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
79    }
80}
81
82#[cfg(feature = "unity_engine-resource_management-exceptions-providerexception")]
83#[doc(hidden)]
84pub mod prelude {
85    pub use super::{IProviderException, IProviderExceptionMethods, ProviderException};
86    #[cfg(feature = "system-object")]
87    pub use crate::system::object::IObjectMethods;
88    #[cfg(feature = "unity_engine-resource_management-exceptions-operationexception")]
89    pub use crate::unity_engine::resource_management::exceptions::operationexception::IOperationExceptionMethods;
90    pub use crate::{system::object::IObject, unity_engine::resource_management::exceptions::operationexception::IOperationException};
91}