Stopped syncing IsTraitPaused/Disabled

A discussion on Discord (https://discord.com/channels/153649279762694144/388282819371204608/1181890238759587881) decided we don't need to sync these.
This commit is contained in:
Pavel Penev
2023-12-06 14:06:51 +02:00
committed by Gustas Kažukauskas
parent 06e3e013be
commit 70624fa44f
3 changed files with 2 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits
/// Requires basing *Info on ConditionalTraitInfo and using base(info) constructor.
/// TraitEnabled will be called at creation if the trait starts enabled or does not use conditions.
/// </summary>
public abstract class ConditionalTrait<InfoType> : IObservesVariables, IDisabledTrait, INotifyCreated, ISync where InfoType : ConditionalTraitInfo
public abstract class ConditionalTrait<InfoType> : IObservesVariables, IDisabledTrait, INotifyCreated where InfoType : ConditionalTraitInfo
{
public readonly InfoType Info;
@@ -49,7 +49,6 @@ namespace OpenRA.Mods.Common.Traits
yield return new VariableObserver(RequiredConditionsChanged, Info.RequiresCondition.Variables);
}
[Sync]
public bool IsTraitDisabled { get; private set; }
protected ConditionalTrait(InfoType info)

View File

@@ -38,7 +38,6 @@ namespace OpenRA.Mods.Common.Traits
/// </summary>
public abstract class PausableConditionalTrait<InfoType> : ConditionalTrait<InfoType> where InfoType : PausableConditionalTraitInfo
{
[Sync]
public bool IsTraitPaused { get; private set; }
protected PausableConditionalTrait(InfoType info)

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Traits
public override object Create(ActorInitializer init) { return new DamagedByTerrain(this); }
}
public class DamagedByTerrain : ConditionalTrait<DamagedByTerrainInfo>, ITick, ISync
public class DamagedByTerrain : ConditionalTrait<DamagedByTerrainInfo>, ITick
{
int damageTicks;