* 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
20 lines
674 B
C#
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();
|
|
}
|