Add a debug overlay for accessreaders (#9681)

> didnt pjb have issues with doing the control stuff in an overlay and just wanted direct texture draw

I ended up doing dis.
This commit is contained in:
metalgearsloth
2022-09-14 19:33:25 +10:00
committed by GitHub
parent c9d3545b39
commit 1e30848cf7
11 changed files with 167 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Access.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Shared.Access.Components
@@ -6,12 +7,12 @@ namespace Content.Shared.Access.Components
/// <summary>
/// Simple mutable access provider found on ID cards and such.
/// </summary>
[RegisterComponent]
[Access(typeof(AccessSystem))]
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedAccessSystem))]
public sealed class AccessComponent : Component
{
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<AccessLevelPrototype>))]
[Access(typeof(AccessSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
[Access(typeof(SharedAccessSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public HashSet<string> Tags = new();
/// <summary>