r2mods/ilspy_dump/ror2_csproj/RoR2.UI/MoonBatteryMissionObjective...

19 lines
709 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace RoR2.UI;
public class MoonBatteryMissionObjectiveTracker : ObjectivePanelController.ObjectiveTracker
{
private int numChargedBatteries = -1;
protected override string GenerateString()
{
MoonBatteryMissionController moonBatteryMissionController = (MoonBatteryMissionController)sourceDescriptor.source;
numChargedBatteries = moonBatteryMissionController.numChargedBatteries;
return string.Format(Language.GetString(moonBatteryMissionController.objectiveToken), numChargedBatteries, moonBatteryMissionController.numRequiredBatteries);
}
protected override bool IsDirty()
{
return ((MoonBatteryMissionController)sourceDescriptor.source).numChargedBatteries != numChargedBatteries;
}
}