diff --git a/OpenRA.Mods.RA/Activities/SimpleTeleport.cs b/OpenRA.Mods.RA/Activities/SimpleTeleport.cs new file mode 100755 index 0000000000..d008532eaf --- /dev/null +++ b/OpenRA.Mods.RA/Activities/SimpleTeleport.cs @@ -0,0 +1,28 @@ +#region Copyright & License Information +/* + * Copyright 2007-2014 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see COPYING. + */ +#endregion + +using OpenRA.Traits; + +namespace OpenRA.Mods.RA.Activities +{ + public class SimpleTeleport : Activity + { + CPos destination; + + public SimpleTeleport(CPos destination) { this.destination = destination; } + + public override Activity Tick(Actor self) + { + self.Trait().SetPosition(self, destination); + self.Generation++; + return NextActivity; + } + } +} diff --git a/OpenRA.Mods.RA/Activities/Teleport.cs b/OpenRA.Mods.RA/Activities/Teleport.cs index ead701bf90..8db14a0f8d 100755 --- a/OpenRA.Mods.RA/Activities/Teleport.cs +++ b/OpenRA.Mods.RA/Activities/Teleport.cs @@ -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().SetPosition(self, destination); - self.Generation++; - return NextActivity; - } - } } diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 0b6a88e62b..1dcfc703c3 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -453,6 +453,7 @@ +