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

14 lines
473 B
C#
Raw Normal View History

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