Rename LegacyCapture related traits to Capture

This commit is contained in:
Curtis Shmyr
2013-10-27 17:01:01 -06:00
parent c1e5be380e
commit 2229bbf985
9 changed files with 37 additions and 37 deletions

View File

@@ -15,11 +15,11 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA.Activities
{
class LegacyCaptureActor : Activity
class CaptureActor : Activity
{
Target target;
public LegacyCaptureActor(Target target) { this.target = target; }
public CaptureActor(Target target) { this.target = target; }
public override Activity Tick(Actor self)
{
@@ -34,8 +34,8 @@ namespace OpenRA.Mods.RA.Activities
if (b != null && b.Locked)
return NextActivity;
var capturesInfo = self.Info.Traits.Get<LegacyCapturesInfo>();
var capturableInfo = actor.Info.Traits.Get<LegacyCapturableInfo>();
var capturesInfo = self.Info.Traits.Get<CapturesInfo>();
var capturableInfo = actor.Info.Traits.Get<CapturableInfo>();
var health = actor.Trait<Health>();