IActivity no longer passed Mobiles around.

This commit is contained in:
Bob
2009-11-25 18:18:17 +13:00
parent 2aea110497
commit 5c3da9387b
9 changed files with 26 additions and 23 deletions

View File

@@ -21,9 +21,10 @@ namespace OpenRa.Game.Traits.Activities
static readonly int2 refineryDeliverOffset = new int2( 1, 2 );
public IActivity Tick( Actor self, Mobile mobile )
public IActivity Tick( Actor self )
{
var unit = self.traits.Get<Unit>();
var mobile = self.traits.Get<Mobile>();
if( isDone )
{
@@ -74,7 +75,7 @@ namespace OpenRa.Game.Traits.Activities
return null;
}
public void Cancel(Actor self, Mobile mobile)
public void Cancel(Actor self)
{
// TODO: allow canceling of deliver orders?
}