engage/generated/app/
versusserverrankeddata.rs1#[cfg(feature = "app-versusserverrankeddata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::versusserverdata::{IVersusServerData, VersusServerData},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/versusserverrankeddata/VersusServerRankedData.md"))]
14 #[::unity::class(namespace = "App", name = "VersusServerRankedData")]
15 #[parent(crate::app::versusserverdata::VersusServerData)]
16 pub struct VersusServerRankedData {
17 #[static_field]
18 #[rename(name = "Version")]
19 pub version: u16,
20 #[offset(40)]
21 #[rename(name = "m_EditData")]
22 pub m_edit_data: crate::app::mapeditdata::MapEditData,
23 }
24}
25
26#[cfg(feature = "app-versusserverrankeddata-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-versusserverrankeddata")]
30pub trait IVersusServerRankedDataMethods: IVersusServerRankedData {
31 #[doc = "`.ctor()` overload"]
32 fn ctor(self) -> () {
33 unsafe {
34 let __receiver =
35 <VersusServerRankedData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x26a62a0usize)as*mut u8,();
37(VersusServerRankedData)__receiver)
38 }
39 }
40 #[doc = "`Serialize()` overload"]
41 fn serialize(self) -> () {
42 unsafe {
43 let __receiver =
44 <VersusServerRankedData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 {
46 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
48 panic!(
49 "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54 4usize,
55 __vt.len(),
56 <VersusServerRankedData as ::unity::ClassIdentity>::NAME,
57 "Serialize",
58 )
59 });
60 let __inner: extern "C" fn(VersusServerRankedData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
61 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62 __inner(__receiver, __mi)
63 }
64 }
65 }
66 #[doc = "`Deserialize()` overload"]
67 fn deserialize(self) -> bool {
68 unsafe {
69 let __receiver =
70 <VersusServerRankedData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 5usize,
81 __vt.len(),
82 <VersusServerRankedData as ::unity::ClassIdentity>::NAME,
83 "Deserialize",
84 )
85 });
86 let __inner: extern "C" fn(VersusServerRankedData, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
87 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88 __inner(__receiver, __mi)
89 }
90 }
91 }
92 #[doc = "`get_EditData()` overload"]
93 fn get_edit_data(self) -> crate::app::mapeditdata::MapEditData {
94 unsafe {
95 let __receiver =
96 <VersusServerRankedData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x26b88a0usize)as*mut u8,crate::app::mapeditdata::MapEditData;
98(VersusServerRankedData)__receiver)
99 }
100 }
101}
102
103#[cfg(feature = "app-versusserverrankeddata")]
104impl<__T: IVersusServerRankedData> IVersusServerRankedDataMethods for __T {}
105
106#[cfg(feature = "app-versusserverrankeddata")]
107impl VersusServerRankedData {
108 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110 }
111
112 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114 }
115
116 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118 }
119
120 pub fn get_edit_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122 }
123}
124
125#[cfg(feature = "app-versusserverrankeddata")]
126impl VersusServerRankedData {
127 #[doc = "Direct (non-virtual) call to `VersusServerRankedData`'s own `Serialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128 pub unsafe fn serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
129 let __mi = Self::serialize_method_info();
130 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
131 __inner(this.into(), ::core::option::Option::None)
132 }
133
134 #[doc = "Direct (non-virtual) call to `VersusServerRankedData`'s own `Deserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135 pub unsafe fn deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
136 let __mi = Self::deserialize_method_info();
137 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
138 __inner(this.into(), ::core::option::Option::None)
139 }
140}
141
142#[cfg(feature = "app-versusserverrankeddata")]
143impl VersusServerRankedData {
144 #[doc = "`.ctor()` — no args"]
145 pub fn new() -> Self {
146 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147 panic!(
148 "{}
149::{}
150 failed to instantiate",
151 ::core::stringify!(VersusServerRankedData),
152 ::core::stringify!(new),
153 )
154 });
155 <Self as IVersusServerRankedDataMethods>::ctor(this);
156 this
157 }
158}
159
160#[cfg(feature = "app-versusserverrankeddata")]
161#[doc(hidden)]
162pub mod prelude {
163 pub use super::{IVersusServerRankedData, IVersusServerRankedDataMethods, VersusServerRankedData};
164 #[cfg(feature = "app-versusserverdata")]
165 pub use crate::app::versusserverdata::IVersusServerDataMethods;
166 #[cfg(feature = "system-object")]
167 pub use crate::system::object::IObjectMethods;
168 pub use crate::{app::versusserverdata::IVersusServerData, system::object::IObject};
169}