* Make ActiveNPCComponent shared * Check if entity have ActiveNPC component * Make networked * Fix path * fix
22 lines
673 B
C#
22 lines
673 B
C#
using Content.Shared.StatusIcon;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.SSDIndicator;
|
|
|
|
/// <summary>
|
|
/// Shows status icon when player in SSD
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
public sealed partial class SSDIndicatorComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[AutoNetworkedField]
|
|
public bool IsSSD = false;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("icon", customTypeSerializer: typeof(PrototypeIdSerializer<StatusIconPrototype>))]
|
|
public string Icon = "SSDIcon";
|
|
}
|