Skip to main content

engage/generated/unity_engine/resource_management/resource_providers/
textdataprovider.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider-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::resource_providers::resourceproviderbase::{IResourceProviderBase, ResourceProviderBase},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/resource_providers/textdataprovider/TextDataProvider.md"))]
14    #[::unity::class(namespace = "UnityEngine.ResourceManagement.ResourceProviders", name = "TextDataProvider")]
15    #[parent(crate::unity_engine::resource_management::resource_providers::resourceproviderbase::ResourceProviderBase)]
16    pub struct TextDataProvider {}
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/resource_providers/textdataprovider/TextDataProvider_InternalOp.md"))]
19    #[::unity::class(namespace = "UnityEngine.ResourceManagement.ResourceProviders", name = "TextDataProvider.InternalOp")]
20    #[parent(crate::system::object::Object)]
21    pub struct TextDataProvider_InternalOp {
22        #[offset(16)]
23        #[rename(name = "m_Provider")]
24        pub m_provider: crate::unity_engine::resource_management::resource_providers::textdataprovider::TextDataProvider,
25        #[offset(24)]
26        #[rename(name = "m_RequestOperation")]
27        pub m_request_operation: crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation,
28        #[offset(32)]
29        #[rename(name = "m_RequestQueueOperation")]
30        pub m_request_queue_operation: crate::unity_engine::resource_management::webrequestqueueoperation::WebRequestQueueOperation,
31        #[offset(40)]
32        #[rename(name = "m_PI")]
33        pub m_pi: crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle,
34        #[offset(64)]
35        #[rename(name = "m_IgnoreFailures")]
36        pub m_ignore_failures: bool,
37        #[offset(65)]
38        #[rename(name = "m_Complete")]
39        pub m_complete: bool,
40        #[offset(68)]
41        #[rename(name = "m_Timeout")]
42        pub m_timeout: i32,
43    }
44}
45
46#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider-types")]
47pub use __types::*;
48
49#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
50#[doc(hidden)]
51#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
52mod __TextDataProvider_unity_raw {
53    use super::*;
54    #[doc(hidden)]
55    #[allow(non_snake_case)]
56    pub mod __lookup_get_ignore_failures {
57        use super::*;
58        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
59            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
60            ::unity::lookup::method_info_on_class_with_signature(
61                <TextDataProvider as ::unity::ClassIdentity>::class(),
62                "get_IgnoreFailures",
63                0,
64                param_types,
65                false,
66            )
67        });
68        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69            match &*METHOD {
70                ::core::result::Result::Ok(mi) => *mi,
71                ::core::result::Result::Err(e) => {
72                    panic!(
73                        "method lookup failed: {}
74::{}
75: {}
76",
77                        <TextDataProvider as ::unity::ClassIdentity>::NAME,
78                        "get_IgnoreFailures",
79                        e
80                    )
81                },
82            }
83        }
84    }
85    #[doc(hidden)]
86    #[allow(non_snake_case)]
87    pub mod __lookup_set_ignore_failures {
88        use super::*;
89        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
90            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
91            ::unity::lookup::method_info_on_class_with_signature(
92                <TextDataProvider as ::unity::ClassIdentity>::class(),
93                "set_IgnoreFailures",
94                1,
95                param_types,
96                false,
97            )
98        });
99        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100            match &*METHOD {
101                ::core::result::Result::Ok(mi) => *mi,
102                ::core::result::Result::Err(e) => {
103                    panic!(
104                        "method lookup failed: {}
105::{}
106: {}
107",
108                        <TextDataProvider as ::unity::ClassIdentity>::NAME,
109                        "set_IgnoreFailures",
110                        e
111                    )
112                },
113            }
114        }
115    }
116    #[doc(hidden)]
117    #[allow(non_snake_case)]
118    pub mod __lookup_ctor {
119        use super::*;
120        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
121            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
122            ::unity::lookup::method_info_on_class_with_signature(
123                <TextDataProvider as ::unity::ClassIdentity>::class(),
124                ".ctor",
125                0,
126                param_types,
127                false,
128            )
129        });
130        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131            match &*METHOD {
132                ::core::result::Result::Ok(mi) => *mi,
133                ::core::result::Result::Err(e) => {
134                    panic!(
135                        "method lookup failed: {}
136::{}
137: {}
138",
139                        <TextDataProvider as ::unity::ClassIdentity>::NAME,
140                        ".ctor",
141                        e
142                    )
143                },
144            }
145        }
146    }
147}
148
149#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
150pub trait ITextDataProviderMethods: ITextDataProvider {
151    #[doc = "`get_IgnoreFailures()` overload"]
152    fn get_ignore_failures(self) -> bool {
153        unsafe {
154            let __receiver = <TextDataProvider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!(__TextDataProvider_unity_raw::__lookup_get_ignore_failures::get_method_info().method_ptr,bool;
156(TextDataProvider)__receiver)
157        }
158    }
159    #[doc = "`set_IgnoreFailures(bool)` overload"]
160    fn set_ignore_failures(self, value: impl ::core::convert::Into<bool>) -> () {
161        unsafe {
162            let __receiver = <TextDataProvider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!(__TextDataProvider_unity_raw::__lookup_set_ignore_failures::get_method_info().method_ptr,();
164(TextDataProvider)__receiver,(bool)::core::convert::Into::into(value))
165        }
166    }
167    #[doc = "`Convert(::unity::SystemType, ::unity::Il2CppString)` overload"]
168    fn convert(
169        self,
170        r#type: impl ::core::convert::Into<::unity::SystemType>,
171        text: impl ::core::convert::Into<::unity::Il2CppString>,
172    ) -> crate::system::object::Object {
173        unsafe {
174            let __receiver = <TextDataProvider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            {
176                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
177                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
178                    panic!(
179                        "unity: virtual slot {}
180 out of range (vtable len {}
181) on the runtime class behind {}
182 (method `{}
183`)",
184                        19usize,
185                        __vt.len(),
186                        <TextDataProvider as ::unity::ClassIdentity>::NAME,
187                        "Convert",
188                    )
189                });
190                let __inner: extern "C" fn(
191                    TextDataProvider,
192                    ::unity::SystemType,
193                    ::unity::Il2CppString,
194                    ::unity::OptionalMethod,
195                ) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
196                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197                __inner(__receiver, ::core::convert::Into::into(r#type), ::core::convert::Into::into(text), __mi)
198            }
199        }
200    }
201    #[doc = "`Provide(crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle)` overload"]
202    fn provide(
203        self,
204        provide_handle: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle>,
205    ) -> () {
206        unsafe {
207            let __receiver = <TextDataProvider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208            {
209                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
210                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
211                    panic!(
212                        "unity: virtual slot {}
213 out of range (vtable len {}
214) on the runtime class behind {}
215 (method `{}
216`)",
217                        17usize,
218                        __vt.len(),
219                        <TextDataProvider as ::unity::ClassIdentity>::NAME,
220                        "Provide",
221                    )
222                });
223                let __inner: extern "C" fn(
224                    TextDataProvider,
225                    crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle,
226                    ::unity::OptionalMethod,
227                ) -> () = ::core::mem::transmute(__vi.method_ptr);
228                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
229                __inner(__receiver, ::core::convert::Into::into(provide_handle), __mi)
230            }
231        }
232    }
233    #[doc = "`.ctor()` overload"]
234    fn ctor(self) -> () {
235        unsafe {
236            let __receiver = <TextDataProvider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!(__TextDataProvider_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
238(TextDataProvider)__receiver)
239        }
240    }
241}
242
243#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
244impl<__T: ITextDataProvider> ITextDataProviderMethods for __T {}
245
246#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
247impl TextDataProvider {
248    pub fn get_ignore_failures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
250    }
251
252    pub fn set_ignore_failures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
254    }
255
256    pub fn convert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
258    }
259
260    pub fn provide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
262    }
263
264    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
266    }
267}
268
269#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
270impl TextDataProvider {
271    #[doc = "Direct (non-virtual) call to `TextDataProvider`'s own `Convert`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
272    pub unsafe fn convert(
273        this: impl ::core::convert::Into<::unity::IlInstance>,
274        r#type: ::unity::SystemType,
275        text: ::unity::Il2CppString,
276    ) -> crate::system::object::Object {
277        let __mi = Self::convert_method_info();
278        let __inner: extern "C" fn(
279            ::unity::IlInstance,
280            ::unity::SystemType,
281            ::unity::Il2CppString,
282            ::unity::OptionalMethod,
283        ) -> crate::system::object::Object = ::core::mem::transmute(__mi.method_ptr);
284        __inner(this.into(), r#type, text, ::core::option::Option::None)
285    }
286
287    #[doc = "Direct (non-virtual) call to `TextDataProvider`'s own `Provide`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
288    pub unsafe fn provide(
289        this: impl ::core::convert::Into<::unity::IlInstance>,
290        provide_handle: crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle,
291    ) -> () {
292        let __mi = Self::provide_method_info();
293        let __inner: extern "C" fn(
294            ::unity::IlInstance,
295            crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle,
296            ::unity::OptionalMethod,
297        ) -> () = ::core::mem::transmute(__mi.method_ptr);
298        __inner(this.into(), provide_handle, ::core::option::Option::None)
299    }
300}
301
302#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
303impl TextDataProvider {
304    #[doc = "`.ctor()` — no args"]
305    pub fn new() -> Self {
306        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
307            panic!(
308                "{}
309::{}
310 failed to instantiate",
311                ::core::stringify!(TextDataProvider),
312                ::core::stringify!(new),
313            )
314        });
315        <Self as ITextDataProviderMethods>::ctor(this);
316        this
317    }
318}
319
320#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
321#[doc(hidden)]
322#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
323mod __TextDataProvider_InternalOp_unity_raw {
324    use super::*;
325    #[doc(hidden)]
326    #[allow(non_snake_case)]
327    pub mod __lookup_get_percent_complete {
328        use super::*;
329        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
330            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
331            ::unity::lookup::method_info_on_class_with_signature(
332                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
333                "GetPercentComplete",
334                0,
335                param_types,
336                false,
337            )
338        });
339        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340            match &*METHOD {
341                ::core::result::Result::Ok(mi) => *mi,
342                ::core::result::Result::Err(e) => {
343                    panic!(
344                        "method lookup failed: {}
345::{}
346: {}
347",
348                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
349                        "GetPercentComplete",
350                        e
351                    )
352                },
353            }
354        }
355    }
356    #[doc(hidden)]
357    #[allow(non_snake_case)]
358    pub mod __lookup_start {
359        use super::*;
360        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
361            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
362                <crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle as ::unity::IlType>::il_type(),
363                <crate::unity_engine::resource_management::resource_providers::textdataprovider::TextDataProvider as ::unity::IlType>::il_type(),
364            ];
365            ::unity::lookup::method_info_on_class_with_signature(
366                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
367                "Start",
368                2,
369                param_types,
370                false,
371            )
372        });
373        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374            match &*METHOD {
375                ::core::result::Result::Ok(mi) => *mi,
376                ::core::result::Result::Err(e) => {
377                    panic!(
378                        "method lookup failed: {}
379::{}
380: {}
381",
382                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
383                        "Start",
384                        e
385                    )
386                },
387            }
388        }
389    }
390    #[doc(hidden)]
391    #[allow(non_snake_case)]
392    pub mod __lookup_wait_for_completion_handler {
393        use super::*;
394        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
395            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
396            ::unity::lookup::method_info_on_class_with_signature(
397                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
398                "WaitForCompletionHandler",
399                0,
400                param_types,
401                false,
402            )
403        });
404        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405            match &*METHOD {
406                ::core::result::Result::Ok(mi) => *mi,
407                ::core::result::Result::Err(e) => {
408                    panic!(
409                        "method lookup failed: {}
410::{}
411: {}
412",
413                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
414                        "WaitForCompletionHandler",
415                        e
416                    )
417                },
418            }
419        }
420    }
421    #[doc(hidden)]
422    #[allow(non_snake_case)]
423    pub mod __lookup_request_operation_completed {
424        use super::*;
425        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
426            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
427                &[<crate::unity_engine::asyncoperation::AsyncOperation as ::unity::IlType>::il_type()];
428            ::unity::lookup::method_info_on_class_with_signature(
429                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
430                "RequestOperation_completed",
431                1,
432                param_types,
433                false,
434            )
435        });
436        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437            match &*METHOD {
438                ::core::result::Result::Ok(mi) => *mi,
439                ::core::result::Result::Err(e) => {
440                    panic!(
441                        "method lookup failed: {}
442::{}
443: {}
444",
445                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
446                        "RequestOperation_completed",
447                        e
448                    )
449                },
450            }
451        }
452    }
453    #[doc(hidden)]
454    #[allow(non_snake_case)]
455    pub mod __lookup_convert_text {
456        use super::*;
457        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
458            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
459            ::unity::lookup::method_info_on_class_with_signature(
460                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
461                "ConvertText",
462                1,
463                param_types,
464                false,
465            )
466        });
467        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468            match &*METHOD {
469                ::core::result::Result::Ok(mi) => *mi,
470                ::core::result::Result::Err(e) => {
471                    panic!(
472                        "method lookup failed: {}
473::{}
474: {}
475",
476                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
477                        "ConvertText",
478                        e
479                    )
480                },
481            }
482        }
483    }
484    #[doc(hidden)]
485    #[allow(non_snake_case)]
486    pub mod __lookup_ctor {
487        use super::*;
488        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
489            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
490            ::unity::lookup::method_info_on_class_with_signature(
491                <TextDataProvider_InternalOp as ::unity::ClassIdentity>::class(),
492                ".ctor",
493                0,
494                param_types,
495                false,
496            )
497        });
498        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499            match &*METHOD {
500                ::core::result::Result::Ok(mi) => *mi,
501                ::core::result::Result::Err(e) => {
502                    panic!(
503                        "method lookup failed: {}
504::{}
505: {}
506",
507                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
508                        ".ctor",
509                        e
510                    )
511                },
512            }
513        }
514    }
515}
516
517#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
518pub trait ITextDataProvider_InternalOpMethods: ITextDataProvider_InternalOp {
519    #[doc = "`GetPercentComplete()` overload"]
520    fn get_percent_complete(self) -> f32 {
521        unsafe {
522            let __receiver =
523                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
524            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_get_percent_complete::get_method_info().method_ptr,f32;
525(TextDataProvider_InternalOp)__receiver)
526        }
527    }
528    #[doc = "`Start(crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle, crate::unity_engine::resource_management::resource_providers::textdataprovider::TextDataProvider)` overload"]
529    fn start(
530        self,
531        provide_handle: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle>,
532        raw_provider: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_providers::textdataprovider::TextDataProvider>,
533    ) -> () {
534        unsafe {
535            let __receiver =
536                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_start::get_method_info().method_ptr,();
538(TextDataProvider_InternalOp)__receiver,(crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle)::core::convert::Into::into(provide_handle),(crate::unity_engine::resource_management::resource_providers::textdataprovider::TextDataProvider)::core::convert::Into::into(raw_provider))
539        }
540    }
541    #[doc = "`WaitForCompletionHandler()` overload"]
542    fn wait_for_completion_handler(self) -> bool {
543        unsafe {
544            let __receiver =
545                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
546            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_wait_for_completion_handler::get_method_info().method_ptr,bool;
547(TextDataProvider_InternalOp)__receiver)
548        }
549    }
550    #[doc = "`RequestOperation_completed(crate::unity_engine::asyncoperation::AsyncOperation)` overload"]
551    fn request_operation_completed(self, op: impl ::core::convert::Into<crate::unity_engine::asyncoperation::AsyncOperation>) -> () {
552        unsafe {
553            let __receiver =
554                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_request_operation_completed::get_method_info().method_ptr,();
556(TextDataProvider_InternalOp)__receiver,(crate::unity_engine::asyncoperation::AsyncOperation)::core::convert::Into::into(op))
557        }
558    }
559    #[doc = "`ConvertText(::unity::Il2CppString)` overload"]
560    fn convert_text(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::system::object::Object {
561        unsafe {
562            let __receiver =
563                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
564            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_convert_text::get_method_info().method_ptr,crate::system::object::Object;
565(TextDataProvider_InternalOp)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
566        }
567    }
568    #[doc = "`SendWebRequest(::unity::Il2CppString)` overload"]
569    fn send_web_request(self, path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
570        unsafe {
571            let __receiver =
572                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
573            {
574                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
575                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
576                    panic!(
577                        "unity: virtual slot {}
578 out of range (vtable len {}
579) on the runtime class behind {}
580 (method `{}
581`)",
582                        4usize,
583                        __vt.len(),
584                        <TextDataProvider_InternalOp as ::unity::ClassIdentity>::NAME,
585                        "SendWebRequest",
586                    )
587                });
588                let __inner: extern "C" fn(TextDataProvider_InternalOp, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
589                    ::core::mem::transmute(__vi.method_ptr);
590                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
591                __inner(__receiver, ::core::convert::Into::into(path), __mi)
592            }
593        }
594    }
595    #[doc = "`.ctor()` overload"]
596    fn ctor(self) -> () {
597        unsafe {
598            let __receiver =
599                <TextDataProvider_InternalOp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
600            ::unity::il2cpp_call!(__TextDataProvider_InternalOp_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
601(TextDataProvider_InternalOp)__receiver)
602        }
603    }
604}
605
606#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
607impl<__T: ITextDataProvider_InternalOp> ITextDataProvider_InternalOpMethods for __T {}
608
609#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
610impl TextDataProvider_InternalOp {
611    pub fn get_percent_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
613    }
614
615    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
617    }
618
619    pub fn wait_for_completion_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
621    }
622
623    pub fn request_operation_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
625    }
626
627    pub fn convert_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
629    }
630
631    pub fn send_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
633    }
634
635    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
637    }
638}
639
640#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
641impl TextDataProvider_InternalOp {
642    #[doc = "Direct (non-virtual) call to `TextDataProvider_InternalOp`'s own `SendWebRequest`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
643    pub unsafe fn send_web_request(this: impl ::core::convert::Into<::unity::IlInstance>, path: ::unity::Il2CppString) -> () {
644        let __mi = Self::send_web_request_method_info();
645        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
646            ::core::mem::transmute(__mi.method_ptr);
647        __inner(this.into(), path, ::core::option::Option::None)
648    }
649}
650
651#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
652impl TextDataProvider_InternalOp {
653    #[doc = "`.ctor()` — no args"]
654    pub fn new() -> Self {
655        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
656            panic!(
657                "{}
658::{}
659 failed to instantiate",
660                ::core::stringify!(TextDataProvider_InternalOp),
661                ::core::stringify!(new),
662            )
663        });
664        <Self as ITextDataProvider_InternalOpMethods>::ctor(this);
665        this
666    }
667}
668
669#[cfg(feature = "unity_engine-resource_management-resource_providers-textdataprovider")]
670#[doc(hidden)]
671pub mod prelude {
672    pub use super::{
673        ITextDataProvider, ITextDataProviderMethods, ITextDataProvider_InternalOp, ITextDataProvider_InternalOpMethods, TextDataProvider,
674        TextDataProvider_InternalOp,
675    };
676    #[cfg(feature = "system-object")]
677    pub use crate::system::object::IObjectMethods;
678    #[cfg(feature = "unity_engine-resource_management-resource_providers-resourceproviderbase")]
679    pub use crate::unity_engine::resource_management::resource_providers::resourceproviderbase::IResourceProviderBaseMethods;
680    pub use crate::{system::object::IObject, unity_engine::resource_management::resource_providers::resourceproviderbase::IResourceProviderBase};
681}