2020-02-11 20:01:05 -03:00
|
|
|
using System;
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.Paper
|
2020-02-11 20:01:05 -03:00
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
[Virtual]
|
2020-02-11 20:01:05 -03:00
|
|
|
public class SharedPaperComponent : Component
|
|
|
|
|
{
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PaperBoundUserInterfaceState : BoundUserInterfaceState
|
2020-02-11 20:01:05 -03:00
|
|
|
{
|
|
|
|
|
public readonly string Text;
|
|
|
|
|
public readonly PaperAction Mode;
|
|
|
|
|
|
|
|
|
|
public PaperBoundUserInterfaceState(string text, PaperAction mode = PaperAction.Read)
|
|
|
|
|
{
|
|
|
|
|
Text = text;
|
|
|
|
|
Mode = mode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PaperActionMessage : BoundUserInterfaceMessage
|
2020-02-11 20:01:05 -03:00
|
|
|
{
|
|
|
|
|
public readonly PaperAction Action;
|
|
|
|
|
public PaperActionMessage(PaperAction action)
|
|
|
|
|
{
|
|
|
|
|
Action = action;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PaperInputText : BoundUserInterfaceMessage
|
2020-02-11 20:01:05 -03:00
|
|
|
{
|
|
|
|
|
public readonly string Text;
|
|
|
|
|
|
|
|
|
|
public PaperInputText(string text)
|
|
|
|
|
{
|
|
|
|
|
Text = text;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum PaperUiKey
|
|
|
|
|
{
|
|
|
|
|
Key
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum PaperAction
|
|
|
|
|
{
|
|
|
|
|
Read,
|
|
|
|
|
Write,
|
|
|
|
|
CrossOut,
|
|
|
|
|
Stamp
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-09 14:48:53 +01:00
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum PaperVisuals : byte
|
|
|
|
|
{
|
|
|
|
|
Status
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum PaperStatus : byte
|
|
|
|
|
{
|
|
|
|
|
Blank,
|
|
|
|
|
Written
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-11 20:01:05 -03:00
|
|
|
}
|
|
|
|
|
}
|