Files
tbd-station-14/Content.Shared/Tag/TagComponent.cs

15 lines
565 B
C#

using Robust.Shared.Serialization;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Shared.Tag
{
[RegisterComponent, Access(typeof(TagSystem))]
public sealed class TagComponent : Component, ISerializationHooks
{
[ViewVariables]
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<TagPrototype>))]
[Access(typeof(TagSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public readonly HashSet<string> Tags = new();
}
}