put attack traits into the syncreport.log

This commit is contained in:
Matthias Mailänder
2013-03-19 12:31:33 +01:00
parent 78f961f653
commit c41ad3d600
5 changed files with 11 additions and 11 deletions

View File

@@ -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<Weapon> Weapons = new List<Weapon>();
public List<Turret> Turrets = new List<Turret>();

View File

@@ -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) {}

View File

@@ -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) { }

View File

@@ -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 )

View File

@@ -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)
{