diff --git a/OpenRA.Mods.RA/Attack/AttackBase.cs b/OpenRA.Mods.RA/Attack/AttackBase.cs index 7d5146a5c2..1fa60073e8 100644 --- a/OpenRA.Mods.RA/Attack/AttackBase.cs +++ b/OpenRA.Mods.RA/Attack/AttackBase.cs @@ -50,9 +50,9 @@ namespace OpenRA.Mods.RA } } - public abstract class AttackBase : IIssueOrder, IResolveOrder, ITick, IExplodeModifier, IOrderVoice + public abstract class AttackBase : IIssueOrder, IResolveOrder, ITick, IExplodeModifier, IOrderVoice, ISync { - public bool IsAttacking { get; internal set; } + [Sync] public bool IsAttacking { get; internal set; } public List Weapons = new List(); public List Turrets = new List(); diff --git a/OpenRA.Mods.RA/Attack/AttackLeap.cs b/OpenRA.Mods.RA/Attack/AttackLeap.cs index e197c94542..c5c86db63a 100644 --- a/OpenRA.Mods.RA/Attack/AttackLeap.cs +++ b/OpenRA.Mods.RA/Attack/AttackLeap.cs @@ -19,9 +19,9 @@ namespace OpenRA.Mods.RA public override object Create(ActorInitializer init) { return new AttackLeap(init.self, this); } } - class AttackLeap : AttackFrontal + class AttackLeap : AttackFrontal, ISync { - internal bool IsLeaping; + [Sync] internal bool IsLeaping; public AttackLeap(Actor self, AttackLeapInfo info) : base(self, info) {} diff --git a/OpenRA.Mods.RA/Attack/AttackOmni.cs b/OpenRA.Mods.RA/Attack/AttackOmni.cs index ef099a4fcb..07a06a7d64 100644 --- a/OpenRA.Mods.RA/Attack/AttackOmni.cs +++ b/OpenRA.Mods.RA/Attack/AttackOmni.cs @@ -18,9 +18,9 @@ namespace OpenRA.Mods.RA public override object Create(ActorInitializer init) { return new AttackOmni(init.self); } } - class AttackOmni : AttackBase, INotifyBuildComplete + class AttackOmni : AttackBase, INotifyBuildComplete, ISync { - bool buildComplete = false; + [Sync] bool buildComplete = false; public void BuildingComplete(Actor self) { buildComplete = true; } public AttackOmni(Actor self) : base(self) { } diff --git a/OpenRA.Mods.RA/Attack/AttackTesla.cs b/OpenRA.Mods.RA/Attack/AttackTesla.cs index b0978e4d06..1bf5eae1bb 100644 --- a/OpenRA.Mods.RA/Attack/AttackTesla.cs +++ b/OpenRA.Mods.RA/Attack/AttackTesla.cs @@ -21,10 +21,10 @@ namespace OpenRA.Mods.RA public override object Create(ActorInitializer init) { return new AttackTesla(init.self); } } - class AttackTesla : AttackOmni, ITick, INotifyAttack + class AttackTesla : AttackOmni, ITick, INotifyAttack, ISync { - int charges; - int timeToRecharge; + [Sync] int charges; + [Sync] int timeToRecharge; public AttackTesla( Actor self ) : base( self ) diff --git a/OpenRA.Mods.RA/Attack/AttackTurreted.cs b/OpenRA.Mods.RA/Attack/AttackTurreted.cs index 76b98fad87..3a16af2d93 100644 --- a/OpenRA.Mods.RA/Attack/AttackTurreted.cs +++ b/OpenRA.Mods.RA/Attack/AttackTurreted.cs @@ -22,11 +22,11 @@ namespace OpenRA.Mods.RA public override object Create(ActorInitializer init) { return new AttackTurreted( init.self ); } } - class AttackTurreted : AttackBase, INotifyBuildComplete + class AttackTurreted : AttackBase, INotifyBuildComplete, ISync { protected Target target; protected Turreted turret; - protected bool buildComplete; + [Sync] protected bool buildComplete; public AttackTurreted(Actor self) : base(self) {