Cargo: pizza & bureaucracy (#5123)
* add paper label component * git mv * rename namespace * add cargo printouts * more crates * directly attach paper * comment typo
This commit is contained in:
47
Content.Shared/Labels/LabelEvents.cs
Normal file
47
Content.Shared/Labels/LabelEvents.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Labels
|
||||
{
|
||||
/// <summary>
|
||||
/// Key representing which <see cref="BoundUserInterface"/> is currently open.
|
||||
/// Useful when there are multiple UI for an object. Here it's future-proofing only.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public enum HandLabelerUiKey
|
||||
{
|
||||
Key,
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum PaperLabelVisuals
|
||||
{
|
||||
HasLabel,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a <see cref="HandLabelerComponent"/> state that can be sent to the client
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public class HandLabelerBoundUserInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public string CurrentLabel { get; }
|
||||
|
||||
public HandLabelerBoundUserInterfaceState(string currentLabel)
|
||||
{
|
||||
CurrentLabel = currentLabel;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class HandLabelerLabelChangedMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public string Label { get; }
|
||||
|
||||
public HandLabelerLabelChangedMessage(string label)
|
||||
{
|
||||
Label = label;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user