コード例 #1
0
ファイル: HFTPlayer.cs プロジェクト: aaronyuen2/earthDefender
 void SendToGame(HFTRelayToGameMessage msg)
 {
     if (game_ != null)
     {
         game_.Send(this, msg);
     }
 }
コード例 #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));
     }
 }