2023-07-31 08:34:22 +03:00
|
|
|
using Robust.Shared.Audio;
|
2023-07-28 22:59:03 +03:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
|
|
2023-07-26 21:49:38 +03:00
|
|
|
namespace Content.Server.MassMedia.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class NewsWriteComponent : Component
|
2023-07-26 21:49:38 +03:00
|
|
|
{
|
2023-07-28 22:59:03 +03:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool ShareAvalible = false;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("nextShare", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
|
|
|
public TimeSpan NextShare;
|
2023-07-26 21:49:38 +03:00
|
|
|
|
2023-07-28 22:59:03 +03:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("shareCooldown")]
|
|
|
|
|
public float ShareCooldown = 60f;
|
2023-07-31 08:34:22 +03:00
|
|
|
|
|
|
|
|
[DataField("noAccessSound")]
|
|
|
|
|
public SoundSpecifier NoAccessSound = new SoundPathSpecifier("/Audio/Machines/airlock_deny.ogg");
|
|
|
|
|
[DataField("confirmSound")]
|
|
|
|
|
public SoundSpecifier ConfirmSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg");
|
2023-07-26 21:49:38 +03:00
|
|
|
}
|
|
|
|
|
}
|