engage/generated/unity_engine/networking/player_connection/
playereditorconnectionevents.rs1#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::events::{
11 unityevent_1::{IUnityEvent_1, UnityEvent_1},
12 unityeventbase::{IUnityEventBase, UnityEventBase},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/player_connection/playereditorconnectionevents/PlayerEditorConnectionEvents_ConnectionChangeEvent.md"))]
17 #[::unity::class(
18 namespace = "UnityEngine.Networking.PlayerConnection",
19 name = "PlayerEditorConnectionEvents.ConnectionChangeEvent"
20 )]
21 #[parent(crate::unity_engine::events::unityevent_1::UnityEvent_1<i32>)]
22 pub struct PlayerEditorConnectionEvents_ConnectionChangeEvent {}
23
24 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/player_connection/playereditorconnectionevents/PlayerEditorConnectionEvents_MessageEvent.md"))]
25 #[::unity::class(namespace = "UnityEngine.Networking.PlayerConnection", name = "PlayerEditorConnectionEvents.MessageEvent")]
26 #[parent(crate::unity_engine::events::unityevent_1::UnityEvent_1<crate::unity_engine::networking::player_connection::messageeventargs::MessageEventArgs>)]
27 pub struct PlayerEditorConnectionEvents_MessageEvent {}
28
29 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/player_connection/playereditorconnectionevents/PlayerEditorConnectionEvents.md"))]
30 #[::unity::class(namespace = "UnityEngine.Networking.PlayerConnection", name = "PlayerEditorConnectionEvents")]
31 #[parent(crate::system::object::Object)]
32 pub struct PlayerEditorConnectionEvents {
33 #[offset(16)]
34 #[rename(name = "messageTypeSubscribers")]
35 pub message_type_subscribers: crate::system::collections::generic::list_1::List_1<
36 crate::unity_engine::networking::player_connection::playereditorconnectionevents::PlayerEditorConnectionEvents_MessageTypeSubscribers,
37 >,
38 #[offset(24)]
39 #[rename(name = "connectionEvent")]
40 pub connection_event:
41 crate::unity_engine::networking::player_connection::playereditorconnectionevents::PlayerEditorConnectionEvents_ConnectionChangeEvent,
42 #[offset(32)]
43 #[rename(name = "disconnectionEvent")]
44 pub disconnection_event:
45 crate::unity_engine::networking::player_connection::playereditorconnectionevents::PlayerEditorConnectionEvents_ConnectionChangeEvent,
46 }
47
48 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/player_connection/playereditorconnectionevents/PlayerEditorConnectionEvents_MessageTypeSubscribers.md"))]
49 #[::unity::class(
50 namespace = "UnityEngine.Networking.PlayerConnection",
51 name = "PlayerEditorConnectionEvents.MessageTypeSubscribers"
52 )]
53 #[parent(crate::system::object::Object)]
54 pub struct PlayerEditorConnectionEvents_MessageTypeSubscribers {
55 #[offset(16)]
56 #[rename(name = "m_messageTypeId")]
57 pub m_message_type_id: ::unity::Il2CppString,
58 #[offset(24)]
59 #[rename(name = "subscriberCount")]
60 pub subscriber_count: i32,
61 #[offset(32)]
62 #[rename(name = "messageCallback")]
63 pub message_callback:
64 crate::unity_engine::networking::player_connection::playereditorconnectionevents::PlayerEditorConnectionEvents_MessageEvent,
65 }
66}
67
68#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents-types")]
69pub use __types::*;
70
71#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
72pub trait IPlayerEditorConnectionEvents_ConnectionChangeEventMethods: IPlayerEditorConnectionEvents_ConnectionChangeEvent {
73 #[doc = "`.ctor()` overload"]
74 fn ctor(self) -> () {
75 unsafe {
76 let __receiver = <PlayerEditorConnectionEvents_ConnectionChangeEvent as ::unity::FromIlInstance>::from_il_instance(
77 <Self as ::unity::SystemObject>::as_instance(self),
78 );
79 ::unity::il2cpp_call!((::unity::module_base()+0x379e000usize)as*mut u8,();
80(PlayerEditorConnectionEvents_ConnectionChangeEvent)__receiver)
81 }
82 }
83}
84
85#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
86impl<__T: IPlayerEditorConnectionEvents_ConnectionChangeEvent> IPlayerEditorConnectionEvents_ConnectionChangeEventMethods for __T {}
87
88#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
89impl PlayerEditorConnectionEvents_ConnectionChangeEvent {
90 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93}
94
95#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
96impl PlayerEditorConnectionEvents_ConnectionChangeEvent {
97 #[doc = "`.ctor()` — no args"]
98 pub fn new() -> Self {
99 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
100 panic!(
101 "{}
102::{}
103 failed to instantiate",
104 ::core::stringify!(PlayerEditorConnectionEvents_ConnectionChangeEvent),
105 ::core::stringify!(new),
106 )
107 });
108 <Self as IPlayerEditorConnectionEvents_ConnectionChangeEventMethods>::ctor(this);
109 this
110 }
111}
112
113#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
114pub trait IPlayerEditorConnectionEvents_MessageEventMethods: IPlayerEditorConnectionEvents_MessageEvent {
115 #[doc = "`.ctor()` overload"]
116 fn ctor(self) -> () {
117 unsafe {
118 let __receiver = <PlayerEditorConnectionEvents_MessageEvent as ::unity::FromIlInstance>::from_il_instance(
119 <Self as ::unity::SystemObject>::as_instance(self),
120 );
121 ::unity::il2cpp_call!((::unity::module_base()+0x379e060usize)as*mut u8,();
122(PlayerEditorConnectionEvents_MessageEvent)__receiver)
123 }
124 }
125}
126
127#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
128impl<__T: IPlayerEditorConnectionEvents_MessageEvent> IPlayerEditorConnectionEvents_MessageEventMethods for __T {}
129
130#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
131impl PlayerEditorConnectionEvents_MessageEvent {
132 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
134 }
135}
136
137#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
138impl PlayerEditorConnectionEvents_MessageEvent {
139 #[doc = "`.ctor()` — no args"]
140 pub fn new() -> Self {
141 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142 panic!(
143 "{}
144::{}
145 failed to instantiate",
146 ::core::stringify!(PlayerEditorConnectionEvents_MessageEvent),
147 ::core::stringify!(new),
148 )
149 });
150 <Self as IPlayerEditorConnectionEvents_MessageEventMethods>::ctor(this);
151 this
152 }
153}
154
155#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
156pub trait IPlayerEditorConnectionEventsMethods: IPlayerEditorConnectionEvents {
157 #[doc = "`.ctor()` overload"]
158 fn ctor(self) -> () {
159 unsafe {
160 let __receiver =
161 <PlayerEditorConnectionEvents as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x32f7ae0usize)as*mut u8,();
163(PlayerEditorConnectionEvents)__receiver)
164 }
165 }
166}
167
168#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
169impl<__T: IPlayerEditorConnectionEvents> IPlayerEditorConnectionEventsMethods for __T {}
170
171#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
172impl PlayerEditorConnectionEvents {
173 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
175 }
176}
177
178#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
179impl PlayerEditorConnectionEvents {
180 #[doc = "`.ctor()` — no args"]
181 pub fn new() -> Self {
182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183 panic!(
184 "{}
185::{}
186 failed to instantiate",
187 ::core::stringify!(PlayerEditorConnectionEvents),
188 ::core::stringify!(new),
189 )
190 });
191 <Self as IPlayerEditorConnectionEventsMethods>::ctor(this);
192 this
193 }
194}
195
196#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
197pub trait IPlayerEditorConnectionEvents_MessageTypeSubscribersMethods: IPlayerEditorConnectionEvents_MessageTypeSubscribers {
198 #[doc = "`.ctor()` overload"]
199 fn ctor(self) -> () {
200 unsafe {
201 let __receiver = <PlayerEditorConnectionEvents_MessageTypeSubscribers as ::unity::FromIlInstance>::from_il_instance(
202 <Self as ::unity::SystemObject>::as_instance(self),
203 );
204 ::unity::il2cpp_call!((::unity::module_base()+0x379e110usize)as*mut u8,();
205(PlayerEditorConnectionEvents_MessageTypeSubscribers)__receiver)
206 }
207 }
208}
209
210#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
211impl<__T: IPlayerEditorConnectionEvents_MessageTypeSubscribers> IPlayerEditorConnectionEvents_MessageTypeSubscribersMethods for __T {}
212
213#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
214impl PlayerEditorConnectionEvents_MessageTypeSubscribers {
215 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
217 }
218}
219
220#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
221impl PlayerEditorConnectionEvents_MessageTypeSubscribers {
222 #[doc = "`.ctor()` — no args"]
223 pub fn new() -> Self {
224 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225 panic!(
226 "{}
227::{}
228 failed to instantiate",
229 ::core::stringify!(PlayerEditorConnectionEvents_MessageTypeSubscribers),
230 ::core::stringify!(new),
231 )
232 });
233 <Self as IPlayerEditorConnectionEvents_MessageTypeSubscribersMethods>::ctor(this);
234 this
235 }
236}
237
238#[cfg(feature = "unity_engine-networking-player_connection-playereditorconnectionevents")]
239#[doc(hidden)]
240pub mod prelude {
241 pub use super::{
242 IPlayerEditorConnectionEvents, IPlayerEditorConnectionEventsMethods, IPlayerEditorConnectionEvents_ConnectionChangeEvent,
243 IPlayerEditorConnectionEvents_ConnectionChangeEventMethods, IPlayerEditorConnectionEvents_MessageEvent,
244 IPlayerEditorConnectionEvents_MessageEventMethods, IPlayerEditorConnectionEvents_MessageTypeSubscribers,
245 IPlayerEditorConnectionEvents_MessageTypeSubscribersMethods, PlayerEditorConnectionEvents,
246 PlayerEditorConnectionEvents_ConnectionChangeEvent, PlayerEditorConnectionEvents_MessageEvent,
247 PlayerEditorConnectionEvents_MessageTypeSubscribers,
248 };
249 #[cfg(feature = "system-object")]
250 pub use crate::system::object::IObjectMethods;
251 #[cfg(feature = "unity_engine-events-unityevent_1")]
252 pub use crate::unity_engine::events::unityevent_1::IUnityEvent_1Methods;
253 #[cfg(feature = "unity_engine-events-unityeventbase")]
254 pub use crate::unity_engine::events::unityeventbase::IUnityEventBaseMethods;
255 pub use crate::{
256 system::object::IObject,
257 unity_engine::events::{unityevent_1::IUnityEvent_1, unityeventbase::IUnityEventBase},
258 };
259}