Files
crystall-punk-14/Content.Shared/Tag/TagComponent.cs

13 lines
485 B
C#
Raw Normal View History

using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
2021-06-09 22:19:39 +02:00
namespace Content.Shared.Tag
{
[RegisterComponent, Access(typeof(TagSystem))]
2022-08-08 12:35:57 +10:00
public sealed class TagComponent : Component
{
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<TagPrototype>))]
[Access(typeof(TagSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
2022-02-08 14:08:11 +11:00
public readonly HashSet<string> Tags = new();
}
}