2023-01-21 10:12:45 -05:00
|
|
|
using Content.Shared.Emag.Systems;
|
|
|
|
|
using Content.Shared.Tag;
|
2025-01-30 05:05:47 +01:00
|
|
|
using Robust.Shared.Audio;
|
2023-01-21 10:12:45 -05:00
|
|
|
using Robust.Shared.GameStates;
|
2025-01-30 05:05:47 +01:00
|
|
|
using Robust.Shared.Prototypes;
|
2023-01-21 10:12:45 -05:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Emag.Components;
|
|
|
|
|
|
|
|
|
|
[Access(typeof(EmagSystem))]
|
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-04-19 05:46:00 +00:00
|
|
|
[AutoGenerateComponentState]
|
|
|
|
|
public sealed partial class EmagComponent : Component
|
2022-02-17 21:43:24 -05:00
|
|
|
{
|
2023-01-21 10:12:45 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// The tag that marks an entity as immune to emags
|
|
|
|
|
/// </summary>
|
2025-01-30 05:05:47 +01:00
|
|
|
[DataField]
|
2023-04-19 05:46:00 +00:00
|
|
|
[AutoNetworkedField]
|
2025-01-30 05:05:47 +01:00
|
|
|
public ProtoId<TagPrototype> EmagImmuneTag = "EmagImmune";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What type of emag effect this device will do
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public EmagType EmagType = EmagType.Interaction;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What sound should the emag play when used
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public SoundSpecifier EmagSound = new SoundCollectionSpecifier("sparks");
|
2023-01-21 10:12:45 -05:00
|
|
|
}
|