Split codewords into its own system (#37928)
* Split codewords into its own system * Fix admin log * Nuke unused code * Fix formatting errors * Fix tests * Make the codeword system add itself if called when not active * Put comment in right place. * Review: Rename prototypes * Review: Make codewords serializable * Fix build * Reviews: Change the system to not be a gamerule. * Fix YAML Linter * Fix test fail * Remove unused import
This commit is contained in:
17
Content.Server/Codewords/CodewordManagerComponent.cs
Normal file
17
Content.Server/Codewords/CodewordManagerComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Codewords;
|
||||
|
||||
/// <summary>
|
||||
/// Component that defines <see cref="CodewordGeneratorPrototype"/> to use and keeps track of generated codewords.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(CodewordSystem))]
|
||||
public sealed partial class CodewordManagerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The generated codewords. The value contains the entity that has the <see cref="CodewordComponent"/>
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public Dictionary<ProtoId<CodewordFactionPrototype>, EntityUid> Codewords = new();
|
||||
}
|
||||
Reference in New Issue
Block a user