public void SetData(CampaignStation exportStation, CampaignStation importStation, ResourceType resourceType, int quantity) { this.exportStation = exportStation; this.importStation = importStation; this.resource = resourceType; this.amount = quantity; }
public void AddStation(CampaignStation station) { station.OwnerID = this.factionID; station.fleetColor = this.factionColor; station.addMoney += AddMoney; station.addTradeRoute += AddTradeRoute; station.buy += Buy; station.addFleet += AddFleet; station.shipConfigurations = GameObject.Find("PlayerFaction").GetComponent<CampaignFaction>().shipConfigurationManager.shipConfigurations; this.stations.Add(station); }
public void RemoveStation(CampaignStation station) { station.addMoney -= AddMoney; station.addTradeRoute -= AddTradeRoute; station.buy -= Buy; station.addFleet -= AddFleet; this.stations.Remove(station); }
public void ApplyUpgrade(CampaignStation station) { station.MaxPopulation += maxPopulationIncrease; }
public void AddTradeRoute(CampaignStation exportStation, CampaignStation importStation, TradeRoute.ResourceType resourceType, int quantity) { TradeRoute tradeRoute = new TradeRoute(); tradeRoute.SetData(exportStation, importStation, resourceType, quantity); _tradeRoutes.Add(tradeRoute); }
public void SetStation(CampaignStation campaignStation) { station = campaignStation; station.planet = this; planetInfo.SetColor(station.fleetColor); planetWindow.AddTab(station.DrawSummaryWindow, "WORKFORCE"); planetWindow.AddTab(station.DrawRecruitmentWindow, "RECRUIT"); planetWindow.AddTab(station.DrawStructureWindow, "BUILD"); planetWindow.AddOverlay(station.DrawBuildQueue, new Rect(50, 300, 700, 200)); }
public AIObjectiveBuildSquadron(CampaignSquadron squadron, CampaignStation stationToBuildAt) { squadronToBuild = squadron; station = stationToBuildAt; }
public List<CampaignSquadron> GetSquadrons(CampaignStation station) { List<CampaignSquadron> squadronsToReturn = new List<CampaignSquadron>(); return squadronsToReturn; }
public AIObjectiveBuildFleet(CampaignStation station) { this.station = station; shipConfigurationManager = GameObject.Find("ShipConfigurationManager").GetComponent<ShipConfigurationManager>(); }