CCVars.Server.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /*
  6. * Server
  7. */
  8. /// <summary>
  9. /// Change this to have the changelog and rules "last seen" date stored separately.
  10. /// </summary>
  11. public static readonly CVarDef<string> ServerId =
  12. CVarDef.Create("server.id", "unknown_server_id", CVar.REPLICATED | CVar.SERVER);
  13. /// <summary>
  14. /// Guide Entry Prototype ID to be displayed as the server rules.
  15. /// </summary>
  16. public static readonly CVarDef<string> RulesFile =
  17. CVarDef.Create("server.rules_file", "DefaultRuleset", CVar.REPLICATED | CVar.SERVER);
  18. /// <summary>
  19. /// Guide entry that is displayed by default when a guide is opened.
  20. /// </summary>
  21. public static readonly CVarDef<string> DefaultGuide =
  22. CVarDef.Create("server.default_guide", "NewPlayer", CVar.REPLICATED | CVar.SERVER);
  23. /// <summary>
  24. /// If greater than 0, automatically restart the server after this many minutes of uptime.
  25. /// </summary>
  26. /// <remarks>
  27. /// <para>
  28. /// This is intended to work around various bugs and performance issues caused by long continuous server uptime.
  29. /// </para>
  30. /// <para>
  31. /// This uses the same non-disruptive logic as update restarts,
  32. /// i.e. the game will only restart at round end or when there is nobody connected.
  33. /// </para>
  34. /// </remarks>
  35. public static readonly CVarDef<int> ServerUptimeRestartMinutes =
  36. CVarDef.Create("server.uptime_restart_minutes", 0, CVar.SERVERONLY);
  37. /// <summary>
  38. /// This will be the title shown in the lobby
  39. /// If empty, the title will be {ui-lobby-title} + the server's full name from the hub
  40. /// </summary>
  41. public static readonly CVarDef<string> ServerLobbyName =
  42. CVarDef.Create("server.lobby_name", "", CVar.REPLICATED | CVar.SERVER);
  43. /// <summary>
  44. /// The width of the right side (chat) panel in the lobby
  45. /// </summary>
  46. public static readonly CVarDef<int> ServerLobbyRightPanelWidth =
  47. CVarDef.Create("server.lobby_right_panel_width", 650, CVar.REPLICATED | CVar.SERVER);
  48. /// <summary>
  49. /// Forces clients to display version watermark, as if HudVersionWatermark was true
  50. /// </summary>
  51. public static readonly CVarDef<bool> ForceClientHudVersionWatermark =
  52. CVarDef.Create("server.force_client_hud_version_watermark", false, CVar.REPLICATED | CVar.SERVER);
  53. }