示例#1
0
    /////////////////////
    // 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);
示例#2
0
 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);
示例#3
0
 public static float GetLeisureSatisfactionValue(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
 => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction.Value;
示例#4
0
 public static Index.STATE GetLeisureSatisfactionIndex(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
 => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction.GetIndexState();
示例#5
0
 public static Leisure.AVAILABILITY GetLeisureAvailabilityState(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
 => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].GetAvailability();
示例#6
0
 public static int GetLeisureRequiredTime(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
 => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Schedule.RequieredTime;
示例#7
0
 public static int GetLeisureScheduledClosing(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
 => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Schedule.Closing;
示例#8
0
    /////////////////////
    // Leisure Getters //
    /////////////////////

    public static int GetLeisureCost(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace)
    => City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Cost;
示例#9
0
 public LeisurePlan(Leisure.PLACE place, int enter, int timeExpended, float satisfaction, int cost)
 {
     Place = place; Enter = enter; TimeExpended = timeExpended; Satisfaction = satisfaction; Cost = cost;
 }