2025-06-06 01:19:41 +02:00
|
|
|
using Content.Server.Codewords;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2024-08-05 10:03:24 +02:00
|
|
|
namespace Content.Server.Traitor.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Paper with written traitor codewords on it.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed partial class TraitorCodePaperComponent : Component
|
|
|
|
|
{
|
2025-06-06 01:19:41 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The faction to get codewords for.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<CodewordFactionPrototype> CodewordFaction = "Traitor";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The generator to use for the fake words.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public ProtoId<CodewordGeneratorPrototype> CodewordGenerator = "TraitorCodewordGenerator";
|
|
|
|
|
|
2024-08-05 10:03:24 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The number of codewords that should be generated on this paper.
|
|
|
|
|
/// Will not extend past the max number of available codewords.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public int CodewordAmount = 1;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the codewords should be faked if there is no traitor gamerule set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool FakeCodewords = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether all codewords added to the round should be used. Overrides CodewordAmount if true.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool CodewordShowAll = false;
|
|
|
|
|
}
|