add ISync to all traits that have [Sync] members
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user