Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -2,22 +2,22 @@ using Content.Shared.Access.Systems;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Shared.Access.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[Access(typeof(SharedAccessOverriderSystem))]
|
||||
public sealed partial class AccessOverriderComponent : Component
|
||||
{
|
||||
public static string PrivilegedIdCardSlotId = "AccessOverrider-privilegedId";
|
||||
|
||||
[DataField("privilegedIdSlot")]
|
||||
[DataField]
|
||||
public ItemSlot PrivilegedIdSlot = new();
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("denialSound")]
|
||||
[DataField]
|
||||
public SoundSpecifier? DenialSound;
|
||||
|
||||
public EntityUid TargetAccessReaderId = new();
|
||||
@@ -33,12 +33,12 @@ public sealed partial class AccessOverriderComponent : Component
|
||||
}
|
||||
}
|
||||
|
||||
[DataField("accessLevels", customTypeSerializer: typeof(PrototypeIdListSerializer<AccessLevelPrototype>))]
|
||||
public List<string> AccessLevels = new();
|
||||
[DataField, AutoNetworkedField(true)]
|
||||
public List<ProtoId<AccessLevelPrototype>> AccessLevels = new();
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("doAfter")]
|
||||
public float DoAfterTime = 0f;
|
||||
[DataField]
|
||||
public float DoAfter;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class AccessOverriderBoundUserInterfaceState : BoundUserInterfaceState
|
||||
|
||||
Reference in New Issue
Block a user