feat(Search) Search hotkey now working. CMD + K
This commit is contained in:
@@ -13,14 +13,15 @@ namespace Services.Immortal;
|
||||
public class BuildOrderService : IBuildOrderService
|
||||
{
|
||||
private BuildOrderModel buildOrder = new();
|
||||
public int BuildingInputDelay { get; set; } = 2;
|
||||
private int lastInterval = 0;
|
||||
private int lastInterval;
|
||||
|
||||
public BuildOrderService()
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
public int BuildingInputDelay { get; set; } = 2;
|
||||
|
||||
public Dictionary<int, List<EntityModel>> StartedOrders => buildOrder.StartedOrders;
|
||||
public Dictionary<int, List<EntityModel>> CompletedOrders => buildOrder.CompletedOrders;
|
||||
public Dictionary<string, int> UniqueCompletedTimes => buildOrder.UniqueCompletedTimes;
|
||||
@@ -254,7 +255,7 @@ public class BuildOrderService : IBuildOrderService
|
||||
public void Reset()
|
||||
{
|
||||
lastInterval = 0;
|
||||
|
||||
|
||||
buildOrder = new BuildOrderModel
|
||||
{
|
||||
StartedOrders = new Dictionary<int, List<EntityModel>>
|
||||
@@ -304,7 +305,7 @@ public class BuildOrderService : IBuildOrderService
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
NotifyDataChanged();
|
||||
}
|
||||
|
||||
@@ -326,7 +327,7 @@ public class BuildOrderService : IBuildOrderService
|
||||
atInterval = interval;
|
||||
|
||||
if (entity.EntityType != EntityType.Army) atInterval += BuildingInputDelay;
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using Model.Economy;
|
||||
using Model.Entity;
|
||||
using Model.Feedback;
|
||||
using Model.Types;
|
||||
using Services.Website;
|
||||
|
||||
namespace Services.Immortal;
|
||||
|
||||
@@ -159,11 +157,8 @@ public class EconomyService : IEconomyService
|
||||
|
||||
public EconomyModel GetEconomy(int atInterval)
|
||||
{
|
||||
if (atInterval >= economyOverTime.Count)
|
||||
{
|
||||
return economyOverTime.Last();
|
||||
}
|
||||
|
||||
if (atInterval >= economyOverTime.Count) return economyOverTime.Last();
|
||||
|
||||
return economyOverTime[atInterval];
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public class TimingService : ITimingService
|
||||
NotifyDataChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int GetTravelTime()
|
||||
{
|
||||
return travelTime;
|
||||
|
||||
Reference in New Issue
Block a user