Files
tbd-station-14/Content.Shared/GameObjects/Components/SharedPaperComponent.cs
Acruid ca4fd649fe Massive Namespace Cleanup (#3120)
* Engine namespace changes.

* Automated remove redundant using statements.

* Simplified Graphics namespace.

* Apparently the container system stores full type names in the map file.😞 This updates those names.

* API Changes to LocalizationManager.LoadCulture.

* Update submodule to v0.3.2
2021-02-11 01:13:03 -08:00

62 lines
1.5 KiB
C#

using System;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components
{
public class SharedPaperComponent : Component
{
public override string Name => "Paper";
[Serializable, NetSerializable]
public class PaperBoundUserInterfaceState : BoundUserInterfaceState
{
public readonly string Text;
public readonly PaperAction Mode;
public PaperBoundUserInterfaceState(string text, PaperAction mode = PaperAction.Read)
{
Text = text;
Mode = mode;
}
}
[Serializable, NetSerializable]
public class PaperActionMessage : BoundUserInterfaceMessage
{
public readonly PaperAction Action;
public PaperActionMessage(PaperAction action)
{
Action = action;
}
}
[Serializable, NetSerializable]
public class PaperInputText : BoundUserInterfaceMessage
{
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
}
}
}