Files
tbd-station-14/Content.Shared/Turrets/TurretTargetSettingsComponent.cs
chromiumboy 10c868011e Sentry turrets - Part 3: Turret AI (#35058)
* Initial commit

* Updated Access/command.yml

* Fix for Access/AccessLevelPrototype.cs

* Added silicon access levels to admin items

* Included self-recharging battery changes

* Revert "Included self-recharging battery changes"

* Addressed reviewers comments

* Additional reviewer comments
2025-03-01 18:42:33 +01: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();
}