Пример #1
0
        public void AddSettlement(string name, Point2 location, RaceType raceType)
        {
            Settlement settlement = Settlement.CreateNew(name, raceType, location);

            _settlements.Add(settlement);
        }
Пример #2
0
        public static Settlement CreateNew(string name, RaceType raceType, Point2 location)
        {
            var settlement = new Settlement(name, raceType, location, 1);

            return(settlement);
        }
Пример #3
0
 public SettlementBuildings(Settlement settlement)
 {
     _settlement   = settlement;
     _allBuildings = Globals.Instance.BuildingTypes;
 }