Skip to main content

engage/generated/app/
versusservermetadata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-versusservermetadata-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/app/versusservermetadata/VersusServerMetaData.md"))]
11    #[::unity::class(namespace = "App", name = "VersusServerMetaData")]
12    #[parent(crate::system::object::Object)]
13    pub struct VersusServerMetaData {
14        #[static_field]
15        #[rename(name = "BufferSize")]
16        pub buffer_size: i32,
17        #[offset(16)]
18        #[rename(name = "m_Buffer")]
19        pub m_buffer: ::unity::Array<u8>,
20        #[offset(24)]
21        #[rename(name = "m_Stream")]
22        pub m_stream: crate::app::stream_2::Stream_2,
23        #[offset(32)]
24        #[rename(name = "m_DataId")]
25        pub m_data_id: u64,
26        #[offset(40)]
27        #[rename(name = "m_DataCode")]
28        pub m_data_code: ::unity::Il2CppString,
29    }
30}
31
32#[cfg(feature = "app-versusservermetadata-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-versusservermetadata")]
36pub trait IVersusServerMetaDataMethods: IVersusServerMetaData {
37    #[doc = "`.ctor()` overload"]
38    fn ctor(self) -> () {
39        unsafe {
40            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x26b73d0usize)as*mut u8,();
42(VersusServerMetaData)__receiver)
43        }
44    }
45    #[doc = "`Clear()` overload"]
46    fn clear(self) -> () {
47        unsafe {
48            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            {
50                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
52                    panic!(
53                        "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58                        4usize,
59                        __vt.len(),
60                        <VersusServerMetaData as ::unity::ClassIdentity>::NAME,
61                        "Clear",
62                    )
63                });
64                let __inner: extern "C" fn(VersusServerMetaData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, __mi)
67            }
68        }
69    }
70    #[doc = "`SetBinary(::unity::Array<u8>)` overload"]
71    fn set_binary(self, bin: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
72        unsafe {
73            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x26b81d0usize)as*mut u8,();
75(VersusServerMetaData)__receiver,(::unity::Array<u8>)::core::convert::Into::into(bin))
76        }
77    }
78    #[doc = "`SetBinary(crate::system::collections::generic::list_1::List_1<u8>)` overload"]
79    fn set_binary_2(self, bin: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<u8>>) -> () {
80        unsafe {
81            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x26b81f0usize)as*mut u8,();
83(VersusServerMetaData)__receiver,(crate::system::collections::generic::list_1::List_1<u8>)::core::convert::Into::into(bin))
84        }
85    }
86    #[doc = "`CopyFrom(crate::app::versusservermetadata::VersusServerMetaData)` overload"]
87    fn copy_from(self, meta_data: impl ::core::convert::Into<crate::app::versusservermetadata::VersusServerMetaData>) -> () {
88        unsafe {
89            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        5usize,
100                        __vt.len(),
101                        <VersusServerMetaData as ::unity::ClassIdentity>::NAME,
102                        "CopyFrom",
103                    )
104                });
105                let __inner: extern "C" fn(
106                    VersusServerMetaData,
107                    crate::app::versusservermetadata::VersusServerMetaData,
108                    ::unity::OptionalMethod,
109                ) -> () = ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, ::core::convert::Into::into(meta_data), __mi)
112            }
113        }
114    }
115    #[doc = "`Serialize()` overload"]
116    fn serialize(self) -> () {
117        unsafe {
118            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        6usize,
129                        __vt.len(),
130                        <VersusServerMetaData as ::unity::ClassIdentity>::NAME,
131                        "Serialize",
132                    )
133                });
134                let __inner: extern "C" fn(VersusServerMetaData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
135                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136                __inner(__receiver, __mi)
137            }
138        }
139    }
140    #[doc = "`Deserialize()` overload"]
141    fn deserialize(self) -> bool {
142        unsafe {
143            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            {
145                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
146                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
147                    panic!(
148                        "unity: virtual slot {}
149 out of range (vtable len {}
150) on the runtime class behind {}
151 (method `{}
152`)",
153                        7usize,
154                        __vt.len(),
155                        <VersusServerMetaData as ::unity::ClassIdentity>::NAME,
156                        "Deserialize",
157                    )
158                });
159                let __inner: extern "C" fn(VersusServerMetaData, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
160                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161                __inner(__receiver, __mi)
162            }
163        }
164    }
165    #[doc = "`get_DataId()` overload"]
166    fn get_data_id(self) -> u64 {
167        unsafe {
168            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x26b8270usize)as*mut u8,u64;
170(VersusServerMetaData)__receiver)
171        }
172    }
173    #[doc = "`set_DataId(u64)` overload"]
174    fn set_data_id(self, value: impl ::core::convert::Into<u64>) -> () {
175        unsafe {
176            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x26b8280usize)as*mut u8,();
178(VersusServerMetaData)__receiver,(u64)::core::convert::Into::into(value))
179        }
180    }
181    #[doc = "`get_DataCode()` overload"]
182    fn get_data_code(self) -> ::unity::Il2CppString {
183        unsafe {
184            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x26b8290usize)as*mut u8, ::unity::Il2CppString;
186(VersusServerMetaData)__receiver)
187        }
188    }
189    #[doc = "`set_DataCode(::unity::Il2CppString)` overload"]
190    fn set_data_code(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
191        unsafe {
192            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x26b82a0usize)as*mut u8,();
194(VersusServerMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
195        }
196    }
197    #[doc = "`get_Buffer()` overload"]
198    fn get_buffer(self) -> ::unity::Array<u8> {
199        unsafe {
200            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            ::unity::il2cpp_call!((::unity::module_base()+0x26b82b0usize)as*mut u8, ::unity::Array<u8> ;
202(VersusServerMetaData)__receiver)
203        }
204    }
205    #[doc = "`get_Size()` overload"]
206    fn get_size(self) -> i32 {
207        unsafe {
208            let __receiver = <VersusServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x26b82c0usize)as*mut u8,i32;
210(VersusServerMetaData)__receiver)
211        }
212    }
213}
214
215#[cfg(feature = "app-versusservermetadata")]
216impl<__T: IVersusServerMetaData> IVersusServerMetaDataMethods for __T {}
217
218#[cfg(feature = "app-versusservermetadata")]
219impl VersusServerMetaData {
220    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
222    }
223
224    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
226    }
227
228    pub fn set_binary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
230    }
231
232    pub fn set_binary_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
234    }
235
236    pub fn copy_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
238    }
239
240    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
242    }
243
244    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
246    }
247
248    pub fn get_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
250    }
251
252    pub fn set_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
254    }
255
256    pub fn get_data_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
258    }
259
260    pub fn set_data_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
262    }
263
264    pub fn get_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
266    }
267
268    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
270    }
271}
272
273#[cfg(feature = "app-versusservermetadata")]
274impl VersusServerMetaData {
275    #[doc = "Direct (non-virtual) call to `VersusServerMetaData`'s own `Clear`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn clear(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
277        let __mi = Self::clear_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
279        __inner(this.into(), ::core::option::Option::None)
280    }
281
282    #[doc = "Direct (non-virtual) call to `VersusServerMetaData`'s own `CopyFrom`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
283    pub unsafe fn copy_from(
284        this: impl ::core::convert::Into<::unity::IlInstance>,
285        meta_data: crate::app::versusservermetadata::VersusServerMetaData,
286    ) -> () {
287        let __mi = Self::copy_from_method_info();
288        let __inner: extern "C" fn(::unity::IlInstance, crate::app::versusservermetadata::VersusServerMetaData, ::unity::OptionalMethod) -> () =
289            ::core::mem::transmute(__mi.method_ptr);
290        __inner(this.into(), meta_data, ::core::option::Option::None)
291    }
292
293    #[doc = "Direct (non-virtual) call to `VersusServerMetaData`'s own `Serialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
294    pub unsafe fn serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
295        let __mi = Self::serialize_method_info();
296        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
297        __inner(this.into(), ::core::option::Option::None)
298    }
299
300    #[doc = "Direct (non-virtual) call to `VersusServerMetaData`'s own `Deserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301    pub unsafe fn deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
302        let __mi = Self::deserialize_method_info();
303        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
304        __inner(this.into(), ::core::option::Option::None)
305    }
306}
307
308#[cfg(feature = "app-versusservermetadata")]
309impl VersusServerMetaData {
310    #[doc = "`.ctor()` — no args"]
311    pub fn new() -> Self {
312        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
313            panic!(
314                "{}
315::{}
316 failed to instantiate",
317                ::core::stringify!(VersusServerMetaData),
318                ::core::stringify!(new),
319            )
320        });
321        <Self as IVersusServerMetaDataMethods>::ctor(this);
322        this
323    }
324}
325
326#[cfg(feature = "app-versusservermetadata")]
327#[doc(hidden)]
328pub mod prelude {
329    pub use super::{IVersusServerMetaData, IVersusServerMetaDataMethods, VersusServerMetaData};
330    pub use crate::system::object::IObject;
331    #[cfg(feature = "system-object")]
332    pub use crate::system::object::IObjectMethods;
333}