Skip to main content

engage/generated/unity_engine/
wwwform.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-wwwform-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/wwwform/WWWForm.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "WWWForm")]
12    #[parent(crate::system::object::Object)]
13    pub struct WWWForm {
14        #[offset(16)]
15        #[rename(name = "formData")]
16        pub form_data: crate::system::collections::generic::list_1::List_1<::unity::Array<u8>>,
17        #[offset(24)]
18        #[rename(name = "fieldNames")]
19        pub field_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
20        #[offset(32)]
21        #[rename(name = "fileNames")]
22        pub file_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
23        #[offset(40)]
24        #[rename(name = "types")]
25        pub types: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
26        #[offset(48)]
27        #[rename(name = "boundary")]
28        pub boundary: ::unity::Array<u8>,
29        #[offset(56)]
30        #[rename(name = "containsFiles")]
31        pub contains_files: bool,
32    }
33}
34
35#[cfg(feature = "unity_engine-wwwform-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-wwwform")]
39pub trait IWWWFormMethods: IWWWForm {
40    #[doc = "`get_headers()` overload"]
41    fn get_headers(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, ::unity::Il2CppString> {
42        unsafe {
43            let __receiver = <WWWForm as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x3f1c9c0usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString, ::unity::Il2CppString> ;
45(WWWForm)__receiver)
46        }
47    }
48    #[doc = "`get_data()` overload"]
49    fn get_data(self) -> ::unity::Array<u8> {
50        unsafe {
51            let __receiver = <WWWForm as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b720usize)as*mut u8, ::unity::Array<u8> ;
53(WWWForm)__receiver)
54        }
55    }
56}
57
58#[cfg(feature = "unity_engine-wwwform")]
59impl<__T: IWWWForm> IWWWFormMethods for __T {}
60
61#[cfg(feature = "unity_engine-wwwform")]
62impl WWWForm {
63    pub fn get_headers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
65    }
66
67    pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
69    }
70}
71
72#[cfg(feature = "unity_engine-wwwform")]
73#[doc(hidden)]
74pub mod prelude {
75    pub use super::{IWWWForm, IWWWFormMethods, WWWForm};
76    pub use crate::system::object::IObject;
77    #[cfg(feature = "system-object")]
78    pub use crate::system::object::IObjectMethods;
79}