Exemple #1
0
        internal override void Process()
        {
            switch (this.Action)
            {
            case "npc_stars":
                this.ACTION_TYPE = 0;
                break;

            case "upgrade":
                this.ACTION_TYPE  = 1;
                this.buildingData = DataTables.GetBuildingByName(this.ActionData);
                break;

            case "victory_points":
                this.ACTION_TYPE = 2;
                break;
            }
        }
        internal override void Process()
        {
            this.gearUpBuildingData = DataTables.GetBuildingByName(this.GearUpBuilding);

            this.BuildingClassData           = DataTables.GetBuildingClassByName(this.BuildingClass);
            this.secondaryTargetingClassData = DataTables.GetBuildingClassByName(this.SecondaryTargetingClass);
            this.shopBuildingClassData       = DataTables.GetBuildingClassByName(this.ShopBuildingClass);
            this.BuildResourceData           = DataTables.GetResourceByName(this.BuildResource);
            this.ProducesResourceData        = DataTables.GetResourceByName(this.ProducesResource);

            if (this.BuildingClassData == null)
            {
                throw new Exception("Buildings.csv: Building Class does not exist.");
            }

            if (this.BuildResourceData == null)
            {
                throw new Exception("Buildings.csv: Build Resource is invalid!.");
            }
        }