engage/generated/unity_engine/addressable_assets/
invalidkeyexception.rs1#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception-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/addressable_assets/invalidkeyexception/InvalidKeyException.md"))]
10 #[::unity::class(namespace = "UnityEngine.AddressableAssets", name = "InvalidKeyException")]
11 pub struct InvalidKeyException {}
12}
13
14#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception")]
18pub trait IInvalidKeyExceptionMethods: IInvalidKeyException {
19 #[doc = "`get_Key()` overload"]
20 fn get_key(self) -> crate::system::object::Object {
21 unsafe {
22 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb100usize)as*mut u8,crate::system::object::Object;
24(InvalidKeyException)__receiver)
25 }
26 }
27 #[doc = "`set_Key(crate::system::object::Object)` overload"]
28 fn set_key(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
29 unsafe {
30 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb110usize)as*mut u8,();
32(InvalidKeyException)__receiver,(crate::system::object::Object)::core::convert::Into::into(value))
33 }
34 }
35 #[doc = "`get_Type()` overload"]
36 fn get_type(self) -> ::unity::SystemType {
37 unsafe {
38 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb120usize)as*mut u8, ::unity::SystemType;
40(InvalidKeyException)__receiver)
41 }
42 }
43 #[doc = "`set_Type(::unity::SystemType)` overload"]
44 fn set_type(self, value: impl ::core::convert::Into<::unity::SystemType>) -> () {
45 unsafe {
46 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb130usize)as*mut u8,();
48(InvalidKeyException)__receiver,(::unity::SystemType)::core::convert::Into::into(value))
49 }
50 }
51 #[doc = "`.ctor(crate::system::object::Object)` overload"]
52 fn ctor(self, key: impl ::core::convert::Into<crate::system::object::Object>) -> () {
53 unsafe {
54 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb140usize)as*mut u8,();
56(InvalidKeyException)__receiver,(crate::system::object::Object)::core::convert::Into::into(key))
57 }
58 }
59 #[doc = "`.ctor(crate::system::object::Object, ::unity::SystemType)` overload"]
60 fn ctor_2(self, key: impl ::core::convert::Into<crate::system::object::Object>, r#type: impl ::core::convert::Into<::unity::SystemType>) -> () {
61 unsafe {
62 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x2dae140usize)as*mut u8,();
64(InvalidKeyException)__receiver,(crate::system::object::Object)::core::convert::Into::into(key),(::unity::SystemType)::core::convert::Into::into(r#type))
65 }
66 }
67 #[doc = "`.ctor()` overload"]
68 fn ctor_3(self) -> () {
69 unsafe {
70 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb240usize)as*mut u8,();
72(InvalidKeyException)__receiver)
73 }
74 }
75 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
76 fn ctor_4(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
77 unsafe {
78 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2dbb2b0usize)as*mut u8,();
80(InvalidKeyException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
81 }
82 }
83 #[doc = "`get_Message()` overload"]
84 fn get_message(self) -> ::unity::Il2CppString {
85 unsafe {
86 let __receiver = <InvalidKeyException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 {
88 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
90 panic!(
91 "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96 5usize,
97 __vt.len(),
98 <InvalidKeyException as ::unity::ClassIdentity>::NAME,
99 "get_Message",
100 )
101 });
102 let __inner: extern "C" fn(InvalidKeyException, ::unity::OptionalMethod) -> ::unity::Il2CppString =
103 ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, __mi)
106 }
107 }
108 }
109}
110
111#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception")]
112impl<__T: IInvalidKeyException> IInvalidKeyExceptionMethods for __T {}
113
114#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception")]
115impl InvalidKeyException {
116 pub fn get_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
118 }
119
120 pub fn set_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
122 }
123
124 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
126 }
127
128 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
130 }
131
132 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
134 }
135
136 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
138 }
139
140 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
142 }
143
144 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
146 }
147
148 pub fn get_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
150 }
151}
152
153#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception")]
154impl InvalidKeyException {
155 #[doc = "Direct (non-virtual) call to `InvalidKeyException`'s own `get_Message`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
156 pub unsafe fn get_message(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
157 let __mi = Self::get_message_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-addressable_assets-invalidkeyexception")]
164impl InvalidKeyException {
165 #[doc = "`.ctor(crate::system::object::Object)` — overload selector"]
166 pub fn new(key: crate::system::object::Object) -> Self {
167 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168 panic!(
169 "{}
170::{}
171 failed to instantiate",
172 ::core::stringify!(InvalidKeyException),
173 ::core::stringify!(new),
174 )
175 });
176 <Self as IInvalidKeyExceptionMethods>::ctor(this, key);
177 this
178 }
179
180 #[doc = "`.ctor(crate::system::object::Object, ::unity::SystemType)` — overload selector"]
181 pub fn new_2(key: crate::system::object::Object, r#type: ::unity::SystemType) -> Self {
182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183 panic!(
184 "{}
185::{}
186 failed to instantiate",
187 ::core::stringify!(InvalidKeyException),
188 ::core::stringify!(new_2),
189 )
190 });
191 <Self as IInvalidKeyExceptionMethods>::ctor_2(this, key, r#type);
192 this
193 }
194
195 #[doc = "`.ctor()` — no args"]
196 pub fn new_3() -> Self {
197 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
198 panic!(
199 "{}
200::{}
201 failed to instantiate",
202 ::core::stringify!(InvalidKeyException),
203 ::core::stringify!(new_3),
204 )
205 });
206 <Self as IInvalidKeyExceptionMethods>::ctor_3(this);
207 this
208 }
209
210 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
211 pub fn new_4(message: ::unity::Il2CppString) -> Self {
212 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
213 panic!(
214 "{}
215::{}
216 failed to instantiate",
217 ::core::stringify!(InvalidKeyException),
218 ::core::stringify!(new_4),
219 )
220 });
221 <Self as IInvalidKeyExceptionMethods>::ctor_4(this, message);
222 this
223 }
224}
225
226#[cfg(feature = "unity_engine-addressable_assets-invalidkeyexception")]
227#[doc(hidden)]
228pub mod prelude {
229 pub use super::{IInvalidKeyException, IInvalidKeyExceptionMethods, InvalidKeyException};
230}