cargo: added EnterTransport activity; made things mostly work. still very WIP.

This commit is contained in:
Chris Forbes
2010-01-05 15:25:12 +13:00
parent 026a33d2e2
commit 8c9fbb8d6b
7 changed files with 58 additions and 16 deletions

View File

@@ -34,8 +34,8 @@ namespace OpenRa.Game.Traits
if (order.OrderString == "EnterTransport")
{
self.CancelActivity();
self.QueueActivity(new Move(order.TargetActor, 0));
// todo: actually enter the transport
self.QueueActivity(new Move(order.TargetActor.Location, 1));
self.QueueActivity(new EnterTransport(self, order.TargetActor));
}
}
}