2021-11-11 02:15:23 +13:00
|
|
|
namespace Content.Server.Labels.Components
|
2021-10-16 21:34:05 +01:00
|
|
|
{
|
2023-08-16 01:41:10 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Makes entities have a label in their name. Labels are normally given by <see cref="HandLabelerComponent"/>
|
|
|
|
|
/// </summary>
|
2021-10-16 21:34:05 +01:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class LabelComponent : Component
|
2021-10-16 21:34:05 +01:00
|
|
|
{
|
2023-08-16 01:41:10 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// The actual text in the label
|
|
|
|
|
/// </summary>
|
2021-10-16 21:34:05 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("currentLabel")]
|
|
|
|
|
public string? CurrentLabel { get; set; }
|
|
|
|
|
|
2023-08-16 01:41:10 +03:00
|
|
|
[DataField("originalName")]
|
2021-10-16 21:34:05 +01:00
|
|
|
public string? OriginalName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|