Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
        /// <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;
        }
Beispiel #4
0
    // 결과 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("");
        }
    }
Beispiel #5
0
        /// <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;
        }
Beispiel #6
0
        /// <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;
        }
Beispiel #7
0
        /// <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;
        }
Beispiel #8
0
 /// <summary>
 /// Maintenance supplies build queue constructor
 /// </summary>
 public ConstructionBuildQueueItem()
 {
     m_BuildType = CBType.MaintenanceSupplies;
 }
Beispiel #9
0
 /// <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;
 }
Beispiel #10
0
 /// <summary>
 /// Constructor for Installations.
 /// </summary>
 /// <param name="InstallationToBuild">Installation to build</param>
 public ConstructionBuildQueueItem(Installation InstallationToBuild)
 {
     m_BuildType         = CBType.PlanetaryInstallation;
     m_InstallationBuild = InstallationToBuild;
 }