16 lines
520 B
C#
16 lines
520 B
C#
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server._DV.AACTablet;
|
|
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
public sealed partial class AACTabletComponent : Component
|
|
{
|
|
// Minimum time between each phrase, to prevent spam
|
|
[DataField]
|
|
public TimeSpan Cooldown = TimeSpan.FromSeconds(1);
|
|
|
|
// Time that the next phrase can be sent.
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
|
|
public TimeSpan NextPhrase;
|
|
}
|