* Add Console, PDA news tab, and ringstone popup * Add English localization * Add mass-media console board to Advanced Entertainment resrarch * Fix misprint * Deleting unused libraries * Fix round restart problem * Fixing restart problem * Just another fix * Сode optimization * Code optimization * Convert News read tab to cartridge Convert the News read tab into a cartridge, and fix a couple of bugs * Just another fix * Some updates * More fixing!! Fix cooldown, add author label to read menu * Again, fix cooldown bug * Some minor changes * Revert "Some minor changes" This reverts commit 470c8d727629ac79994f70e56162adae8659e944. * Some minor updates * News write Ui update * Just another fix * See commit below comments * More code readability, more!
24 lines
885 B
C#
24 lines
885 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.MassMedia.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class NewsWriteComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool ShareAvalible = false;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("nextShare", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
public TimeSpan NextShare;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("shareCooldown")]
|
|
public float ShareCooldown = 60f;
|
|
|
|
[DataField("noAccessSound")]
|
|
public SoundSpecifier NoAccessSound = new SoundPathSpecifier("/Audio/Machines/airlock_deny.ogg");
|
|
[DataField("confirmSound")]
|
|
public SoundSpecifier ConfirmSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg");
|
|
}
|
|
}
|