Cleans up tag system (#28272)
* Updated tag system * Added params methods * Fixed tag integration tests * Fixed params methods recursion * Revert has All/Any tag one argument realisation * Updated tag integration tests * Shit happens * Added individual List/HashSet methods, docs, tests
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Tag
|
||||
namespace Content.Shared.Tag;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(TagSystem))]
|
||||
public sealed partial class TagComponent : Component
|
||||
{
|
||||
[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();
|
||||
}
|
||||
[DataField, ViewVariables, AutoNetworkedField]
|
||||
public HashSet<ProtoId<TagPrototype>> Tags = new();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user