ObjectiveLimitComponent.cs 638 B

1234567891011121314151617181920
  1. using Content.Server.Objectives.Systems;
  2. namespace Content.Server.Objectives.Components;
  3. /// <summary>
  4. /// Limits the number of traitors that can have the same objective.
  5. /// Checked by the prototype id, so only considers the exact same objectives.
  6. /// </summary>
  7. /// <remarks>
  8. /// Only works for traitors so don't use for anything else.
  9. /// </remarks>
  10. [RegisterComponent, Access(typeof(ObjectiveLimitSystem))]
  11. public sealed partial class ObjectiveLimitComponent : Component
  12. {
  13. /// <summary>
  14. /// Max number of players
  15. /// </summary>
  16. [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
  17. public uint Limit;
  18. }