public GameMaster(World world) { this.World = world; pendingResources = new Dictionary <string, float>(); GlobalInventory = new Inventory(-1); pendingResources = new Dictionary <string, float>(); cities = new List <City>(); globalModifiers = new ResourceModifiers(); }
public District(string tier, int buildingSlots, Dictionary <string, int> baseCost, string[] InvalidTiles, string name = null) : base(tier, baseCost) { ResourceMods = new ResourceModifiers(); Buildings = new List <Building>(); invalidTiles = new HashSet <string>(); foreach (string s in InvalidTiles) { invalidTiles.Add(s); } Name = name; BuildingSlots = buildingSlots; }
public City(string name, Vector3Int position) { Name = name; this.Position = position; //TODO: TEMPORARY POPULATION IMPLEMENTATION, REMOVE population = 150; idlePop = population; workingPop = 0; popGrowthRate = 0.01f; ResourceMods = new ResourceModifiers(); construction = new CityConstruction(this); nextTurnEffects = new List <CityNextTurnEffect>(); Districts = new List <District>() { new District("city center", 5, new Dictionary <string, int>(), new string[0], "Test City Center") }; }