split SimpleTeleport into it's own file

This commit is contained in:
Matthias Mailänder
2014-11-30 18:39:05 +01:00
parent 8f076131c8
commit 253dfcac29
3 changed files with 29 additions and 14 deletions

View File

@@ -117,18 +117,4 @@ namespace OpenRA.Mods.RA.Activities
return null;
}
}
public class SimpleTeleport : Activity
{
CPos destination;
public SimpleTeleport(CPos destination) { this.destination = destination; }
public override Activity Tick(Actor self)
{
self.Trait<IPositionable>().SetPosition(self, destination);
self.Generation++;
return NextActivity;
}
}
}