Allow player to add a "priority unit" to production queue

* If production is ordered by `Ctrl + Left Click` the item is added to the top of the stack after the currently produced item
* Works with `Shift` for priority queueing of 5 items
* This modifier is not taken into account for `ParallelProductionQueue` as it doesn't make sense in that context
This commit is contained in:
Ivaylo Draganov
2018-11-03 17:51:19 +02:00
committed by abcdefg30
parent 81d53a4f1a
commit a7279415dc
4 changed files with 18 additions and 8 deletions

View File

@@ -231,9 +231,9 @@ namespace OpenRA
return new Order("Command", null, false) { IsImmediate = true, TargetString = text };
}
public static Order StartProduction(Actor subject, string item, int count)
public static Order StartProduction(Actor subject, string item, int count, bool queued = true)
{
return new Order("StartProduction", subject, false) { ExtraData = (uint)count, TargetString = item };
return new Order("StartProduction", subject, queued) { ExtraData = (uint)count, TargetString = item };
}
public static Order PauseProduction(Actor subject, string item, bool pause)