tidy up some bizarre namespacing

This commit is contained in:
Chris Forbes
2011-11-04 20:10:28 +13:00
parent cbee1513f3
commit cd155b21c9
10 changed files with 28 additions and 33 deletions

View File

@@ -19,16 +19,17 @@ namespace OpenRA.Mods.RA.Buildings
public readonly int RepairPercent = 20;
public readonly int RepairInterval = 24;
public readonly int RepairStep = 7;
public object Create(ActorInitializer init) { return new RepairableBuilding(init.self, this); }
}
public class RepairableBuilding : ITick, ISync
{
[Sync]
public Player Repairer = null;
[Sync] public Player Repairer = null;
Health Health;
RepairableBuildingInfo Info;
public RepairableBuilding(Actor self, RepairableBuildingInfo info)
{
Health = self.Trait<Health>();
@@ -57,6 +58,7 @@ namespace OpenRA.Mods.RA.Buildings
}
int remainingTicks;
public void Tick(Actor self)
{
if (Repairer == null) return;