feature(BuildCalc) Adding WIP wait button, and better styling

This commit is contained in:
2022-04-15 04:04:58 -04:00
parent 04c1718259
commit a0cd7d9b45
13 changed files with 192 additions and 87 deletions
+21 -6
View File
@@ -2,7 +2,8 @@
public class TimingService : ITimingService
{
private int _timing = 1500;
private int attackTime = 1500;
private int travelTime = 30;
public void Subscribe(Action? action)
{
@@ -14,16 +15,30 @@ public class TimingService : ITimingService
OnChange -= action;
}
public int GetTiming()
public int GetAttackTime()
{
return _timing;
return attackTime;
}
public void SetTiming(int timing)
public void SetAttackTime(int timing)
{
if (_timing != timing)
if (attackTime != timing)
{
_timing = timing;
attackTime = timing;
NotifyDataChanged();
}
}
public int GetTravelTime()
{
return travelTime;
}
public void SetTravelTime(int timing)
{
if (travelTime != timing)
{
travelTime = timing;
NotifyDataChanged();
}
}