/// <summary> /// Add a component to the build queue. /// </summary> /// <param name="ComponentDef">Component to add.</param> /// <param name="BuildAmt">number of components to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddComponent(ComponentDefTN ComponentDef, float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(ComponentDef); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true, ComponentDef.cost); ConstructionBuildQueue.Add(NewCBQItem); }
/// <summary> /// Add MSP to the build queue. /// </summary> /// <param name="BuildAmt">number of MSP to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddMSP(float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true, Constants.Colony.MaintenanceSupplyCost); ConstructionBuildQueue.Add(NewCBQItem); }
/// <summary> /// Add an installation to the build queue. /// </summary> /// <param name="Install">Installation to add.</param> /// <param name="BuildAmt">number of such installations to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddInstallation(Installation Install, float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(Install); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true, Install.Cost); ConstructionBuildQueue.Add(NewCBQItem); }
/// <summary> /// Add MSP to the build queue. /// </summary> /// <param name="BuildAmt">number of MSP to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddMSP(float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true); ConstructionBuildQueue.Add(NewCBQItem); }
/// <summary> /// Add a component to the build queue. /// </summary> /// <param name="ComponentDef">Component to add.</param> /// <param name="BuildAmt">number of components to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddComponent(ComponentDefTN ComponentDef, float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(ComponentDef); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true,ComponentDef.cost); ConstructionBuildQueue.Add(NewCBQItem); }
/// <summary> /// Add an installation to the build queue. /// </summary> /// <param name="Install">Installation to add.</param> /// <param name="BuildAmt">number of such installations to construct.</param> /// <param name="RequestedBuildPercentage">Percent of construction factories, conventional industry, engineering teams to devote to construction.</param> public void BuildQueueAddInstallation(Installation Install, float BuildAmt, float RequestedBuildPercentage) { ConstructionBuildQueueItem NewCBQItem = new ConstructionBuildQueueItem(Install); NewCBQItem.UpdateBuildQueueInfo(BuildAmt, RequestedBuildPercentage, true,Install.Cost); ConstructionBuildQueue.Add(NewCBQItem); }