public void SendUpgradeArmyRequest(ArmyType type, BuildingIdentity laboratoryID) { ArmyUpgradeRequestParameter request = new ArmyUpgradeRequestParameter(); request.ArmyType = type; request.LaboratoryBuildingType = laboratoryID.buildingType; request.LaboratoryBuildingNO = laboratoryID.buildingNO; request.OperateTick = LogicTimer.Instance.GetServerTick(); CommunicationUtility.Instance.UpgradeArmy(request); }
public void UpgradeArmy(ArmyUpgradeRequestParameter parameter) { this.CommunicateWithServer(parameter.GetHashtableFromParameter(), ClientCommandConsts.ARMY_UPGRADE_COMMAND); }