Merge pull request #2737 from Mailaender/shroud-sync

add Shroud, CreatesShroud and RevealsShroud to syncreport.log
This commit is contained in:
Chris Forbes
2013-03-09 21:09:31 -08:00
8 changed files with 25 additions and 31 deletions

View File

@@ -102,12 +102,9 @@ namespace OpenRA.Mods.RA.Air
protected readonly Actor self;
[Sync]
public int Facing { get; set; }
[Sync]
public int Altitude { get; set; }
[Sync]
public PSubPos SubPxPosition;
[Sync] public int Facing { get; set; }
[Sync] public int Altitude { get; set; }
[Sync] public PSubPos SubPxPosition;
public PPos PxPosition { get { return SubPxPosition.ToPPos(); } }
public CPos TopLeft { get { return PxPosition.ToCPos(); } }

View File

@@ -25,13 +25,14 @@ namespace OpenRA.Mods.RA
public enum UnitStance { HoldFire, ReturnFire, Defend, AttackAnything };
public class AutoTarget : INotifyIdle, INotifyDamage, ITick, IResolveOrder
public class AutoTarget : INotifyIdle, INotifyDamage, ITick, IResolveOrder, ISync
{
readonly AutoTargetInfo Info;
readonly AttackBase attack;
[Sync] int nextScanTime = 0;
[Sync] public UnitStance stance;
public UnitStance stance;
[Sync] public int stanceNumber { get { return (int)stance; } }
public UnitStance predictedStance; /* NOT SYNCED: do not refer to this anywhere other than UI code */
public AutoTarget(Actor self, AutoTargetInfo info)

View File

@@ -22,13 +22,13 @@ namespace OpenRA.Mods.RA
public object Create(ActorInitializer init) { return new ScaredyCat(init.self, this); }
}
class ScaredyCat : ITick, INotifyIdle, INotifyDamage, INotifyAttack, ISpeedModifier
class ScaredyCat : ITick, INotifyIdle, INotifyDamage, INotifyAttack, ISpeedModifier, ISync
{
readonly ScaredyCatInfo Info;
readonly Actor Self;
[Sync] readonly Actor Self;
public int PanicStartedTick;
public bool Panicking { get { return PanicStartedTick > 0; } }
[Sync] public int PanicStartedTick;
[Sync] public bool Panicking { get { return PanicStartedTick > 0; } }
public ScaredyCat(Actor self, ScaredyCatInfo info)
{