CatStation/Content.Shared/NewPlayer/NewPlayerIconComponent.cs
SlamBamActionman 19bc31aef7
Add "new player label" over the head of players joining the game for the first time (#44709)
* Initial commit

* RMC? I 'ardly know 'er

* Sprout

* Rework it to use job icons

* Revert the one change

* Always the one yaml

* Easy review changes

* We do a little salami

* Review changes

* NIGHTMARE NIGHTMARE NIGHTMARE

* Update to use StatusIconPrototype only

* Remove async

* Aaaand remove the comment, bah

* Review fixes

* Update master

* Add the ability for ghosts to see

* Byte backing

* Review fix + comment

* Update to 90 min

* Add todo message
2026-09-24 15:34:37 +00:00

23 lines
861 B
C#

using Content.Shared.StatusIcon;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.NewPlayer;
/// <summary>
/// Players with this component can be seen by players with <see cref="ShowNewPlayerIconComponent"/>.
/// It is used to indicate a player is new to the game.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class NewPlayerIconComponent : Component
{
/// <summary>
/// The status icon corresponding to the new player icon.
/// </summary>
[DataField, AutoNetworkedField]
public ProtoId<StatusIconPrototype> StatusIcon { get; set; } = "NewPlayerIcon";
// We only send these out to ShowNewPlayerIconComponent users, to avoid malicious new player detection.
/// <inheritdoc />
public override bool SessionSpecific => true;
}