Files
space-station-14/Content.Shared/StatusIcon/Components/JobStatusComponent.cs
SlamBamActionman 407664a536 Add Cyborg crew indicator (#37038)
* Initial commit

* Include uncertain crew and make it work for AI

* Add new definition to Silicon Rules 8

* Update based on review

* Remove Cluwne from job list

* ProtoIdify

* Update and also make monkey/corgi show IDs

* Remove unnecessary property

* Remove redundant code

* Carrrrd

* cleanup

* Nicer code

* Update to fix the spawn bug + agent ID

* Fix new icons

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2026-01-29 06:59:06 +00:00

28 lines
901 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;
}