engage/generated/unity_engine/
playerconnectioninternal.rs1#[cfg(feature = "unity_engine-playerconnectioninternal-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/unity_engine/playerconnectioninternal/PlayerConnectionInternal.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "PlayerConnectionInternal")]
12 #[parent(crate::system::object::Object)]
13 pub struct PlayerConnectionInternal {}
14}
15
16#[cfg(feature = "unity_engine-playerconnectioninternal-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-playerconnectioninternal")]
20impl PlayerConnectionInternal {
21 #[doc = "`IsConnected()` overload"]
22 pub fn is_connected() -> bool {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x32f8230usize)as*mut u8,bool;
25 )
26 }
27 }
28
29 #[doc = "`Initialize()` overload"]
30 pub fn initialize() -> () {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x32f81b0usize)as*mut u8,();
33 )
34 }
35 }
36
37 #[doc = "`RegisterInternal(::unity::Il2CppString)` overload"]
38 pub fn register_internal(message_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x32f8040usize)as*mut u8,();
41(::unity::Il2CppString)::core::convert::Into::into(message_id))
42 }
43 }
44
45 #[doc = "`UnregisterInternal(::unity::Il2CppString)` overload"]
46 pub fn unregister_internal(message_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x32f8120usize)as*mut u8,();
49(::unity::Il2CppString)::core::convert::Into::into(message_id))
50 }
51 }
52
53 #[doc = "`SendMessage(::unity::Il2CppString, ::unity::Array<u8>, i32)` overload"]
54 pub fn send_message(
55 message_id: impl ::core::convert::Into<::unity::Il2CppString>,
56 data: impl ::core::convert::Into<::unity::Array<u8>>,
57 player_id: impl ::core::convert::Into<i32>,
58 ) -> () {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x32f7d20usize)as*mut u8,();
61(::unity::Il2CppString)::core::convert::Into::into(message_id),(::unity::Array<u8>)::core::convert::Into::into(data),(i32)::core::convert::Into::into(player_id))
62 }
63 }
64
65 #[doc = "`TrySendMessage(::unity::Il2CppString, ::unity::Array<u8>, i32)` overload"]
66 pub fn try_send_message(
67 message_id: impl ::core::convert::Into<::unity::Il2CppString>,
68 data: impl ::core::convert::Into<::unity::Array<u8>>,
69 player_id: impl ::core::convert::Into<i32>,
70 ) -> bool {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x32f7ed0usize)as*mut u8,bool;
73(::unity::Il2CppString)::core::convert::Into::into(message_id),(::unity::Array<u8>)::core::convert::Into::into(data),(i32)::core::convert::Into::into(player_id))
74 }
75 }
76
77 #[doc = "`PollInternal()` overload"]
78 pub fn poll_internal() -> () {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x32f7f70usize)as*mut u8,();
81 )
82 }
83 }
84
85 #[doc = "`DisconnectAll()` overload"]
86 pub fn disconnect_all() -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x32f82b0usize)as*mut u8,();
89 )
90 }
91 }
92}
93
94#[cfg(feature = "unity_engine-playerconnectioninternal")]
95pub trait IPlayerConnectionInternalMethods: IPlayerConnectionInternal {
96 #[doc = "`UnityEngine.IPlayerEditorConnectionNative.Poll()` overload"]
97 fn unity_engine_i_player_editor_connection_native_poll(self) -> () {
98 unsafe {
99 let __receiver =
100 <PlayerConnectionInternal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 {
102 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
104 panic!(
105 "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110 8usize,
111 __vt.len(),
112 <PlayerConnectionInternal as ::unity::ClassIdentity>::NAME,
113 "UnityEngine.IPlayerEditorConnectionNative.Poll",
114 )
115 });
116 let __inner: extern "C" fn(PlayerConnectionInternal, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, __mi)
119 }
120 }
121 }
122 #[doc = "`UnityEngine.IPlayerEditorConnectionNative.Initialize()` overload"]
123 fn unity_engine_i_player_editor_connection_native_initialize(self) -> () {
124 unsafe {
125 let __receiver =
126 <PlayerConnectionInternal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 {
128 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
130 panic!(
131 "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136 4usize,
137 __vt.len(),
138 <PlayerConnectionInternal as ::unity::ClassIdentity>::NAME,
139 "UnityEngine.IPlayerEditorConnectionNative.Initialize",
140 )
141 });
142 let __inner: extern "C" fn(PlayerConnectionInternal, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
143 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
144 __inner(__receiver, __mi)
145 }
146 }
147 }
148 #[doc = "`UnityEngine.IPlayerEditorConnectionNative.IsConnected()` overload"]
149 fn unity_engine_i_player_editor_connection_native_is_connected(self) -> bool {
150 unsafe {
151 let __receiver =
152 <PlayerConnectionInternal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 {
154 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
156 panic!(
157 "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162 11usize,
163 __vt.len(),
164 <PlayerConnectionInternal as ::unity::ClassIdentity>::NAME,
165 "UnityEngine.IPlayerEditorConnectionNative.IsConnected",
166 )
167 });
168 let __inner: extern "C" fn(PlayerConnectionInternal, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
169 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170 __inner(__receiver, __mi)
171 }
172 }
173 }
174 #[doc = "`UnityEngine.IPlayerEditorConnectionNative.DisconnectAll()` overload"]
175 fn unity_engine_i_player_editor_connection_native_disconnect_all(self) -> () {
176 unsafe {
177 let __receiver =
178 <PlayerConnectionInternal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 {
180 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
182 panic!(
183 "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188 5usize,
189 __vt.len(),
190 <PlayerConnectionInternal as ::unity::ClassIdentity>::NAME,
191 "UnityEngine.IPlayerEditorConnectionNative.DisconnectAll",
192 )
193 });
194 let __inner: extern "C" fn(PlayerConnectionInternal, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
195 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
196 __inner(__receiver, __mi)
197 }
198 }
199 }
200 #[doc = "`.ctor()` overload"]
201 fn ctor(self) -> () {
202 unsafe {
203 let __receiver =
204 <PlayerConnectionInternal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x32f6150usize)as*mut u8,();
206(PlayerConnectionInternal)__receiver)
207 }
208 }
209}
210
211#[cfg(feature = "unity_engine-playerconnectioninternal")]
212impl<__T: IPlayerConnectionInternal> IPlayerConnectionInternalMethods for __T {}
213
214#[cfg(feature = "unity_engine-playerconnectioninternal")]
215impl PlayerConnectionInternal {
216 pub fn unity_engine_i_player_editor_connection_native_poll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
218 }
219
220 pub fn unity_engine_i_player_editor_connection_native_initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
222 }
223
224 pub fn unity_engine_i_player_editor_connection_native_is_connected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
226 }
227
228 pub fn unity_engine_i_player_editor_connection_native_disconnect_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
230 }
231
232 pub fn is_connected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
234 }
235
236 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
238 }
239
240 pub fn register_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
242 }
243
244 pub fn unregister_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
246 }
247
248 pub fn send_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
250 }
251
252 pub fn try_send_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
254 }
255
256 pub fn poll_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
258 }
259
260 pub fn disconnect_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
262 }
263
264 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
266 }
267}
268
269#[cfg(feature = "unity_engine-playerconnectioninternal")]
270impl PlayerConnectionInternal {
271 #[doc = "Direct (non-virtual) call to `PlayerConnectionInternal`'s own `UnityEngine.IPlayerEditorConnectionNative.Poll`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
272 pub unsafe fn unity_engine_i_player_editor_connection_native_poll(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
273 let __mi = Self::unity_engine_i_player_editor_connection_native_poll_method_info();
274 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
275 __inner(this.into(), ::core::option::Option::None)
276 }
277
278 #[doc = "Direct (non-virtual) call to `PlayerConnectionInternal`'s own `UnityEngine.IPlayerEditorConnectionNative.Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
279 pub unsafe fn unity_engine_i_player_editor_connection_native_initialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
280 let __mi = Self::unity_engine_i_player_editor_connection_native_initialize_method_info();
281 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
282 __inner(this.into(), ::core::option::Option::None)
283 }
284
285 #[doc = "Direct (non-virtual) call to `PlayerConnectionInternal`'s own `UnityEngine.IPlayerEditorConnectionNative.IsConnected`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286 pub unsafe fn unity_engine_i_player_editor_connection_native_is_connected(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
287 let __mi = Self::unity_engine_i_player_editor_connection_native_is_connected_method_info();
288 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
289 __inner(this.into(), ::core::option::Option::None)
290 }
291
292 #[doc = "Direct (non-virtual) call to `PlayerConnectionInternal`'s own `UnityEngine.IPlayerEditorConnectionNative.DisconnectAll`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293 pub unsafe fn unity_engine_i_player_editor_connection_native_disconnect_all(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
294 let __mi = Self::unity_engine_i_player_editor_connection_native_disconnect_all_method_info();
295 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
296 __inner(this.into(), ::core::option::Option::None)
297 }
298}
299
300#[cfg(feature = "unity_engine-playerconnectioninternal")]
301impl PlayerConnectionInternal {
302 #[doc = "`.ctor()` — no args"]
303 pub fn new() -> Self {
304 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
305 panic!(
306 "{}
307::{}
308 failed to instantiate",
309 ::core::stringify!(PlayerConnectionInternal),
310 ::core::stringify!(new),
311 )
312 });
313 <Self as IPlayerConnectionInternalMethods>::ctor(this);
314 this
315 }
316}
317
318#[cfg(feature = "unity_engine-playerconnectioninternal")]
319#[doc(hidden)]
320pub mod prelude {
321 pub use super::{IPlayerConnectionInternal, IPlayerConnectionInternalMethods, PlayerConnectionInternal};
322 pub use crate::system::object::IObject;
323 #[cfg(feature = "system-object")]
324 pub use crate::system::object::IObjectMethods;
325}