Rename LowBridge to GroundLevelBridge.

This commit is contained in:
Paul Chote
2016-11-11 18:17:12 +00:00
parent 0bc087f7bd
commit f91307f4be
4 changed files with 10 additions and 12 deletions

View File

@@ -56,7 +56,7 @@
<ItemGroup>
<Compile Include="Activities\VoxelHarvesterDockSequence.cs" />
<Compile Include="SpriteLoaders\TmpTSLoader.cs" />
<Compile Include="Traits\Buildings\LowBridge.cs" />
<Compile Include="Traits\Buildings\GroundLevelBridge.cs" />
<Compile Include="Traits\Buildings\TiberianSunRefinery.cs" />
<Compile Include="Traits\Render\WithDockingOverlay.cs" />
<Compile Include="Traits\Render\WithPermanentInjury.cs" />

View File

@@ -10,27 +10,25 @@
#endregion
using System.Collections.Generic;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives;
using OpenRA.Traits;
namespace OpenRA.Mods.TS.Traits
{
[Desc("Bridge actor that can't be passed underneath.")]
class LowBridgeInfo : ITraitInfo, Requires<BuildingInfo>
class GroundLevelBridgeInfo : ITraitInfo, Requires<BuildingInfo>
{
public readonly string TerrainType = "Bridge";
public object Create(ActorInitializer init) { return new LowBridge(init.Self, this); }
public object Create(ActorInitializer init) { return new GroundLevelBridge(init.Self, this); }
}
class LowBridge : INotifyAddedToWorld, INotifyRemovedFromWorld
class GroundLevelBridge : INotifyAddedToWorld, INotifyRemovedFromWorld
{
readonly LowBridgeInfo info;
readonly GroundLevelBridgeInfo info;
readonly IEnumerable<CPos> cells;
public LowBridge(Actor self, LowBridgeInfo info)
public GroundLevelBridge(Actor self, GroundLevelBridgeInfo info)
{
this.info = info;

View File

@@ -8,7 +8,7 @@ LOBRDG_A_D:
Palette: terrainalpha
EditorOnlyTooltip:
Name: Dead Bridge
-LowBridge:
-GroundLevelBridge:
-AppearsOnRadar:
LOBRDG_B:
@@ -21,7 +21,7 @@ LOBRDG_B_D:
Palette: terrainalpha
EditorOnlyTooltip:
Name: Dead Bridge
-LowBridge:
-GroundLevelBridge:
-AppearsOnRadar:
LOBRDG_R_SE:

View File

@@ -922,14 +922,14 @@
Building:
Footprint: ___
Dimensions: 3, 1
LowBridge:
GroundLevelBridge:
^LowBridge_B:
Inherits: ^LowBridge
Building:
Footprint: _ _ _
Dimensions: 1, 3
LowBridge:
GroundLevelBridge:
^HealsOnTiberium:
DamagedByTerrain: