void SendToGame(HFTRelayToGameMessage msg) { if (game_ != null) { game_.Send(this, msg); } }
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)); } }