///////////////////// // Leisure Changes // ///////////////////// public static void AddLeisureAvailabilityStateChange(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace, Leisure.AVAILABILITY newValue) => City.Changes.AddValueChange(City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].SetAvailability, newValue);
public static void AddLeisureSatisfactionIndexChange(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction, change);
public static float GetLeisureSatisfactionValue(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction.Value;
public static Index.STATE GetLeisureSatisfactionIndex(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction.GetIndexState();
public static Leisure.AVAILABILITY GetLeisureAvailabilityState(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].GetAvailability();
public static int GetLeisureRequiredTime(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Schedule.RequieredTime;
public static int GetLeisureScheduledClosing(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Schedule.Closing;
///////////////////// // Leisure Getters // ///////////////////// public static int GetLeisureCost(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace) => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Cost;
public LeisurePlan(Leisure.PLACE place, int enter, int timeExpended, float satisfaction, int cost) { Place = place; Enter = enter; TimeExpended = timeExpended; Satisfaction = satisfaction; Cost = cost; }