SSD Indicator (#19701)
This commit is contained in:
21
Content.Shared/SSDIndicator/SSDIndicatorComponent.cs
Normal file
21
Content.Shared/SSDIndicator/SSDIndicatorComponent.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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 = true;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("icon", customTypeSerializer: typeof(PrototypeIdSerializer<StatusIconPrototype>))]
|
||||
public string Icon = "SSDIcon";
|
||||
}
|
||||
Reference in New Issue
Block a user