Files
tbd-station-14/Content.Server/Labels/Label/Components/LabelComponent.cs
Fahasor 65c7e88c48 Make jugs label deletable (#19082)
* Fix bug with undeletable label on jugs

* Fix label text for jugs

* Documented LabelComponent

* Revert "Fix label text for jugs"

This reverts commit 38b7cc75ca51770b3693d0cef4f0364424619b73.

* make jugs labels names lowercase

* Fix documentation of LabelComponent
2023-08-15 16:41:10 -06:00

20 lines
589 B
C#

namespace Content.Server.Labels.Components
{
/// <summary>
/// Makes entities have a label in their name. Labels are normally given by <see cref="HandLabelerComponent"/>
/// </summary>
[RegisterComponent]
public sealed class LabelComponent : Component
{
/// <summary>
/// The actual text in the label
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("currentLabel")]
public string? CurrentLabel { get; set; }
[DataField("originalName")]
public string? OriginalName { get; set; }
}
}