engage/generated/unity_engine/resource_management/resource_providers/
providerloadrequestoptions.rs1#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/resource_providers/providerloadrequestoptions/ProviderLoadRequestOptions.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.ResourceProviders", name = "ProviderLoadRequestOptions")]
12 #[parent(crate::system::object::Object)]
13 pub struct ProviderLoadRequestOptions {
14 #[offset(16)]
15 #[rename(name = "m_IgnoreFailures")]
16 pub m_ignore_failures: bool,
17 #[offset(20)]
18 #[rename(name = "m_WebRequestTimeout")]
19 pub m_web_request_timeout: i32,
20 }
21}
22
23#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
27#[doc(hidden)]
28#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
29mod __ProviderLoadRequestOptions_unity_raw {
30 use super::*;
31 #[doc(hidden)]
32 #[allow(non_snake_case)]
33 pub mod __lookup_copy {
34 use super::*;
35 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
36 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
37 ::unity::lookup::method_info_on_class_with_signature(
38 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
39 "Copy",
40 0,
41 param_types,
42 false,
43 )
44 });
45 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
46 match &*METHOD {
47 ::core::result::Result::Ok(mi) => *mi,
48 ::core::result::Result::Err(e) => {
49 panic!(
50 "method lookup failed: {}
51::{}
52: {}
53",
54 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
55 "Copy",
56 e
57 )
58 },
59 }
60 }
61 }
62 #[doc(hidden)]
63 #[allow(non_snake_case)]
64 pub mod __lookup_get_ignore_failures {
65 use super::*;
66 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
67 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
68 ::unity::lookup::method_info_on_class_with_signature(
69 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
70 "get_IgnoreFailures",
71 0,
72 param_types,
73 false,
74 )
75 });
76 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 match &*METHOD {
78 ::core::result::Result::Ok(mi) => *mi,
79 ::core::result::Result::Err(e) => {
80 panic!(
81 "method lookup failed: {}
82::{}
83: {}
84",
85 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
86 "get_IgnoreFailures",
87 e
88 )
89 },
90 }
91 }
92 }
93 #[doc(hidden)]
94 #[allow(non_snake_case)]
95 pub mod __lookup_set_ignore_failures {
96 use super::*;
97 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
98 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
99 ::unity::lookup::method_info_on_class_with_signature(
100 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
101 "set_IgnoreFailures",
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 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
117 "set_IgnoreFailures",
118 e
119 )
120 },
121 }
122 }
123 }
124 #[doc(hidden)]
125 #[allow(non_snake_case)]
126 pub mod __lookup_get_web_request_timeout {
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 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
132 "get_WebRequestTimeout",
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 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
148 "get_WebRequestTimeout",
149 e
150 )
151 },
152 }
153 }
154 }
155 #[doc(hidden)]
156 #[allow(non_snake_case)]
157 pub mod __lookup_set_web_request_timeout {
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] = &[<i32 as ::unity::IlType>::il_type()];
161 ::unity::lookup::method_info_on_class_with_signature(
162 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
163 "set_WebRequestTimeout",
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 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
179 "set_WebRequestTimeout",
180 e
181 )
182 },
183 }
184 }
185 }
186 #[doc(hidden)]
187 #[allow(non_snake_case)]
188 pub mod __lookup_ctor {
189 use super::*;
190 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
191 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
192 ::unity::lookup::method_info_on_class_with_signature(
193 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::class(),
194 ".ctor",
195 0,
196 param_types,
197 false,
198 )
199 });
200 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 match &*METHOD {
202 ::core::result::Result::Ok(mi) => *mi,
203 ::core::result::Result::Err(e) => {
204 panic!(
205 "method lookup failed: {}
206::{}
207: {}
208",
209 <ProviderLoadRequestOptions as ::unity::ClassIdentity>::NAME,
210 ".ctor",
211 e
212 )
213 },
214 }
215 }
216 }
217}
218
219#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
220pub trait IProviderLoadRequestOptionsMethods: IProviderLoadRequestOptions {
221 #[doc = "`Copy()` overload"]
222 fn copy(self) -> crate::unity_engine::resource_management::resource_providers::providerloadrequestoptions::ProviderLoadRequestOptions {
223 unsafe {
224 let __receiver =
225 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_copy::get_method_info().method_ptr,crate::unity_engine::resource_management::resource_providers::providerloadrequestoptions::ProviderLoadRequestOptions;
227(ProviderLoadRequestOptions)__receiver)
228 }
229 }
230 #[doc = "`get_IgnoreFailures()` overload"]
231 fn get_ignore_failures(self) -> bool {
232 unsafe {
233 let __receiver =
234 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_get_ignore_failures::get_method_info().method_ptr,bool;
236(ProviderLoadRequestOptions)__receiver)
237 }
238 }
239 #[doc = "`set_IgnoreFailures(bool)` overload"]
240 fn set_ignore_failures(self, value: impl ::core::convert::Into<bool>) -> () {
241 unsafe {
242 let __receiver =
243 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_set_ignore_failures::get_method_info().method_ptr,();
245(ProviderLoadRequestOptions)__receiver,(bool)::core::convert::Into::into(value))
246 }
247 }
248 #[doc = "`get_WebRequestTimeout()` overload"]
249 fn get_web_request_timeout(self) -> i32 {
250 unsafe {
251 let __receiver =
252 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_get_web_request_timeout::get_method_info().method_ptr,i32;
254(ProviderLoadRequestOptions)__receiver)
255 }
256 }
257 #[doc = "`set_WebRequestTimeout(i32)` overload"]
258 fn set_web_request_timeout(self, value: impl ::core::convert::Into<i32>) -> () {
259 unsafe {
260 let __receiver =
261 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_set_web_request_timeout::get_method_info().method_ptr,();
263(ProviderLoadRequestOptions)__receiver,(i32)::core::convert::Into::into(value))
264 }
265 }
266 #[doc = "`.ctor()` overload"]
267 fn ctor(self) -> () {
268 unsafe {
269 let __receiver =
270 <ProviderLoadRequestOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!(__ProviderLoadRequestOptions_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
272(ProviderLoadRequestOptions)__receiver)
273 }
274 }
275}
276
277#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
278impl<__T: IProviderLoadRequestOptions> IProviderLoadRequestOptionsMethods for __T {}
279
280#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
281impl ProviderLoadRequestOptions {
282 pub fn copy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
284 }
285
286 pub fn get_ignore_failures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
288 }
289
290 pub fn set_ignore_failures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
292 }
293
294 pub fn get_web_request_timeout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
296 }
297
298 pub fn set_web_request_timeout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
300 }
301
302 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
304 }
305}
306
307#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
308impl ProviderLoadRequestOptions {
309 #[doc = "`.ctor()` — no args"]
310 pub fn new() -> Self {
311 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
312 panic!(
313 "{}
314::{}
315 failed to instantiate",
316 ::core::stringify!(ProviderLoadRequestOptions),
317 ::core::stringify!(new),
318 )
319 });
320 <Self as IProviderLoadRequestOptionsMethods>::ctor(this);
321 this
322 }
323}
324
325#[cfg(feature = "unity_engine-resource_management-resource_providers-providerloadrequestoptions")]
326#[doc(hidden)]
327pub mod prelude {
328 pub use super::{IProviderLoadRequestOptions, IProviderLoadRequestOptionsMethods, ProviderLoadRequestOptions};
329 pub use crate::system::object::IObject;
330 #[cfg(feature = "system-object")]
331 pub use crate::system::object::IObjectMethods;
332}