Beispiel #1
0
 void SendToGame(HFTRelayToGameMessage msg)
 {
     if (game_ != null)
     {
         game_.Send(this, msg);
     }
 }
Beispiel #2
0
 public void Send(HFTPlayer owner, HFTRelayToGameMessage msg)
 {
     if (client_ != null)
     {
         try
         {
             client_.Send(msg);
         }
         catch (System.Exception ex)
         {
             log_.Warn("Attempt to send message to game failed: " + ex);
         }
     }
     else
     {
         sendQueue_.Add(new KeyValuePair <HFTPlayer, HFTRelayToGameMessage>(owner, msg));
     }
 }