rename GpsSatellite trait to GpsLaunchSite

This commit is contained in:
Chris Forbes
2010-01-08 22:28:27 +13:00
parent 54c28ab74d
commit 2ea729759c
7 changed files with 12 additions and 21 deletions

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenRa.Game.GameRules
{
public class SupportPowerInfo

View File

@@ -223,7 +223,7 @@
<Compile Include="Traits\Explodes.cs" />
<Compile Include="Traits\ChronoshiftDeploy.cs" />
<Compile Include="Traits\Fake.cs" />
<Compile Include="Traits\GpsSatellite.cs" />
<Compile Include="Traits\GpsLaunchSite.cs" />
<Compile Include="Traits\Harvester.cs" />
<Compile Include="Traits\Helicopter.cs" />
<Compile Include="Traits\InvisibleToOthers.cs" />

View File

@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.Game.SupportPowers;
namespace OpenRa.Game

View File

@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq;
using OpenRa.Game.Effects;
using OpenRa.Game.Traits;
namespace OpenRa.Game.SupportPowers
{
@@ -13,7 +11,7 @@ namespace OpenRa.Game.SupportPowers
public void Activate(SupportPower p)
{
var launchSite = Game.world.Actors
.FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains<Traits.GpsSatellite>() );
.FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains<GpsLaunchSite>() );
if (launchSite == null)
return;

View File

@@ -0,0 +1,6 @@
using OpenRa.Game.Effects;
namespace OpenRa.Game.Traits
{
class GpsLaunchSite { public GpsLaunchSite(Actor self) { } }
}

View File

@@ -1,6 +0,0 @@
using OpenRa.Game.Effects;
namespace OpenRa.Game.Traits
{
class GpsSatellite { public GpsSatellite(Actor self) { } }
}

View File

@@ -348,7 +348,7 @@ MINV
; `Produces` is a category of objects that this building can produce.
[ATEK]
Description=Allied Tech Center
Traits=Building, RenderBuilding, IronCurtainable, GpsSatellite
Traits=Building, RenderBuilding, IronCurtainable, GpsLaunchSite
Dimensions=2,2
Footprint=xx xx
SelectionPriority=3