/// <summary> /// Maintenance supplies build queue constructor /// </summary> public ConstructionBuildQueueItem() { Name = "Maintenance Supplies"; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = 0.25m; m_BuildType = CBType.MaintenanceSupplies; }
/// <summary> /// Constructor for ship components. /// </summary> /// <param name="ComponentToBuild">Ship Component to build</param> public ConstructionBuildQueueItem(ComponentDefTN ComponentToBuild) { Name = ComponentToBuild.Name; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = ComponentToBuild.cost; m_BuildType = CBType.ShipComponent; m_ComponentBuild = ComponentToBuild; }
/// <summary> /// Constructor for Installations. /// </summary> /// <param name="InstallationToBuild">Installation to build</param> public ConstructionBuildQueueItem(Installation InstallationToBuild) { Name = InstallationToBuild.Name; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = InstallationToBuild.Cost; m_BuildType = CBType.PlanetaryInstallation; m_InstallationBuild = InstallationToBuild; }
// 결과 callback string에서 CBType string을 제외한 다음 문자열을 돌려준다. private string findStringAfterCBType(string data, CBType type) { int length = preDefinedStrings [type].Length; if (data.Substring(0, length).Equals(preDefinedStrings [type])) { return(data.Substring(length)); } else { return(""); } }
/// <summary> /// Maintenance supplies build queue constructor /// </summary> public ConstructionBuildQueueItem() : base() { Name = "Maintenance Supplies"; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = 0.25m; m_BuildType = CBType.MaintenanceSupplies; }
/// <summary> /// Constructor for ship components. /// </summary> /// <param name="ComponentToBuild">Ship Component to build</param> public ConstructionBuildQueueItem(ComponentDefTN ComponentToBuild) : base() { Name = ComponentToBuild.Name; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = ComponentToBuild.cost; m_BuildType = CBType.ShipComponent; m_ComponentBuild = ComponentToBuild; }
/// <summary> /// Constructor for Installations. /// </summary> /// <param name="InstallationToBuild">Installation to build</param> public ConstructionBuildQueueItem(Installation InstallationToBuild) : base() { Name = InstallationToBuild.Name; numToBuild = 0.0f; buildCapacity = 0.0f; productionRate = 0.0f; costPerItem = InstallationToBuild.Cost; m_BuildType = CBType.PlanetaryInstallation; m_InstallationBuild = InstallationToBuild; }
/// <summary> /// Maintenance supplies build queue constructor /// </summary> public ConstructionBuildQueueItem() { m_BuildType = CBType.MaintenanceSupplies; }
/// <summary> /// Constructor for ship components. /// </summary> /// <param name="ComponentToBuild">Ship Component to build</param> public ConstructionBuildQueueItem(ComponentDefTN ComponentToBuild) { m_BuildType = CBType.ShipComponent; m_ComponentBuild = ComponentToBuild; }
/// <summary> /// Constructor for Installations. /// </summary> /// <param name="InstallationToBuild">Installation to build</param> public ConstructionBuildQueueItem(Installation InstallationToBuild) { m_BuildType = CBType.PlanetaryInstallation; m_InstallationBuild = InstallationToBuild; }