public static HouseData GetHouseData(House house) { var houseData = new HouseData(); houseData.SetRentItems(house.SlumLord.GetRentItems()); houseData.SetPaidItems(house.SlumLord); return(houseData); }
/// <summary> /// Returns the HouseData structure for a House (rent and paid items) /// </summary> private static HouseData GetHouseData(House house) { var houseData = new HouseData(); houseData.SetRentItems(house.SlumLord.GetRentItems()); houseData.SetPaidItems(house.SlumLord); if (house.HouseStatus == HouseStatus.InActive) { houseData.MaintenanceFree = true; } return(houseData); }