Add prediction to hand labeler labels (#25869)

Added prediction to labels
This commit is contained in:
Tayrtahn
2024-03-05 20:33:28 -05:00
committed by GitHub
parent 907403759c
commit f4976a3288
6 changed files with 70 additions and 48 deletions

View File

@@ -1,24 +0,0 @@
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 partial class LabelComponent : Component
{
/// <summary>
/// Current text on the label. If set before map init, during map init this string will be localized.
/// This permits localized preset labels with fallback to the text written on the label.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("currentLabel")]
public string? CurrentLabel { get; set; }
/// <summary>
/// The original name of the entity
/// Used for reverting the modified entity name when the label is removed
/// </summary>
[DataField("originalName")]
public string? OriginalName { get; set; }
}
}