private StaticBuilding AddBuildingPrerequisites(StaticBuilding building, string upgradesFrom, string upgradesTo, string buildingChain)
        {
            building.UpgradesFrom = upgradesFrom;
            building.UpgradesTo = upgradesTo;
            building.BuildingChain = buildingChain;
            //building.Prerequisites = prerequisites.ToList();

            return building;
        }
 public StaticBuilding(StaticBuilding building)
 {
     Name = building.Name;
     TagName = building.TagName;
     DataType = building.DataType;
     BuildingType = building.BuildingType;
     Prerequisites = building.Prerequisites;
     Modifiers = building.Modifiers;
     UpgradesFrom = building.UpgradesFrom;
     UpgradesTo = building.UpgradesTo;
     DefaultGoldCost = building.DefaultGoldCost;
     DefaultMaintenance = building.DefaultMaintenance;
     DefaultBuildTime = building.DefaultBuildTime;
     BuildingChain = building.BuildingChain;
 }
        private StaticBuilding AddBuilding(string name, string tagName, StaticBuildingType buildingType, RequiredEnum requiredEnum, float goldCost, float maintance, int buildTime)
        {
            StaticBuilding building = new StaticBuilding();
            building.Name = name;
            building.TagName = tagName;
            building.DataType = DataType.Building;
            building.BuildingType = buildingType;
            building.RequiredEnum = requiredEnum;

            building.DefaultGoldCost = goldCost;
            building.DefaultMaintenance = maintance;
            building.DefaultBuildTime = buildTime;

            return building;
        }
Exemple #4
0
 public StaticBuilding(StaticBuilding building)
 {
     Name               = building.Name;
     TagName            = building.TagName;
     DataType           = building.DataType;
     BuildingType       = building.BuildingType;
     Prerequisites      = building.Prerequisites;
     Modifiers          = building.Modifiers;
     UpgradesFrom       = building.UpgradesFrom;
     UpgradesTo         = building.UpgradesTo;
     DefaultGoldCost    = building.DefaultGoldCost;
     DefaultMaintenance = building.DefaultMaintenance;
     DefaultBuildTime   = building.DefaultBuildTime;
     BuildingChain      = building.BuildingChain;
 }