mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
27 lines
898 B
C#
27 lines
898 B
C#
using Content.Shared.Overlays;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.StatusIcon.Components;
|
|
|
|
/// <summary>
|
|
/// Used to indicate a mob can have their job status read by HUDs.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class JobStatusComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The currently displayed status icon for the mobs's job.
|
|
/// Visible with <see cref="ShowJobIconsComponent"/>
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public ProtoId<JobIconPrototype>? JobStatusIcon = "JobIconNoId";
|
|
|
|
/// <summary>
|
|
/// If the mob is currently considered crew.
|
|
/// This is true depending on their current job icon.
|
|
/// Visible with <see cref="ShowCrewIconsComponent"/>
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool IsCrew;
|
|
}
|