1#[cfg(feature = "app-versusserverrankedmetadata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::versusservermetadata::{IVersusServerMetaData, VersusServerMetaData},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/versusserverrankedmetadata/VersusServerRankedMetaData.md"))]
14 #[::unity::class(namespace = "App", name = "VersusServerRankedMetaData")]
15 #[parent(crate::app::versusservermetadata::VersusServerMetaData)]
16 pub struct VersusServerRankedMetaData {
17 #[static_field]
18 #[rename(name = "Version")]
19 pub version: u16,
20 #[offset(48)]
21 #[rename(name = "m_Version")]
22 pub m_version: u16,
23 #[offset(56)]
24 #[rename(name = "m_OwnerId")]
25 pub m_owner_id: u64,
26 #[offset(64)]
27 #[rename(name = "m_OwnerName")]
28 pub m_owner_name: ::unity::Il2CppString,
29 #[offset(72)]
30 #[rename(name = "m_SaveIdentifier")]
31 pub m_save_identifier: u64,
32 #[offset(80)]
33 #[rename(name = "m_Rate")]
34 pub m_rate: i16,
35 #[offset(96)]
36 #[rename(name = "m_ScreenShotDataId")]
37 pub m_screen_shot_data_id: u64,
38 #[offset(104)]
39 #[rename(name = "m_Language")]
40 pub m_language: ::unity::Il2CppString,
41 #[static_field]
42 #[rename(name = "INITIAL_RATE")]
43 pub initial_rate: i16,
44 }
45}
46
47#[cfg(feature = "app-versusserverrankedmetadata-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-versusserverrankedmetadata")]
51pub trait IVersusServerRankedMetaDataMethods: IVersusServerRankedMetaData {
52 #[doc = "`.ctor()` overload"]
53 fn ctor(self) -> () {
54 unsafe {
55 let __receiver =
56 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x26a6220usize)as*mut u8,();
58(VersusServerRankedMetaData)__receiver)
59 }
60 }
61 #[doc = "`Clear()` overload"]
62 fn clear(self) -> () {
63 unsafe {
64 let __receiver =
65 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 4usize,
76 __vt.len(),
77 <VersusServerRankedMetaData as ::unity::ClassIdentity>::NAME,
78 "Clear",
79 )
80 });
81 let __inner: extern "C" fn(VersusServerRankedMetaData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, __mi)
84 }
85 }
86 }
87 #[doc = "`SetOwner(u64, ::unity::Il2CppString, u64)` overload"]
88 fn set_owner(
89 self,
90 principal_id: impl ::core::convert::Into<u64>,
91 name: impl ::core::convert::Into<::unity::Il2CppString>,
92 save_id: impl ::core::convert::Into<u64>,
93 ) -> () {
94 unsafe {
95 let __receiver =
96 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x26b89b0usize)as*mut u8,();
98(VersusServerRankedMetaData)__receiver,(u64)::core::convert::Into::into(principal_id),(::unity::Il2CppString)::core::convert::Into::into(name),(u64)::core::convert::Into::into(save_id))
99 }
100 }
101 #[doc = "`SetRate(i32)` overload"]
102 fn set_rate(self, rate: impl ::core::convert::Into<i32>) -> () {
103 unsafe {
104 let __receiver =
105 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x26b89f0usize)as*mut u8,();
107(VersusServerRankedMetaData)__receiver,(i32)::core::convert::Into::into(rate))
108 }
109 }
110 #[doc = "`SetScreenShotDataId(u64)` overload"]
111 fn set_screen_shot_data_id(self, data_id: impl ::core::convert::Into<u64>) -> () {
112 unsafe {
113 let __receiver =
114 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x26b8a10usize)as*mut u8,();
116(VersusServerRankedMetaData)__receiver,(u64)::core::convert::Into::into(data_id))
117 }
118 }
119 #[doc = "`SetLanguage(::unity::Il2CppString)` overload"]
120 fn set_language(self, language: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
121 unsafe {
122 let __receiver =
123 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x26b8a20usize)as*mut u8,();
125(VersusServerRankedMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(language))
126 }
127 }
128 #[doc = "`CopyFrom(crate::app::versusservermetadata::VersusServerMetaData)` overload"]
129 fn copy_from(self, meta_data: impl ::core::convert::Into<crate::app::versusservermetadata::VersusServerMetaData>) -> () {
130 unsafe {
131 let __receiver =
132 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 {
134 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
136 panic!(
137 "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142 5usize,
143 __vt.len(),
144 <VersusServerRankedMetaData as ::unity::ClassIdentity>::NAME,
145 "CopyFrom",
146 )
147 });
148 let __inner: extern "C" fn(
149 VersusServerRankedMetaData,
150 crate::app::versusservermetadata::VersusServerMetaData,
151 ::unity::OptionalMethod,
152 ) -> () = ::core::mem::transmute(__vi.method_ptr);
153 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154 __inner(__receiver, ::core::convert::Into::into(meta_data), __mi)
155 }
156 }
157 }
158 #[doc = "`GetOwnerName()` overload"]
159 fn get_owner_name(self) -> ::unity::Il2CppString {
160 unsafe {
161 let __receiver =
162 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x26b8b60usize)as*mut u8, ::unity::Il2CppString;
164(VersusServerRankedMetaData)__receiver)
165 }
166 }
167 #[doc = "`Serialize()` overload"]
168 fn serialize(self) -> () {
169 unsafe {
170 let __receiver =
171 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 {
173 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
174 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
175 panic!(
176 "unity: virtual slot {}
177 out of range (vtable len {}
178) on the runtime class behind {}
179 (method `{}
180`)",
181 6usize,
182 __vt.len(),
183 <VersusServerRankedMetaData as ::unity::ClassIdentity>::NAME,
184 "Serialize",
185 )
186 });
187 let __inner: extern "C" fn(VersusServerRankedMetaData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
188 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
189 __inner(__receiver, __mi)
190 }
191 }
192 }
193 #[doc = "`Deserialize()` overload"]
194 fn deserialize(self) -> bool {
195 unsafe {
196 let __receiver =
197 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 {
199 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
201 panic!(
202 "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207 7usize,
208 __vt.len(),
209 <VersusServerRankedMetaData as ::unity::ClassIdentity>::NAME,
210 "Deserialize",
211 )
212 });
213 let __inner: extern "C" fn(VersusServerRankedMetaData, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
214 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215 __inner(__receiver, __mi)
216 }
217 }
218 }
219 #[doc = "`Dump(::unity::Il2CppString)` overload"]
220 fn dump(self, opt: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
221 unsafe {
222 let __receiver =
223 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x26b97b0usize)as*mut u8,();
225(VersusServerRankedMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(opt))
226 }
227 }
228 #[doc = "`get_OwnerId()` overload"]
229 fn get_owner_id(self) -> u64 {
230 unsafe {
231 let __receiver =
232 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233 ::unity::il2cpp_call!((::unity::module_base()+0x26b9bd0usize)as*mut u8,u64;
234(VersusServerRankedMetaData)__receiver)
235 }
236 }
237 #[doc = "`get_SaveIdentifier()` overload"]
238 fn get_save_identifier(self) -> u64 {
239 unsafe {
240 let __receiver =
241 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 ::unity::il2cpp_call!((::unity::module_base()+0x26b9bf0usize)as*mut u8,u64;
243(VersusServerRankedMetaData)__receiver)
244 }
245 }
246 #[doc = "`get_Rate()` overload"]
247 fn get_rate(self) -> i32 {
248 unsafe {
249 let __receiver =
250 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x26b9c00usize)as*mut u8,i32;
252(VersusServerRankedMetaData)__receiver)
253 }
254 }
255 #[doc = "`get_ScreenShotDataId()` overload"]
256 fn get_screen_shot_data_id(self) -> u64 {
257 unsafe {
258 let __receiver =
259 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x26b9c20usize)as*mut u8,u64;
261(VersusServerRankedMetaData)__receiver)
262 }
263 }
264 #[doc = "`get_Language()` overload"]
265 fn get_language(self) -> ::unity::Il2CppString {
266 unsafe {
267 let __receiver =
268 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x26b9c30usize)as*mut u8, ::unity::Il2CppString;
270(VersusServerRankedMetaData)__receiver)
271 }
272 }
273 #[doc = "`get_FriendName()` overload"]
274 fn get_friend_name(self) -> ::unity::Il2CppString {
275 unsafe {
276 let __receiver =
277 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278 ::unity::il2cpp_call!((::unity::module_base()+0x26b9c40usize)as*mut u8, ::unity::Il2CppString;
279(VersusServerRankedMetaData)__receiver)
280 }
281 }
282 #[doc = "`set_FriendName(::unity::Il2CppString)` overload"]
283 fn set_friend_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
284 unsafe {
285 let __receiver =
286 <VersusServerRankedMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 ::unity::il2cpp_call!((::unity::module_base()+0x26b9c50usize)as*mut u8,();
288(VersusServerRankedMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
289 }
290 }
291}
292
293#[cfg(feature = "app-versusserverrankedmetadata")]
294impl<__T: IVersusServerRankedMetaData> IVersusServerRankedMetaDataMethods for __T {}
295
296#[cfg(feature = "app-versusserverrankedmetadata")]
297impl VersusServerRankedMetaData {
298 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
300 }
301
302 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
304 }
305
306 pub fn set_owner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
308 }
309
310 pub fn set_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
312 }
313
314 pub fn set_screen_shot_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
316 }
317
318 pub fn set_language_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
320 }
321
322 pub fn copy_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
324 }
325
326 pub fn get_owner_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
328 }
329
330 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
332 }
333
334 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
336 }
337
338 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
340 }
341
342 pub fn get_owner_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
344 }
345
346 pub fn get_save_identifier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
348 }
349
350 pub fn get_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
352 }
353
354 pub fn get_screen_shot_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
356 }
357
358 pub fn get_language_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
360 }
361
362 pub fn get_friend_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
364 }
365
366 pub fn set_friend_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
368 }
369}
370
371#[cfg(feature = "app-versusserverrankedmetadata")]
372impl VersusServerRankedMetaData {
373 #[doc = "Direct (non-virtual) call to `VersusServerRankedMetaData`'s own `Clear`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374 pub unsafe fn clear(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
375 let __mi = Self::clear_method_info();
376 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
377 __inner(this.into(), ::core::option::Option::None)
378 }
379
380 #[doc = "Direct (non-virtual) call to `VersusServerRankedMetaData`'s own `CopyFrom`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381 pub unsafe fn copy_from(
382 this: impl ::core::convert::Into<::unity::IlInstance>,
383 meta_data: crate::app::versusservermetadata::VersusServerMetaData,
384 ) -> () {
385 let __mi = Self::copy_from_method_info();
386 let __inner: extern "C" fn(::unity::IlInstance, crate::app::versusservermetadata::VersusServerMetaData, ::unity::OptionalMethod) -> () =
387 ::core::mem::transmute(__mi.method_ptr);
388 __inner(this.into(), meta_data, ::core::option::Option::None)
389 }
390
391 #[doc = "Direct (non-virtual) call to `VersusServerRankedMetaData`'s own `Serialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
392 pub unsafe fn serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
393 let __mi = Self::serialize_method_info();
394 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
395 __inner(this.into(), ::core::option::Option::None)
396 }
397
398 #[doc = "Direct (non-virtual) call to `VersusServerRankedMetaData`'s own `Deserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
399 pub unsafe fn deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
400 let __mi = Self::deserialize_method_info();
401 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
402 __inner(this.into(), ::core::option::Option::None)
403 }
404}
405
406#[cfg(feature = "app-versusserverrankedmetadata")]
407impl VersusServerRankedMetaData {
408 #[doc = "`.ctor()` — no args"]
409 pub fn new() -> Self {
410 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
411 panic!(
412 "{}
413::{}
414 failed to instantiate",
415 ::core::stringify!(VersusServerRankedMetaData),
416 ::core::stringify!(new),
417 )
418 });
419 <Self as IVersusServerRankedMetaDataMethods>::ctor(this);
420 this
421 }
422}
423
424#[cfg(feature = "app-versusserverrankedmetadata")]
425#[doc(hidden)]
426pub mod prelude {
427 pub use super::{IVersusServerRankedMetaData, IVersusServerRankedMetaDataMethods, VersusServerRankedMetaData};
428 #[cfg(feature = "app-versusservermetadata")]
429 pub use crate::app::versusservermetadata::IVersusServerMetaDataMethods;
430 #[cfg(feature = "system-object")]
431 pub use crate::system::object::IObjectMethods;
432 pub use crate::{app::versusservermetadata::IVersusServerMetaData, system::object::IObject};
433}