Пример #1
0
 public House(HouseType houseType, 
     IPlayer builder,
     int x,
     int y,
     int width,
     int height,
     HouseState houseState = HouseState.Building)
 {
     this.houseType = houseType;
     this.houseState = houseState;
     this.builder = builder;
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
 }
Пример #2
0
        public bool RegisterHouseType(HouseType houseType)
        {
            if (houseTypes.ContainsKey(houseType.Name))
                return false;

            houseTypes.Add(houseType.Name, houseType);
            return true;
        }