Adds hand labelers (#4903)

* Adds hand labelers

* Removes unnecessary thing

* Docs

* Reverts some changes

* Addresses comments and adds inhand sprites

* Addressed comments

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-10-16 21:34:05 +01:00
committed by GitHub
parent 2ce5e5ee49
commit 4bf8a5d527
16 changed files with 390 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
using System;
using Content.Server.Items;
using Content.Shared.Whitelist;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.HandLabeler.Components
{
[RegisterComponent]
public class HandLabelerComponent : Component
{
public override string Name => "HandLabeler";
[ViewVariables(VVAccess.ReadWrite)]
[DataField("assignedLabel")]
public string AssignedLabel { get; set; } = string.Empty;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("maxLabelChars")]
public int MaxLabelChars { get; set; } = 50;
[DataField("whitelist")]
public EntityWhitelist Whitelist = new();
}
}