Expose UseDelay to ViewVars (#2609)

This commit is contained in:
Peter Wedder
2020-11-22 17:00:06 +02:00
committed by GitHub
parent 8a19052394
commit e97763afd2

View File

@@ -6,6 +6,7 @@ using Robust.Shared.GameObjects.Components.Timers;
using Robust.Shared.Interfaces.Timing;
using Robust.Shared.IoC;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
using Timer = Robust.Shared.Timers.Timer;
namespace Content.Server.GameObjects.Components.Timing
@@ -24,6 +25,7 @@ namespace Content.Server.GameObjects.Components.Timing
/// <summary>
/// The time, in seconds, between an object's use and when it can be used again
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float Delay { get => _delay; set => _delay = value; }
public bool ActiveDelay{ get; private set; }