UI/Components/InfoPanels/RideInfoPanel.cs
namespace HC3;
public class RideInfoPanel : BaseInfoPanel
{
protected override string Count
{
get
{
int peopleInRides = 0;
var allBuildings = Scene.GetAllComponents<Building>();
foreach ( var building in allBuildings )
{
peopleInRides += building.GetTotalOccupiedSlots();
}
return peopleInRides.ToString();
}
}
// TODO: These values should be evaluated from the buildings after each ride and then totalled here..?
protected override string Rating => "0";
protected override string Happiness => "0";
protected override float HappinessEvaluator => 0;
}