/// <summary> /// Adds a Hotel / HouseViewModel back into the available pool. /// </summary> /// <param name="house"></param> public void AddHotelToPool(HouseViewModel hotel) { UnavailableHotels[hotel.GetUniqueHotelID()] = null; Hotels[hotel.GetUniqueHotelID()] = hotel; hotel.SetHouseInUse(false); hotel.SetBuiltStreet(null); UpdateAvailableHouses(); }
/// <summary> /// Adds a House / HouseViewModel back into the available pool. /// </summary> /// <param name="house"></param> public void AddHouseToPool(HouseViewModel house) { UnavailableHouses[house.GetUniqueID()] = null; Houses[house.GetUniqueID()] = house; house.SetHouseInUse(false); house.SetBuiltStreet(null); UpdateAvailableHouses(); }