43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Prototypes;
|
|
using Content.Shared.Access;
|
|
|
|
namespace Content.Shared.Doors.Electronics;
|
|
|
|
/// <summary>
|
|
/// Allows an entity's AccessReader to be configured via UI.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class DoorElectronicsComponent : Component
|
|
{
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class DoorElectronicsUpdateConfigurationMessage : BoundUserInterfaceMessage
|
|
{
|
|
public List<ProtoId<AccessLevelPrototype>> AccessList;
|
|
|
|
public DoorElectronicsUpdateConfigurationMessage(List<ProtoId<AccessLevelPrototype>> accessList)
|
|
{
|
|
AccessList = accessList;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class DoorElectronicsConfigurationState : BoundUserInterfaceState
|
|
{
|
|
public List<ProtoId<AccessLevelPrototype>> AccessList;
|
|
|
|
public DoorElectronicsConfigurationState(List<ProtoId<AccessLevelPrototype>> accessList)
|
|
{
|
|
AccessList = accessList;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum DoorElectronicsConfigurationUiKey : byte
|
|
{
|
|
Key
|
|
}
|