public District(DistrictTypes type, Byte id, LanguageCodes langCode = LanguageCodes.EN) { _type = type; _lang = langCode; Type = (Byte)((Byte)type + (Byte)langCode); Id = id; }
public District(DistrictTypes type, byte id, LanguageCodes langCode = LanguageCodes.EN) { _type = type; _lang = langCode; Type = (byte)((byte)type + (byte)langCode); Id = id; }
} //To replace with dictionary of modifiers //Constructor public District(DistrictTypes typeIn, MapTile initialTile, String nameIn = "") { MyMapTiles = new List <MapTile>(); MyMapTiles.Add(initialTile); initialTile.setOwningDistrict(this); NeighbourTiles = new List <MapTile>(); NeighbourTiles.AddRange(GameMap.ThisGameMap.getNeighbours(initialTile)); NeighbourTiles.RemoveAll(item => item.occupied == true); DistrictType = typeIn; DistrictName = nameIn; if ((int)typeIn == 0 || (int)typeIn == 1) { DistrictPopulation = new Population(); } DistrictBuildings = new List <Building>(); PeopleConsumpMod = 1; PeopleProdMod = 1; BuildingConsumpMod = 1; BuildingProdMod = 1; peopleLastConsumed = new Dictionary <GoodType, float>(); peopleLastProduced = new Dictionary <GoodType, float>(); buildingLastConsumed = new Dictionary <GoodType, float>(); buildingLastProduced = new Dictionary <GoodType, float>(); }
public District(DistrictTypes type, byte id) { _type = type; Type = (byte)type; Id = id; }