add ISync to all traits that have [Sync] members

This commit is contained in:
Chris Forbes
2011-01-26 10:02:24 +13:00
committed by Paul Chote
parent b7ea695f0c
commit f52620f6fc
41 changed files with 56 additions and 54 deletions

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.RA.Buildings
}
}
public class Building : INotifyDamage, IResolveOrder, IOccupySpace, INotifyCapture
public class Building : INotifyDamage, IResolveOrder, IOccupySpace, INotifyCapture, ISync
{
readonly Actor self;
public readonly BuildingInfo Info;

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.RA.Buildings
public object Create(ActorInitializer init) { return new CanPowerDown(init); }
}
public class CanPowerDown : IResolveOrder, IDisable
public class CanPowerDown : IResolveOrder, IDisable, ISync
{
[Sync]
bool disabled = false;

View File

@@ -17,9 +17,9 @@ namespace OpenRA.Mods.RA.Buildings
{
public readonly int AdviceInterval = 250;
public object Create(ActorInitializer init) { return new PowerManager(init, this); }
}
public class PowerManager : ITick
}
public class PowerManager : ITick, ISync
{
PowerManagerInfo Info;
Player Player;

View File

@@ -20,9 +20,9 @@ namespace OpenRA.Mods.RA.Buildings
public readonly float RepairRate = 0.016f;
public readonly int RepairStep = 7;
public object Create(ActorInitializer init) { return new RepairableBuilding(init.self, this); }
}
public class RepairableBuilding : ITick, IResolveOrder
}
public class RepairableBuilding : ITick, IResolveOrder, ISync
{
[Sync]
bool isRepairing = false;