2023-01-21 10:12:45 -05:00
|
|
|
using Content.Shared.Emag.Systems;
|
|
|
|
|
using Content.Shared.Tag;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
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>
|
|
|
|
|
[DataField("emagImmuneTag", customTypeSerializer: typeof(PrototypeIdSerializer<TagPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
2023-04-19 05:46:00 +00:00
|
|
|
[AutoNetworkedField]
|
2023-01-21 10:12:45 -05:00
|
|
|
public string EmagImmuneTag = "EmagImmune";
|
|
|
|
|
}
|