Facing -> new trait ("Unit")

This commit is contained in:
Bob
2009-11-25 18:11:44 +13:00
parent 7ccb2aa9ee
commit 2aea110497
21 changed files with 120 additions and 87 deletions

View File

@@ -14,8 +14,9 @@ namespace OpenRa.Game.Traits
w =>
{ /* create the free harvester! */
var harvester = new Actor("harv", self.Location + new int2(1, 2), self.Owner);
var unit = harvester.traits.Get<Unit>();
var mobile = harvester.traits.Get<Mobile>();
mobile.facing = 64;
unit.Facing = 64;
mobile.QueueActivity(new Harvest());
w.Add(harvester);
});