Esempio n. 1
0
        public override LogicDeliverableBundle Compensate(LogicLevel level)
        {
            LogicDeliverableBundle logicDeliverableBundle = new LogicDeliverableBundle();

            logicDeliverableBundle.AddResources(this.m_decoData.GetBuildResource(), this.m_decoData.GetBuildCost());
            return(logicDeliverableBundle);
        }
Esempio n. 2
0
        public override LogicDeliverableBundle Compensate(LogicLevel level)
        {
            LogicDeliverableBundle logicDeliverableBundle = new LogicDeliverableBundle();

            if (this.m_buildingData.IsWorkerBuilding())
            {
                logicDeliverableBundle.AddResources(this.m_buildingData.GetBuildResource(0), LogicDataTables.GetGlobals().GetWorkerCost(level));
            }
            else
            {
                for (int i = 0; i <= this.m_buildingLevel; i++)
                {
                    logicDeliverableBundle.AddResources(this.m_buildingData.GetBuildResource(i), this.m_buildingData.GetBuildCost(i, level));
                }
            }

            return(logicDeliverableBundle);
        }