Add GrantConditionOnLineBuildDirection trait.

This commit is contained in:
Paul Chote
2017-03-27 18:20:58 +01:00
parent f8af51643d
commit a83c0f96dd
4 changed files with 62 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ namespace OpenRA.Mods.Common.Traits
new LocationInit(t.First),
new OwnerInit(order.Player),
new FactionInit(faction),
new LineBuildDirectionInit(t.First.X == order.TargetLocation.X ? LineBuildDirection.Y : LineBuildDirection.X),
new LineBuildParentInit(new[] { t.Second, placed })
});
}