mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* 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
23 lines
861 B
C#
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;
|
|
}
|