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