mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-16 05:41:14 +03:00
* documentation pass on content.server -> E! * APi pass on content.server for the E folder. * documentation pass on content.shared for e. * Apply suggestions from code review Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> * fixing documentation according to review part 1. * typo * Very minor fixes * And a short explanation about EUI --------- Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Content.Shared.Emag.Systems;
|
|
using Content.Shared.Tag;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Emag.Components;
|
|
|
|
/// <summary>
|
|
/// This allows an entity to emag other entities upon interaction.
|
|
/// </summary>
|
|
[Access(typeof(EmagSystem))]
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
public sealed partial class EmagComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The tag that marks an entity as immune to emags
|
|
/// </summary>
|
|
[DataField]
|
|
[AutoNetworkedField]
|
|
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");
|
|
}
|