mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
* 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>
28 lines
901 B
C#
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;
|
|
}
|