Refactor McvDeploy into a generic 'transform into another actor' trait

This commit is contained in:
Paul Chote
2010-02-06 01:06:38 +13:00
parent a08e062d96
commit 5b702b76cf
9 changed files with 142 additions and 75 deletions

View File

@@ -26,6 +26,8 @@ namespace OpenRa.Traits
Sound.PlayToPlayer(order.Player, "placbldg.aud");
Sound.PlayToPlayer(order.Player, "build5.aud");
// TODO: Prioritise the primary conyard if it exists
var fact = self.World.Queries
.OwnedBy[self.Owner]
.WithTrait<ConstructionYard>()