CCVars.Chat.Ooc.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. public static readonly CVarDef<bool>
  6. OocEnabled = CVarDef.Create("ooc.enabled", true, CVar.NOTIFY | CVar.REPLICATED);
  7. public static readonly CVarDef<bool> AdminOocEnabled =
  8. CVarDef.Create("ooc.enabled_admin", true, CVar.NOTIFY);
  9. /// <summary>
  10. /// If true, whenever OOC is disabled the Discord OOC relay will also be disabled.
  11. /// </summary>
  12. public static readonly CVarDef<bool> DisablingOOCDisablesRelay =
  13. CVarDef.Create("ooc.disabling_ooc_disables_relay", true, CVar.SERVERONLY);
  14. /// <summary>
  15. /// Whether or not OOC chat should be enabled during a round.
  16. /// </summary>
  17. public static readonly CVarDef<bool> OocEnableDuringRound =
  18. CVarDef.Create("ooc.enable_during_round", true, CVar.NOTIFY | CVar.REPLICATED | CVar.SERVER);
  19. public static readonly CVarDef<bool> ShowOocPatronColor =
  20. CVarDef.Create("ooc.show_ooc_patron_color", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.CLIENT);
  21. /// <summary>
  22. /// The discord channel ID to send OOC messages to (also recieve them). This requires the Discord Integration to be enabled and configured.
  23. /// </summary>
  24. public static readonly CVarDef<string> OocDiscordChannelId =
  25. CVarDef.Create("ooc.discord_channel_id", string.Empty, CVar.SERVERONLY);
  26. }