1
0

TraitorCodePaperComponent.cs 814 B

123456789101112131415161718192021222324252627
  1. namespace Content.Server.Traitor.Components;
  2. /// <summary>
  3. /// Paper with written traitor codewords on it.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class TraitorCodePaperComponent : Component
  7. {
  8. /// <summary>
  9. /// The number of codewords that should be generated on this paper.
  10. /// Will not extend past the max number of available codewords.
  11. /// </summary>
  12. [DataField]
  13. public int CodewordAmount = 1;
  14. /// <summary>
  15. /// Whether the codewords should be faked if there is no traitor gamerule set.
  16. /// </summary>
  17. [DataField]
  18. public bool FakeCodewords = true;
  19. /// <summary>
  20. /// Whether all codewords added to the round should be used. Overrides CodewordAmount if true.
  21. /// </summary>
  22. [DataField]
  23. public bool CodewordShowAll = false;
  24. }