6
StarHorizon_Public/Content.Shared/Turrets/TurretTargetSettingsComponent.cs
2025-11-15 12:24:44 +03:00

20 lines
674 B
C#

using Content.Shared.Access;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Turrets;
/// <summary>
/// Attached to entities to provide them with turret target selection data.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(TurretTargetSettingsSystem))]
public sealed partial class TurretTargetSettingsComponent : Component
{
/// <summary>
/// Crew with one or more access levels from this list are exempt from being targeted by turrets.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<ProtoId<AccessLevelPrototype>> ExemptAccessLevels = new();
}