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