6
2026-01-24 12:49:55 +03:00

21 lines
638 B
C#

using Content.Server.Objectives.Systems;
namespace Content.Server.Objectives.Components;
/// <summary>
/// Limits the number of traitors that can have the same objective.
/// Checked by the prototype id, so only considers the exact same objectives.
/// </summary>
/// <remarks>
/// Only works for traitors so don't use for anything else.
/// </remarks>
[RegisterComponent, Access(typeof(ObjectiveLimitSystem))]
public sealed partial class ObjectiveLimitComponent : Component
{
/// <summary>
/// Max number of players
/// </summary>
[DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
public uint Limit;
}