Skip to main content

engage/generated/app/
versusserverdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-versusserverdata-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/versusserverdata/VersusServerData.md"))]
11    #[::unity::class(namespace = "App", name = "VersusServerData")]
12    #[parent(crate::system::object::Object)]
13    pub struct VersusServerData {
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_IsEmpty")]
25        pub m_is_empty: bool,
26    }
27}
28
29#[cfg(feature = "app-versusserverdata-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-versusserverdata")]
33pub trait IVersusServerDataMethods: IVersusServerData {
34    #[doc = "`.ctor()` overload"]
35    fn ctor(self) -> () {
36        unsafe {
37            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x26b49e0usize)as*mut u8,();
39(VersusServerData)__receiver)
40        }
41    }
42    #[doc = "`Clear()` overload"]
43    fn clear(self) -> () {
44        unsafe {
45            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x26b8100usize)as*mut u8,();
47(VersusServerData)__receiver)
48        }
49    }
50    #[doc = "`SetBinary(::unity::Array<u8>)` overload"]
51    fn set_binary(self, bin: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
52        unsafe {
53            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x26b8130usize)as*mut u8,();
55(VersusServerData)__receiver,(::unity::Array<u8>)::core::convert::Into::into(bin))
56        }
57    }
58    #[doc = "`Serialize()` overload"]
59    fn serialize(self) -> () {
60        unsafe {
61            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
65                    panic!(
66                        "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71                        4usize,
72                        __vt.len(),
73                        <VersusServerData as ::unity::ClassIdentity>::NAME,
74                        "Serialize",
75                    )
76                });
77                let __inner: extern "C" fn(VersusServerData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
78                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79                __inner(__receiver, __mi)
80            }
81        }
82    }
83    #[doc = "`Deserialize()` overload"]
84    fn deserialize(self) -> bool {
85        unsafe {
86            let __receiver = <VersusServerData 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                        <VersusServerData as ::unity::ClassIdentity>::NAME,
99                        "Deserialize",
100                    )
101                });
102                let __inner: extern "C" fn(VersusServerData, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
103                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
104                __inner(__receiver, __mi)
105            }
106        }
107    }
108    #[doc = "`get_Buffer()` overload"]
109    fn get_buffer(self) -> ::unity::Array<u8> {
110        unsafe {
111            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x26b81a0usize)as*mut u8, ::unity::Array<u8> ;
113(VersusServerData)__receiver)
114        }
115    }
116    #[doc = "`get_Size()` overload"]
117    fn get_size(self) -> i32 {
118        unsafe {
119            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x26b81b0usize)as*mut u8,i32;
121(VersusServerData)__receiver)
122        }
123    }
124    #[doc = "`get_IsEmpty()` overload"]
125    fn get_is_empty(self) -> bool {
126        unsafe {
127            let __receiver = <VersusServerData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x26b81c0usize)as*mut u8,bool;
129(VersusServerData)__receiver)
130        }
131    }
132}
133
134#[cfg(feature = "app-versusserverdata")]
135impl<__T: IVersusServerData> IVersusServerDataMethods for __T {}
136
137#[cfg(feature = "app-versusserverdata")]
138impl VersusServerData {
139    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141    }
142
143    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145    }
146
147    pub fn set_binary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149    }
150
151    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153    }
154
155    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157    }
158
159    pub fn get_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161    }
162
163    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165    }
166
167    pub fn get_is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
169    }
170}
171
172#[cfg(feature = "app-versusserverdata")]
173impl VersusServerData {
174    #[doc = "Direct (non-virtual) call to `VersusServerData`'s own `Serialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
175    pub unsafe fn serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
176        let __mi = Self::serialize_method_info();
177        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
178        __inner(this.into(), ::core::option::Option::None)
179    }
180
181    #[doc = "Direct (non-virtual) call to `VersusServerData`'s own `Deserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
183        let __mi = Self::deserialize_method_info();
184        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
185        __inner(this.into(), ::core::option::Option::None)
186    }
187}
188
189#[cfg(feature = "app-versusserverdata")]
190impl VersusServerData {
191    #[doc = "`.ctor()` — no args"]
192    pub fn new() -> Self {
193        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
194            panic!(
195                "{}
196::{}
197 failed to instantiate",
198                ::core::stringify!(VersusServerData),
199                ::core::stringify!(new),
200            )
201        });
202        <Self as IVersusServerDataMethods>::ctor(this);
203        this
204    }
205}
206
207#[cfg(feature = "app-versusserverdata")]
208#[doc(hidden)]
209pub mod prelude {
210    pub use super::{IVersusServerData, IVersusServerDataMethods, VersusServerData};
211    pub use crate::system::object::IObject;
212    #[cfg(feature = "system-object")]
213    pub use crate::system::object::IObjectMethods;
214}