Skip to main content

engage/generated/app/
relayservermetadata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relayservermetadata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayservermetadata/RelayServerMetaData_States.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct RelayServerMetaData_States {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for RelayServerMetaData_States {
21        const NAME: &'static str = "RelayServerMetaData.States";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for RelayServerMetaData_States {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl RelayServerMetaData_States {
35        pub fn progressing() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn completed() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn game_over() -> Self {
44            Self { value: 2 }
45        }
46    }
47
48    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayservermetadata/RelayServerMetaData.md"))]
49    #[::unity::class(namespace = "App", name = "RelayServerMetaData")]
50    #[parent(crate::system::object::Object)]
51    pub struct RelayServerMetaData {
52        #[static_field]
53        #[rename(name = "BufferSize")]
54        pub buffer_size: i32,
55        #[static_field]
56        #[rename(name = "BufferOnServerSize")]
57        pub buffer_on_server_size: i32,
58        #[static_field]
59        #[rename(name = "Version")]
60        pub version: u16,
61        #[offset(16)]
62        #[rename(name = "m_Buffer")]
63        pub m_buffer: ::unity::Array<u8>,
64        #[offset(24)]
65        #[rename(name = "m_Stream")]
66        pub m_stream: crate::app::stream_2::Stream_2,
67        #[offset(32)]
68        #[rename(name = "m_BufferOnServer")]
69        pub m_buffer_on_server: ::unity::Array<u8>,
70        #[offset(40)]
71        #[rename(name = "m_SizeOnServer")]
72        pub m_size_on_server: i32,
73        #[offset(48)]
74        #[rename(name = "m_DataId")]
75        pub m_data_id: u64,
76        #[offset(56)]
77        #[rename(name = "m_DataCode")]
78        pub m_data_code: ::unity::Il2CppString,
79        #[offset(64)]
80        #[rename(name = "m_UpdatedUnixTimeOnServer")]
81        pub m_updated_unix_time_on_server: i64,
82        #[offset(72)]
83        #[rename(name = "m_IsSecret")]
84        pub m_is_secret: bool,
85        #[offset(80)]
86        #[rename(name = "m_Cid")]
87        pub m_cid: ::unity::Il2CppString,
88        #[offset(88)]
89        #[rename(name = "m_BeginUnixTime")]
90        pub m_begin_unix_time: i64,
91        #[offset(96)]
92        #[rename(name = "m_EndUnixTime")]
93        pub m_end_unix_time: i64,
94        #[offset(104)]
95        #[rename(name = "m_Turn")]
96        pub m_turn: u8,
97        #[offset(108)]
98        #[rename(name = "m_State")]
99        pub m_state: crate::app::relayservermetadata::RelayServerMetaData_States,
100        #[offset(112)]
101        #[rename(name = "m_PlayerIds")]
102        pub m_player_ids: crate::system::collections::generic::list_1::List_1<u64>,
103        #[offset(120)]
104        #[rename(name = "m_PlayerNames")]
105        pub m_player_names: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
106        #[offset(128)]
107        #[rename(name = "m_Pids")]
108        pub m_pids: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
109        #[offset(136)]
110        #[rename(name = "m_PlayingCount")]
111        pub m_playing_count: u32,
112        #[offset(144)]
113        #[rename(name = "m_Awardees")]
114        pub m_awardees:
115            crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::relayawardeedata::RelayAwardeeData>,
116        #[offset(152)]
117        #[rename(name = "m_AwardRandomSeed")]
118        pub m_award_random_seed: crate::app::randomseed::RandomSeed,
119    }
120}
121
122#[cfg(feature = "app-relayservermetadata-types")]
123pub use __types::*;
124
125#[cfg(feature = "app-relayservermetadata")]
126pub trait IRelayServerMetaDataMethods: IRelayServerMetaData {
127    #[doc = "`.ctor()` overload"]
128    fn ctor(self) -> () {
129        unsafe {
130            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x2007c20usize)as*mut u8,();
132(RelayServerMetaData)__receiver)
133        }
134    }
135    #[doc = "`Clone()` overload"]
136    fn clone(self) -> crate::app::relayservermetadata::RelayServerMetaData {
137        unsafe {
138            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x20022b0usize)as*mut u8,crate::app::relayservermetadata::RelayServerMetaData;
140(RelayServerMetaData)__receiver)
141        }
142    }
143    #[doc = "`SetOwner(u64, ::unity::Il2CppString)` overload"]
144    fn set_owner(self, principal_id: impl ::core::convert::Into<u64>, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
145        unsafe {
146            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2007ee0usize)as*mut u8,();
148(RelayServerMetaData)__receiver,(u64)::core::convert::Into::into(principal_id),(::unity::Il2CppString)::core::convert::Into::into(name))
149        }
150    }
151    #[doc = "`SetCid(::unity::Il2CppString)` overload"]
152    fn set_cid(self, cid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
153        unsafe {
154            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x2008000usize)as*mut u8,();
156(RelayServerMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(cid))
157        }
158    }
159    #[doc = "`SetBinary(::unity::Array<u8>)` overload"]
160    fn set_binary(self, bin: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
161        unsafe {
162            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x2008010usize)as*mut u8,();
164(RelayServerMetaData)__receiver,(::unity::Array<u8>)::core::convert::Into::into(bin))
165        }
166    }
167    #[doc = "`SetBinary(crate::system::collections::generic::list_1::List_1<u8>)` overload"]
168    fn set_binary_2(self, bin: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<u8>>) -> () {
169        unsafe {
170            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x2008070usize)as*mut u8,();
172(RelayServerMetaData)__receiver,(crate::system::collections::generic::list_1::List_1<u8>)::core::convert::Into::into(bin))
173        }
174    }
175    #[doc = "`UpdateBufferOnServer()` overload"]
176    fn update_buffer_on_server(self) -> () {
177        unsafe {
178            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x2008100usize)as*mut u8,();
180(RelayServerMetaData)__receiver)
181        }
182    }
183    #[doc = "`Begin()` overload"]
184    fn begin(self) -> () {
185        unsafe {
186            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x2008630usize)as*mut u8,();
188(RelayServerMetaData)__receiver)
189        }
190    }
191    #[doc = "`Complete()` overload"]
192    fn complete(self) -> () {
193        unsafe {
194            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x20086f0usize)as*mut u8,();
196(RelayServerMetaData)__receiver)
197        }
198    }
199    #[doc = "`GameOver()` overload"]
200    fn game_over(self) -> () {
201        unsafe {
202            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x2008830usize)as*mut u8,();
204(RelayServerMetaData)__receiver)
205        }
206    }
207    #[doc = "`ComplementTime(i64)` overload"]
208    fn complement_time(self, unix_time: impl ::core::convert::Into<i64>) -> () {
209        unsafe {
210            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x2008910usize)as*mut u8,();
212(RelayServerMetaData)__receiver,(i64)::core::convert::Into::into(unix_time))
213        }
214    }
215    #[doc = "`AddPlayer(u64, ::unity::Il2CppString)` overload"]
216    fn add_player(self, principal_id: impl ::core::convert::Into<u64>, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
217        unsafe {
218            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x2007f70usize)as*mut u8,();
220(RelayServerMetaData)__receiver,(u64)::core::convert::Into::into(principal_id),(::unity::Il2CppString)::core::convert::Into::into(name))
221        }
222    }
223    #[doc = "`AddPid(::unity::Il2CppString)` overload"]
224    fn add_pid(self, pid: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
225        unsafe {
226            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x2008940usize)as*mut u8,();
228(RelayServerMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(pid))
229        }
230    }
231    #[doc = "`GetOwnerName()` overload"]
232    fn get_owner_name(self) -> ::unity::Il2CppString {
233        unsafe {
234            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x2008a40usize)as*mut u8, ::unity::Il2CppString;
236(RelayServerMetaData)__receiver)
237        }
238    }
239    #[doc = "`GetPlayerName(i32)` overload"]
240    fn get_player_name(self, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
241        unsafe {
242            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x2008b20usize)as*mut u8, ::unity::Il2CppString;
244(RelayServerMetaData)__receiver,(i32)::core::convert::Into::into(index))
245        }
246    }
247    #[doc = "`CreateAwardRandom()` overload"]
248    fn create_award_random(self) -> crate::app::random_2::Random_2 {
249        unsafe {
250            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x2008be0usize)as*mut u8,crate::app::random_2::Random_2;
252(RelayServerMetaData)__receiver)
253        }
254    }
255    #[doc = "`Clear()` overload"]
256    fn clear(self) -> () {
257        unsafe {
258            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            ::unity::il2cpp_call!((::unity::module_base()+0x2007de0usize)as*mut u8,();
260(RelayServerMetaData)__receiver)
261        }
262    }
263    #[doc = "`Serialize()` overload"]
264    fn serialize(self) -> () {
265        unsafe {
266            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            ::unity::il2cpp_call!((::unity::module_base()+0x2008170usize)as*mut u8,();
268(RelayServerMetaData)__receiver)
269        }
270    }
271    #[doc = "`Deserialize()` overload"]
272    fn deserialize(self) -> bool {
273        unsafe {
274            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275            ::unity::il2cpp_call!((::unity::module_base()+0x2008c50usize)as*mut u8,bool;
276(RelayServerMetaData)__receiver)
277        }
278    }
279    #[doc = "`get_Buffer()` overload"]
280    fn get_buffer(self) -> ::unity::Array<u8> {
281        unsafe {
282            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283            ::unity::il2cpp_call!((::unity::module_base()+0x2009d30usize)as*mut u8, ::unity::Array<u8> ;
284(RelayServerMetaData)__receiver)
285        }
286    }
287    #[doc = "`get_Size()` overload"]
288    fn get_size(self) -> i32 {
289        unsafe {
290            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291            ::unity::il2cpp_call!((::unity::module_base()+0x2008620usize)as*mut u8,i32;
292(RelayServerMetaData)__receiver)
293        }
294    }
295    #[doc = "`get_BufferOnServer()` overload"]
296    fn get_buffer_on_server(self) -> ::unity::Array<u8> {
297        unsafe {
298            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299            ::unity::il2cpp_call!((::unity::module_base()+0x2009d40usize)as*mut u8, ::unity::Array<u8> ;
300(RelayServerMetaData)__receiver)
301        }
302    }
303    #[doc = "`get_SizeOnServer()` overload"]
304    fn get_size_on_server(self) -> i32 {
305        unsafe {
306            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            ::unity::il2cpp_call!((::unity::module_base()+0x2009d50usize)as*mut u8,i32;
308(RelayServerMetaData)__receiver)
309        }
310    }
311    #[doc = "`get_DataId()` overload"]
312    fn get_data_id(self) -> u64 {
313        unsafe {
314            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315            ::unity::il2cpp_call!((::unity::module_base()+0x2009d60usize)as*mut u8,u64;
316(RelayServerMetaData)__receiver)
317        }
318    }
319    #[doc = "`set_DataId(u64)` overload"]
320    fn set_data_id(self, value: impl ::core::convert::Into<u64>) -> () {
321        unsafe {
322            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323            ::unity::il2cpp_call!((::unity::module_base()+0x2009d70usize)as*mut u8,();
324(RelayServerMetaData)__receiver,(u64)::core::convert::Into::into(value))
325        }
326    }
327    #[doc = "`get_DataCode()` overload"]
328    fn get_data_code(self) -> ::unity::Il2CppString {
329        unsafe {
330            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331            ::unity::il2cpp_call!((::unity::module_base()+0x2009d80usize)as*mut u8, ::unity::Il2CppString;
332(RelayServerMetaData)__receiver)
333        }
334    }
335    #[doc = "`set_DataCode(::unity::Il2CppString)` overload"]
336    fn set_data_code(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
337        unsafe {
338            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
339            ::unity::il2cpp_call!((::unity::module_base()+0x2009d90usize)as*mut u8,();
340(RelayServerMetaData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
341        }
342    }
343    #[doc = "`get_UpdatedUnixTimeOnServer()` overload"]
344    fn get_updated_unix_time_on_server(self) -> i64 {
345        unsafe {
346            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347            ::unity::il2cpp_call!((::unity::module_base()+0x2009da0usize)as*mut u8,i64;
348(RelayServerMetaData)__receiver)
349        }
350    }
351    #[doc = "`set_UpdatedUnixTimeOnServer(i64)` overload"]
352    fn set_updated_unix_time_on_server(self, value: impl ::core::convert::Into<i64>) -> () {
353        unsafe {
354            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355            ::unity::il2cpp_call!((::unity::module_base()+0x2009db0usize)as*mut u8,();
356(RelayServerMetaData)__receiver,(i64)::core::convert::Into::into(value))
357        }
358    }
359    #[doc = "`get_IsSecret()` overload"]
360    fn get_is_secret(self) -> bool {
361        unsafe {
362            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363            ::unity::il2cpp_call!((::unity::module_base()+0x2009dc0usize)as*mut u8,bool;
364(RelayServerMetaData)__receiver)
365        }
366    }
367    #[doc = "`set_IsSecret(bool)` overload"]
368    fn set_is_secret(self, value: impl ::core::convert::Into<bool>) -> () {
369        unsafe {
370            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371            ::unity::il2cpp_call!((::unity::module_base()+0x2009dd0usize)as*mut u8,();
372(RelayServerMetaData)__receiver,(bool)::core::convert::Into::into(value))
373        }
374    }
375    #[doc = "`get_OwnerId()` overload"]
376    fn get_owner_id(self) -> u64 {
377        unsafe {
378            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379            ::unity::il2cpp_call!((::unity::module_base()+0x2009de0usize)as*mut u8,u64;
380(RelayServerMetaData)__receiver)
381        }
382    }
383    #[doc = "`get_Cid()` overload"]
384    fn get_cid(self) -> ::unity::Il2CppString {
385        unsafe {
386            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387            ::unity::il2cpp_call!((::unity::module_base()+0x2009e40usize)as*mut u8, ::unity::Il2CppString;
388(RelayServerMetaData)__receiver)
389        }
390    }
391    #[doc = "`get_BeginUnixTime()` overload"]
392    fn get_begin_unix_time(self) -> i64 {
393        unsafe {
394            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395            ::unity::il2cpp_call!((::unity::module_base()+0x2009e50usize)as*mut u8,i64;
396(RelayServerMetaData)__receiver)
397        }
398    }
399    #[doc = "`get_EndUnixTime()` overload"]
400    fn get_end_unix_time(self) -> i64 {
401        unsafe {
402            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
403            ::unity::il2cpp_call!((::unity::module_base()+0x2009e60usize)as*mut u8,i64;
404(RelayServerMetaData)__receiver)
405        }
406    }
407    #[doc = "`get_Turn()` overload"]
408    fn get_turn(self) -> i32 {
409        unsafe {
410            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411            ::unity::il2cpp_call!((::unity::module_base()+0x2009e70usize)as*mut u8,i32;
412(RelayServerMetaData)__receiver)
413        }
414    }
415    #[doc = "`set_Turn(i32)` overload"]
416    fn set_turn(self, value: impl ::core::convert::Into<i32>) -> () {
417        unsafe {
418            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419            ::unity::il2cpp_call!((::unity::module_base()+0x2009e80usize)as*mut u8,();
420(RelayServerMetaData)__receiver,(i32)::core::convert::Into::into(value))
421        }
422    }
423    #[doc = "`get_IsEnd()` overload"]
424    fn get_is_end(self) -> bool {
425        unsafe {
426            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427            ::unity::il2cpp_call!((::unity::module_base()+0x2009ec0usize)as*mut u8,bool;
428(RelayServerMetaData)__receiver)
429        }
430    }
431    #[doc = "`get_IsCompleted()` overload"]
432    fn get_is_completed(self) -> bool {
433        unsafe {
434            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
435            ::unity::il2cpp_call!((::unity::module_base()+0x2009ed0usize)as*mut u8,bool;
436(RelayServerMetaData)__receiver)
437        }
438    }
439    #[doc = "`get_PlayerIds()` overload"]
440    fn get_player_ids(self) -> crate::system::collections::generic::list_1::List_1<u64> {
441        unsafe {
442            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
443            ::unity::il2cpp_call!((::unity::module_base()+0x2009ee0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<u64> ;
444(RelayServerMetaData)__receiver)
445        }
446    }
447    #[doc = "`get_PlayerNames()` overload"]
448    fn get_player_names(self) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
449        unsafe {
450            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451            ::unity::il2cpp_call!((::unity::module_base()+0x2009ef0usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
452(RelayServerMetaData)__receiver)
453        }
454    }
455    #[doc = "`get_Pids()` overload"]
456    fn get_pids(self) -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
457        unsafe {
458            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459            ::unity::il2cpp_call!((::unity::module_base()+0x2009f00usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
460(RelayServerMetaData)__receiver)
461        }
462    }
463    #[doc = "`get_PlayingCount()` overload"]
464    fn get_playing_count(self) -> u32 {
465        unsafe {
466            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467            ::unity::il2cpp_call!((::unity::module_base()+0x2009f10usize)as*mut u8,u32;
468(RelayServerMetaData)__receiver)
469        }
470    }
471    #[doc = "`set_PlayingCount(u32)` overload"]
472    fn set_playing_count(self, value: impl ::core::convert::Into<u32>) -> () {
473        unsafe {
474            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!((::unity::module_base()+0x2009f20usize)as*mut u8,();
476(RelayServerMetaData)__receiver,(u32)::core::convert::Into::into(value))
477        }
478    }
479    #[doc = "`get_Awardees()` overload"]
480    fn get_awardees(
481        self,
482    ) -> crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::relayawardeedata::RelayAwardeeData> {
483        unsafe {
484            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485            ::unity::il2cpp_call!((::unity::module_base()+0x2009f30usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,crate::app::relayawardeedata::RelayAwardeeData> ;
486(RelayServerMetaData)__receiver)
487        }
488    }
489    #[doc = "`set_Awardees(crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString,crate::app::relayawardeedata::RelayAwardeeData>)` overload"]
490    fn set_awardees(
491        self,
492        value: impl ::core::convert::Into<
493            crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::relayawardeedata::RelayAwardeeData>,
494        >,
495    ) -> () {
496        unsafe {
497            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
498            ::unity::il2cpp_call!((::unity::module_base()+0x2009f40usize)as*mut u8,();
499(RelayServerMetaData)__receiver,(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString,crate::app::relayawardeedata::RelayAwardeeData>)::core::convert::Into::into(value))
500        }
501    }
502    #[doc = "`TrySetBeginUnixTime(i64)` overload"]
503    fn try_set_begin_unix_time(self, unix_time: impl ::core::convert::Into<i64>) -> () {
504        unsafe {
505            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
506            ::unity::il2cpp_call!((::unity::module_base()+0x20086d0usize)as*mut u8,();
507(RelayServerMetaData)__receiver,(i64)::core::convert::Into::into(unix_time))
508        }
509    }
510    #[doc = "`TrySetEndUnixTime(i64)` overload"]
511    fn try_set_end_unix_time(self, unix_time: impl ::core::convert::Into<i64>) -> () {
512        unsafe {
513            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
514            ::unity::il2cpp_call!((::unity::module_base()+0x20087d0usize)as*mut u8,();
515(RelayServerMetaData)__receiver,(i64)::core::convert::Into::into(unix_time))
516        }
517    }
518    #[doc = "`SetAwardRandomSeed()` overload"]
519    fn set_award_random_seed(self) -> () {
520        unsafe {
521            let __receiver = <RelayServerMetaData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
522            ::unity::il2cpp_call!((::unity::module_base()+0x20087f0usize)as*mut u8,();
523(RelayServerMetaData)__receiver)
524        }
525    }
526}
527
528#[cfg(feature = "app-relayservermetadata")]
529impl<__T: IRelayServerMetaData> IRelayServerMetaDataMethods for __T {}
530
531#[cfg(feature = "app-relayservermetadata")]
532impl RelayServerMetaData {
533    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
535    }
536
537    pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
539    }
540
541    pub fn set_owner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
543    }
544
545    pub fn set_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
547    }
548
549    pub fn set_binary_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
551    }
552
553    pub fn set_binary_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
555    }
556
557    pub fn update_buffer_on_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
559    }
560
561    pub fn begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
563    }
564
565    pub fn complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
567    }
568
569    pub fn game_over_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
571    }
572
573    pub fn complement_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
575    }
576
577    pub fn add_player_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
579    }
580
581    pub fn add_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
583    }
584
585    pub fn get_owner_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
587    }
588
589    pub fn get_player_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
591    }
592
593    pub fn create_award_random_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
595    }
596
597    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
599    }
600
601    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
603    }
604
605    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
607    }
608
609    pub fn get_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
611    }
612
613    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
615    }
616
617    pub fn get_buffer_on_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
619    }
620
621    pub fn get_size_on_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
623    }
624
625    pub fn get_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
627    }
628
629    pub fn set_data_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
631    }
632
633    pub fn get_data_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
635    }
636
637    pub fn set_data_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
639    }
640
641    pub fn get_updated_unix_time_on_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
643    }
644
645    pub fn set_updated_unix_time_on_server_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
647    }
648
649    pub fn get_is_secret_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
651    }
652
653    pub fn set_is_secret_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
655    }
656
657    pub fn get_owner_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
659    }
660
661    pub fn get_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
663    }
664
665    pub fn get_begin_unix_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
667    }
668
669    pub fn get_end_unix_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
671    }
672
673    pub fn get_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
675    }
676
677    pub fn set_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
679    }
680
681    pub fn get_is_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
683    }
684
685    pub fn get_is_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
687    }
688
689    pub fn get_player_ids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
691    }
692
693    pub fn get_player_names_method_info() -> &'static ::unity::il2cpp::MethodInfo {
694        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
695    }
696
697    pub fn get_pids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
698        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
699    }
700
701    pub fn get_playing_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
702        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
703    }
704
705    pub fn set_playing_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
706        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
707    }
708
709    pub fn get_awardees_method_info() -> &'static ::unity::il2cpp::MethodInfo {
710        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
711    }
712
713    pub fn set_awardees_method_info() -> &'static ::unity::il2cpp::MethodInfo {
714        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
715    }
716
717    pub fn try_set_begin_unix_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
718        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
719    }
720
721    pub fn try_set_end_unix_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
722        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
723    }
724
725    pub fn set_award_random_seed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
726        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
727    }
728}
729
730#[cfg(feature = "app-relayservermetadata")]
731impl RelayServerMetaData {
732    #[doc = "`.ctor()` — no args"]
733    pub fn new() -> Self {
734        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
735            panic!(
736                "{}
737::{}
738 failed to instantiate",
739                ::core::stringify!(RelayServerMetaData),
740                ::core::stringify!(new),
741            )
742        });
743        <Self as IRelayServerMetaDataMethods>::ctor(this);
744        this
745    }
746}
747
748#[cfg(feature = "app-relayservermetadata")]
749#[doc(hidden)]
750pub mod prelude {
751    pub use super::{IRelayServerMetaData, IRelayServerMetaDataMethods, RelayServerMetaData, RelayServerMetaData_States};
752    #[cfg(feature = "system-object")]
753    pub use crate::system::object::IObjectMethods;
754    #[cfg(feature = "system-enum")]
755    pub use crate::system::r#enum::IEnumMethods;
756    #[cfg(feature = "system-valuetype")]
757    pub use crate::system::valuetype::IValueTypeMethods;
758    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
759}