Ejemplo n.º 1
0
 protected override void OnCommitMission()
 {
     if (this._app.LocalPlayer.Faction.Name == "loa")
     {
         Kerberos.Sots.StarFleet.StarFleet.ConvertFleetIntoLoaCubes(this._app.Game, this._selectedFleet);
         Kerberos.Sots.StarFleet.StarFleet.BuildFleetFromComposition(this._app.Game, this._selectedFleet, MissionType.CONSTRUCT_STN);
         this.RebuildShipLists(this.SelectedFleet);
     }
     if (this._superspecialsecretmission != null)
     {
         OverlayConstructionMission.OnConstructionPlaced(this._app.Game, this.SelectedFleet, this.TargetSystem, this._useDirectRoute, this._superspecialsecretmission._targetplanet, this.GetDesignsToBuild(), this.SelectedStationType, this.RebaseTarget, false);
     }
     else
     {
         int?planetForStation = Kerberos.Sots.GameStates.StarSystem.GetSuitablePlanetForStation(this._app.Game, this._app.LocalPlayer.ID, this.TargetSystem, this.SelectedStationType);
         if (!planetForStation.HasValue)
         {
             return;
         }
         OverlayConstructionMission.OnConstructionPlaced(this._app.Game, this.SelectedFleet, this.TargetSystem, this._useDirectRoute, planetForStation.Value, this.GetDesignsToBuild(), this.SelectedStationType, this.RebaseTarget, false);
     }
 }
Ejemplo n.º 2
0
 protected override void OnRefreshMissionDetails(MissionEstimate estimate)
 {
     OverlayConstructionMission.ReRefreshMissionDetails(this._app, estimate);
 }