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

14 lines
536 B
C#
Raw Normal View History

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