Ejemplo n.º 1
0
 void INetEventListener.OnNetworkReceiveUnconnected(IPEndPoint remoteEndPoint, NetPacketReader reader, UnconnectedMessageType messageType)
 {
     if (NetworkReceiveUnconnectedEvent != null)
     {
         NetworkReceiveUnconnectedEvent(remoteEndPoint, reader, messageType);
     }
 }
Ejemplo n.º 2
0
 void INetEventListener.OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod)
 {
     NetworkReceiveEvent?.Invoke(peer, reader, deliveryMethod);
 }
Ejemplo n.º 3
0
 public NetEvent(NetManager manager)
 {
     DataReader = new NetPacketReader(manager, this);
 }
Ejemplo n.º 4
0
 void INetEventListener.OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod)
 {
     if (NetworkReceiveEvent != null)
         NetworkReceiveEvent(peer, reader, deliveryMethod);
 }