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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user