1
0

TurretTargetSettingsComponent.cs 674 B

12345678910111213141516171819
  1. using Content.Shared.Access;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Shared.Turrets;
  5. /// <summary>
  6. /// Attached to entities to provide them with turret target selection data.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  9. [Access(typeof(TurretTargetSettingsSystem))]
  10. public sealed partial class TurretTargetSettingsComponent : Component
  11. {
  12. /// <summary>
  13. /// Crew with one or more access levels from this list are exempt from being targeted by turrets.
  14. /// </summary>
  15. [DataField, AutoNetworkedField]
  16. public HashSet<ProtoId<AccessLevelPrototype>> ExemptAccessLevels = new();
  17. }