using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Codewords;
///
/// Used to display and highlight codewords in chat messages on the client.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(CodewordSystem), 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 CodewordsData RoleCodewords;
}
[DataDefinition, Serializable, NetSerializable]
public partial struct CodewordsData
{
///
/// The Color these codewords appear as
///
[DataField]
public Color Color;
///
/// The Codewords!!!
///
[DataField]
public List Codewords;
public CodewordsData(Color color, List codewords)
{
Color = color;
Codewords = codewords;
}
}