Refactored ProductionQueue to support different production styles.

This commit is contained in:
Andre Mohren
2018-09-28 22:54:18 +02:00
committed by abcdefg30
parent 6cd1919cca
commit 3bfcecd539
13 changed files with 98 additions and 82 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Traits
if (p.Trait.Produce(p.Actor, unit, type, inits))
{
FinishProduction();
EndProduction(Queue.FirstOrDefault(i => i.Done && i.Item == unit.Name));
return true;
}
}