Пример #1
0
 public void SendMessage(IProtocol message)
 {
     if (state == ENetState.Connected)
     {
         message.ToBytes(ProtocolOutput.ExploreToScratch, out var e, out var bytes);
         if (bytes.Length > 0)
         {
             mServer.SendMessage(message.host, bytes);
         }
     }
 }