using Robust.Shared.GameStates; using Robust.Shared.Serialization; namespace Content.Shared.Roles.RoleCodeword; /// /// Used to display and highlight codewords in chat messages on the client. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedRoleCodewordSystem), Other = AccessPermissions.Read)] public sealed partial class RoleCodewordComponent : Component { /// /// Contains the codewords tied to a role. /// Key string should be unique for the role. /// [DataField, AutoNetworkedField] public Dictionary RoleCodewords = new(); } [DataDefinition, Serializable, NetSerializable] public partial struct CodewordsData { [DataField] public Color Color; [DataField] public List Codewords; public CodewordsData(Color color, List codewords) { Color = color; Codewords = codewords; } }