6
StarHorizon_Public/Content.Shared/Roles/StartingMindRoleComponent.cs
2025-12-18 02:55:17 +03:00

28 lines
750 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Roles;
/// <summary>
/// This is most likely not the component you are looking for, almost nothing should be using this.
/// Consider using GhostRoleComponent or AntagSelectionComponent instead.
///
/// The specified mind role will be added to the mob on spawn.
///
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class StartingMindRoleComponent : Component
{
/// <summary>
/// The ID of the mind role to add
/// </summary>
[DataField(required: true)]
public EntProtoId MindRole;
/// <summary>
/// Add the mind role silently
/// </summary>
[DataField]
public bool Silent = true;
}