Renamed SyncAttribute to VerifySyncAttribute

This commit is contained in:
Pavel Penev
2023-12-05 15:06:48 +02:00
committed by Gustas Kažukauskas
parent ec75dcd9e9
commit d4fd66adf9
66 changed files with 117 additions and 114 deletions

View File

@@ -82,25 +82,25 @@ namespace OpenRA.Mods.Common.Traits
readonly DeveloperModeInfo info;
public bool Enabled { get; private set; }
[Sync]
[VerifySync]
bool fastCharge;
[Sync]
[VerifySync]
bool allTech;
[Sync]
[VerifySync]
bool fastBuild;
[Sync]
[VerifySync]
bool disableShroud;
[Sync]
[VerifySync]
bool pathDebug;
[Sync]
[VerifySync]
bool unlimitedPower;
[Sync]
[VerifySync]
bool buildAnywhere;
public bool FastCharge => Enabled && fastCharge;

View File

@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Common.Traits
Player[] enemies;
Player[] allies;
[Sync]
[VerifySync]
public int ObjectivesHash
{
get

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Traits
public class PlayerExperience : ISync
{
[Sync]
[VerifySync]
public int Experience { get; private set; }
public void GiveExperience(int num)

View File

@@ -95,13 +95,13 @@ namespace OpenRA.Mods.Common.Traits
lastNotificationTime = -Info.InsufficientFundsNotificationInterval;
}
[Sync]
[VerifySync]
public int Cash;
[Sync]
[VerifySync]
public int Resources;
[Sync]
[VerifySync]
public int ResourceCapacity;
public int Earned;

View File

@@ -153,12 +153,12 @@ namespace OpenRA.Mods.Common.Traits
public Actor Actor { get; }
[Sync]
[VerifySync]
public bool Enabled { get; protected set; }
public string Faction { get; private set; }
[Sync]
[VerifySync]
public bool IsValidFaction { get; private set; }
public ProductionQueue(ActorInitializer init, ProductionQueueInfo info)

View File

@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Common.Traits
readonly StrategicVictoryConditionsInfo info;
[Sync]
[VerifySync]
public int TicksLeft;
readonly Player player;