2023-09-10 07:20:27 +01:00
|
|
|
using Content.Shared.Ninja.Systems;
|
|
|
|
|
using Content.Shared.Tag;
|
|
|
|
|
using Content.Shared.Whitelist;
|
|
|
|
|
using Robust.Shared.GameStates;
|
2024-07-11 05:55:56 +00:00
|
|
|
using Robust.Shared.Prototypes;
|
2023-09-10 07:20:27 +01:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Ninja.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Component for emagging things on click.
|
|
|
|
|
/// No charges but checks against a whitelist.
|
|
|
|
|
/// </summary>
|
2024-07-11 05:55:56 +00:00
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(EmagProviderSystem))]
|
2023-09-10 07:20:27 +01:00
|
|
|
public sealed partial class EmagProviderComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The tag that marks an entity as immune to emagging.
|
|
|
|
|
/// </summary>
|
2024-07-11 05:55:56 +00:00
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<TagPrototype> EmagImmuneTag = "EmagImmune";
|
2023-09-10 07:20:27 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whitelist that entities must be on to work.
|
|
|
|
|
/// </summary>
|
2024-07-11 05:55:56 +00:00
|
|
|
[DataField]
|
|
|
|
|
public EntityWhitelist? Whitelist;
|
2023-09-10 07:20:27 +01:00
|
|
|
}
|