mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
28 lines
820 B
C#
28 lines
820 B
C#
using Content.Shared.Access;
|
|
using Content.Shared.DeviceNetwork;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.TurretController;
|
|
|
|
/// <summary>
|
|
/// A network payload that sets fire mode for a turret.
|
|
/// </summary>
|
|
public partial record struct TurretControllerSetArmamentPayload : INetworkPayload
|
|
{
|
|
[DataField]
|
|
public int ArmamentState;
|
|
}
|
|
|
|
/// <summary>
|
|
/// A network payload that sets access exemptions for a turret.
|
|
/// </summary>
|
|
public partial record struct TurretControllerSetAccessPayload : INetworkPayload
|
|
{
|
|
[DataField]
|
|
public HashSet<ProtoId<AccessLevelPrototype>> AccessExemptions = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// A network payload request to get the state of all available turrets.
|
|
/// </summary>
|
|
public readonly partial record struct TurretControllerRequestPayload : INetworkPayload;
|