public void AddCommand(ServerBattleCommand cmd) { if (cmd == null) return; if (currentTurn == null) { currentTurn = new BattleTurn(this, cmd.turn); } if (cmd.turn != currentTurn.turnID) { Utils.Log("Invalid turn received: " + cmd.turn.ToString(), 0); } currentTurn.AddCommand(cmd); }
public void AddCommand(ServerBattleCommand cmd) { if (cmd == null) return; commands.Add(cmd); }