engage/generated/unity_engine/resource_management/exceptions/
resourcemanagerexception.rs1#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/exceptions/resourcemanagerexception/ResourceManagerException.md"))]
10 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Exceptions", name = "ResourceManagerException")]
11 pub struct ResourceManagerException {}
12}
13
14#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __ResourceManagerException_unity_raw {
21 use super::*;
22 #[doc(hidden)]
23 #[allow(non_snake_case)]
24 pub mod __lookup_ctor {
25 use super::*;
26 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
27 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
28 ::unity::lookup::method_info_on_class_with_signature(
29 <ResourceManagerException as ::unity::ClassIdentity>::class(),
30 ".ctor",
31 0,
32 param_types,
33 false,
34 )
35 });
36 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37 match &*METHOD {
38 ::core::result::Result::Ok(mi) => *mi,
39 ::core::result::Result::Err(e) => {
40 panic!(
41 "method lookup failed: {}
42::{}
43: {}
44",
45 <ResourceManagerException as ::unity::ClassIdentity>::NAME,
46 ".ctor",
47 e
48 )
49 },
50 }
51 }
52 }
53 #[doc(hidden)]
54 #[allow(non_snake_case)]
55 pub mod __lookup_ctor_2 {
56 use super::*;
57 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
59 ::unity::lookup::method_info_on_class_with_signature(
60 <ResourceManagerException as ::unity::ClassIdentity>::class(),
61 ".ctor",
62 1,
63 param_types,
64 false,
65 )
66 });
67 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 match &*METHOD {
69 ::core::result::Result::Ok(mi) => *mi,
70 ::core::result::Result::Err(e) => {
71 panic!(
72 "method lookup failed: {}
73::{}
74: {}
75",
76 <ResourceManagerException as ::unity::ClassIdentity>::NAME,
77 ".ctor",
78 e
79 )
80 },
81 }
82 }
83 }
84}
85
86#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
87pub trait IResourceManagerExceptionMethods: IResourceManagerException {
88 #[doc = "`.ctor()` overload"]
89 fn ctor(self) -> () {
90 unsafe {
91 let __receiver =
92 <ResourceManagerException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!(__ResourceManagerException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
94(ResourceManagerException)__receiver)
95 }
96 }
97 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
98 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
99 unsafe {
100 let __receiver =
101 <ResourceManagerException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!(__ResourceManagerException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
103(ResourceManagerException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
104 }
105 }
106 #[doc = "`ToString()` overload"]
107 fn to_string(self) -> ::unity::Il2CppString {
108 unsafe {
109 let __receiver =
110 <ResourceManagerException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 3usize,
121 __vt.len(),
122 <ResourceManagerException as ::unity::ClassIdentity>::NAME,
123 "ToString",
124 )
125 });
126 let __inner: extern "C" fn(ResourceManagerException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
127 ::core::mem::transmute(__vi.method_ptr);
128 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129 __inner(__receiver, __mi)
130 }
131 }
132 }
133}
134
135#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
136impl<__T: IResourceManagerException> IResourceManagerExceptionMethods for __T {}
137
138#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
139impl ResourceManagerException {
140 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
142 }
143
144 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
146 }
147
148 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
150 }
151}
152
153#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
154impl ResourceManagerException {
155 #[doc = "Direct (non-virtual) call to `ResourceManagerException`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
156 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
157 let __mi = Self::to_string_method_info();
158 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
159 __inner(this.into(), ::core::option::Option::None)
160 }
161}
162
163#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
164impl ResourceManagerException {
165 #[doc = "`.ctor()` — no args"]
166 pub fn new() -> Self {
167 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168 panic!(
169 "{}
170::{}
171 failed to instantiate",
172 ::core::stringify!(ResourceManagerException),
173 ::core::stringify!(new),
174 )
175 });
176 <Self as IResourceManagerExceptionMethods>::ctor(this);
177 this
178 }
179
180 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
181 pub fn new_2(message: ::unity::Il2CppString) -> Self {
182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183 panic!(
184 "{}
185::{}
186 failed to instantiate",
187 ::core::stringify!(ResourceManagerException),
188 ::core::stringify!(new_2),
189 )
190 });
191 <Self as IResourceManagerExceptionMethods>::ctor_2(this, message);
192 this
193 }
194}
195
196#[cfg(feature = "unity_engine-resource_management-exceptions-resourcemanagerexception")]
197#[doc(hidden)]
198pub mod prelude {
199 pub use super::{IResourceManagerException, IResourceManagerExceptionMethods, ResourceManagerException};
200}