engage/generated/unity_engine/
iplayereditorconnectionnative.rs1#[cfg(feature = "unity_engine-iplayereditorconnectionnative-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/iplayereditorconnectionnative/IPlayerEditorConnectionNative.md"))]
10 #[::unity::class(namespace = "UnityEngine", name = "IPlayerEditorConnectionNative")]
11 pub struct IPlayerEditorConnectionNative {}
12}
13
14#[cfg(feature = "unity_engine-iplayereditorconnectionnative-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-iplayereditorconnectionnative")]
18pub trait IIPlayerEditorConnectionNativeMethods: IIPlayerEditorConnectionNative {
19 #[doc = "`Initialize()` overload"]
20 fn initialize(self) -> () {
21 unsafe {
22 let __receiver =
23 <IPlayerEditorConnectionNative as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 {
25 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27 panic!(
28 "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33 0usize,
34 __vt.len(),
35 <IPlayerEditorConnectionNative as ::unity::ClassIdentity>::NAME,
36 "Initialize",
37 )
38 });
39 let __inner: extern "C" fn(IPlayerEditorConnectionNative, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, __mi)
42 }
43 }
44 }
45 #[doc = "`DisconnectAll()` overload"]
46 fn disconnect_all(self) -> () {
47 unsafe {
48 let __receiver =
49 <IPlayerEditorConnectionNative as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 {
51 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
53 panic!(
54 "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59 1usize,
60 __vt.len(),
61 <IPlayerEditorConnectionNative as ::unity::ClassIdentity>::NAME,
62 "DisconnectAll",
63 )
64 });
65 let __inner: extern "C" fn(IPlayerEditorConnectionNative, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`Poll()` overload"]
72 fn poll(self) -> () {
73 unsafe {
74 let __receiver =
75 <IPlayerEditorConnectionNative as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 4usize,
86 __vt.len(),
87 <IPlayerEditorConnectionNative as ::unity::ClassIdentity>::NAME,
88 "Poll",
89 )
90 });
91 let __inner: extern "C" fn(IPlayerEditorConnectionNative, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
92 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93 __inner(__receiver, __mi)
94 }
95 }
96 }
97 #[doc = "`IsConnected()` overload"]
98 fn is_connected(self) -> bool {
99 unsafe {
100 let __receiver =
101 <IPlayerEditorConnectionNative as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 {
103 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
105 panic!(
106 "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111 7usize,
112 __vt.len(),
113 <IPlayerEditorConnectionNative as ::unity::ClassIdentity>::NAME,
114 "IsConnected",
115 )
116 });
117 let __inner: extern "C" fn(IPlayerEditorConnectionNative, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
118 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119 __inner(__receiver, __mi)
120 }
121 }
122 }
123}
124
125#[cfg(feature = "unity_engine-iplayereditorconnectionnative")]
126impl<__T: IIPlayerEditorConnectionNative> IIPlayerEditorConnectionNativeMethods for __T {}
127
128#[cfg(feature = "unity_engine-iplayereditorconnectionnative")]
129impl IPlayerEditorConnectionNative {
130 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
132 }
133
134 pub fn disconnect_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
136 }
137
138 pub fn poll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
140 }
141
142 pub fn is_connected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
144 }
145}
146
147#[cfg(feature = "unity_engine-iplayereditorconnectionnative")]
148impl IPlayerEditorConnectionNative {
149 #[doc = "Direct (non-virtual) call to `IPlayerEditorConnectionNative`'s own `Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
150 pub unsafe fn initialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
151 let __mi = Self::initialize_method_info();
152 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
153 __inner(this.into(), ::core::option::Option::None)
154 }
155
156 #[doc = "Direct (non-virtual) call to `IPlayerEditorConnectionNative`'s own `DisconnectAll`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157 pub unsafe fn disconnect_all(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
158 let __mi = Self::disconnect_all_method_info();
159 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
160 __inner(this.into(), ::core::option::Option::None)
161 }
162
163 #[doc = "Direct (non-virtual) call to `IPlayerEditorConnectionNative`'s own `Poll`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
164 pub unsafe fn poll(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
165 let __mi = Self::poll_method_info();
166 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
167 __inner(this.into(), ::core::option::Option::None)
168 }
169
170 #[doc = "Direct (non-virtual) call to `IPlayerEditorConnectionNative`'s own `IsConnected`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
171 pub unsafe fn is_connected(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
172 let __mi = Self::is_connected_method_info();
173 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
174 __inner(this.into(), ::core::option::Option::None)
175 }
176}
177
178#[cfg(feature = "unity_engine-iplayereditorconnectionnative")]
179#[doc(hidden)]
180pub mod prelude {
181 pub use super::{IIPlayerEditorConnectionNative, IIPlayerEditorConnectionNativeMethods, IPlayerEditorConnectionNative};
182}