using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Paper;
[NetworkedComponent]
public abstract partial class SharedPaperComponent : Component
{
/// <summary>
/// Sound played after writing to the paper.
/// </summary>
[DataField("sound")]
public SoundSpecifier? Sound { get; private set; } = new SoundCollectionSpecifier("PaperScribbles", AudioParams.Default.WithVariation(0.1f));
[Serializable, NetSerializable]
public sealed class PaperBoundUserInterfaceState : BoundUserInterfaceState
public readonly string Text;
public readonly List<StampDisplayInfo> StampedBy;
public readonly PaperAction Mode;
public PaperBoundUserInterfaceState(string text, List<StampDisplayInfo> stampedBy, PaperAction mode = PaperAction.Read)
Text = text;
StampedBy = stampedBy;
Mode = mode;
}
public sealed class PaperInputTextMessage : BoundUserInterfaceMessage
public PaperInputTextMessage(string text)
public enum PaperUiKey
Key
public enum PaperAction
Read,
Write,
public enum PaperVisuals : byte
Status,
Stamp
public enum PaperStatus : byte
Blank,
Written