Skip to main content

engage/generated/app/
relayreplaycache.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relayreplaycache-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/relayreplaycache/RelayReplayCache.md"))]
11    #[::unity::class(namespace = "App", name = "RelayReplayCache")]
12    #[parent(crate::system::object::Object)]
13    pub struct RelayReplayCache {
14        #[offset(16)]
15        #[rename(name = "m_IsValid")]
16        pub m_is_valid: bool,
17        #[offset(17)]
18        #[rename(name = "m_IsNoNeed")]
19        pub m_is_no_need: bool,
20        #[offset(24)]
21        #[rename(name = "m_Data")]
22        pub m_data: crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>,
23    }
24}
25
26#[cfg(feature = "app-relayreplaycache-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-relayreplaycache")]
30pub trait IRelayReplayCacheMethods: IRelayReplayCache {
31    #[doc = "`.ctor()` overload"]
32    fn ctor(self) -> () {
33        unsafe {
34            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x2001f50usize)as*mut u8,();
36(RelayReplayCache)__receiver)
37        }
38    }
39    #[doc = "`Create(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)` overload"]
40    fn create(
41        self,
42        search_results: impl ::core::convert::Into<
43            crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>,
44        >,
45    ) -> () {
46        unsafe {
47            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2002080usize)as*mut u8,();
49(RelayReplayCache)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)::core::convert::Into::into(search_results))
50        }
51    }
52    #[doc = "`CopyTo(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)` overload"]
53    fn copy_to(
54        self,
55        search_results: impl ::core::convert::Into<
56            crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>,
57        >,
58    ) -> () {
59        unsafe {
60            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x2002230usize)as*mut u8,();
62(RelayReplayCache)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)::core::convert::Into::into(search_results))
63        }
64    }
65    #[doc = "`Duplicate(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>, crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)` overload"]
66    fn duplicate(
67        self,
68        src: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>>,
69        dst: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>>,
70    ) -> () {
71        unsafe {
72            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x2002110usize)as*mut u8,();
74(RelayReplayCache)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)::core::convert::Into::into(src),(crate::system::collections::generic::list_1::List_1<crate::app::relayservermetadata::RelayServerMetaData>)::core::convert::Into::into(dst))
75        }
76    }
77    #[doc = "`Replace(crate::app::relayservermetadata::RelayServerMetaData)` overload"]
78    fn replace(self, new_meta_data: impl ::core::convert::Into<crate::app::relayservermetadata::RelayServerMetaData>) -> () {
79        unsafe {
80            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x20024a0usize)as*mut u8,();
82(RelayReplayCache)__receiver,(crate::app::relayservermetadata::RelayServerMetaData)::core::convert::Into::into(new_meta_data))
83        }
84    }
85    #[doc = "`Clear()` overload"]
86    fn clear(self) -> () {
87        unsafe {
88            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x2002020usize)as*mut u8,();
90(RelayReplayCache)__receiver)
91        }
92    }
93    #[doc = "`get_IsValid()` overload"]
94    fn get_is_valid(self) -> bool {
95        unsafe {
96            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x20025d0usize)as*mut u8,bool;
98(RelayReplayCache)__receiver)
99        }
100    }
101    #[doc = "`get_IsNoNeed()` overload"]
102    fn get_is_no_need(self) -> bool {
103        unsafe {
104            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x20025e0usize)as*mut u8,bool;
106(RelayReplayCache)__receiver)
107        }
108    }
109    #[doc = "`set_IsNoNeed(bool)` overload"]
110    fn set_is_no_need(self, value: impl ::core::convert::Into<bool>) -> () {
111        unsafe {
112            let __receiver = <RelayReplayCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x20025f0usize)as*mut u8,();
114(RelayReplayCache)__receiver,(bool)::core::convert::Into::into(value))
115        }
116    }
117}
118
119#[cfg(feature = "app-relayreplaycache")]
120impl<__T: IRelayReplayCache> IRelayReplayCacheMethods for __T {}
121
122#[cfg(feature = "app-relayreplaycache")]
123impl RelayReplayCache {
124    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
126    }
127
128    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
130    }
131
132    pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
134    }
135
136    pub fn duplicate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
138    }
139
140    pub fn replace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
142    }
143
144    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
146    }
147
148    pub fn get_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
150    }
151
152    pub fn get_is_no_need_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
154    }
155
156    pub fn set_is_no_need_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
158    }
159}
160
161#[cfg(feature = "app-relayreplaycache")]
162impl RelayReplayCache {
163    #[doc = "`.ctor()` — no args"]
164    pub fn new() -> Self {
165        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
166            panic!(
167                "{}
168::{}
169 failed to instantiate",
170                ::core::stringify!(RelayReplayCache),
171                ::core::stringify!(new),
172            )
173        });
174        <Self as IRelayReplayCacheMethods>::ctor(this);
175        this
176    }
177}
178
179#[cfg(feature = "app-relayreplaycache")]
180#[doc(hidden)]
181pub mod prelude {
182    pub use super::{IRelayReplayCache, IRelayReplayCacheMethods, RelayReplayCache};
183    pub use crate::system::object::IObject;
184    #[cfg(feature = "system-object")]
185    pub use crate::system::object::IObjectMethods;
186}