Re-organize all projects (#4166)
This commit is contained in:
62
Content.Shared/Paper/SharedPaperComponent.cs
Normal file
62
Content.Shared/Paper/SharedPaperComponent.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Paper
|
||||
{
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user