Exemplo n.º 1
0
 public void SendPacket(Packet packet)
 {
     NetOutgoingMessage message = _client.CreateMessage();
     _client.SendMessage(packet.ToNetBuffer(ref message), NetDeliveryMethod.ReliableOrdered);
 }
Exemplo n.º 2
0
 public void SendPacket(Packet packet, NetConnection connection)
 {
     NetOutgoingMessage message = _server.CreateMessage();
     _server.SendMessage(packet.ToNetBuffer(ref message), connection, NetDeliveryMethod.ReliableOrdered);
 }