Exemplo n.º 1
0
        public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel)
        {
            for (int i = 0; i < this.m_buildingBoostCost.Size(); i++)
            {
                LogicDataSlot slot = this.m_buildingBoostCost[i];

                if (slot.GetData() == data)
                {
                    return(slot.GetCount());
                }
            }

            return(data.GetBoostCost(upgLevel));
        }
Exemplo n.º 2
0
        public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel)
        {
            int buildingBoostCost = data.GetBoostCost(upgLevel);

            for (int i = this.m_activeCalendarEvents.Size() - 1; i >= 0; i--)
            {
                int cost = this.m_activeCalendarEvents[i].GetBuildingBoostCost(data, upgLevel);

                if (cost <= buildingBoostCost)
                {
                    buildingBoostCost = cost;
                }
            }

            return(buildingBoostCost);
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Gets the building boost cost.
 /// </summary>
 public int GetBuildingBoostCost(LogicBuildingData data, int upgLevel)
 {
     return(data.GetBoostCost(upgLevel)); // TODO: Implement this.
 }