1
0

CCVars.Misc.cs 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. public static readonly CVarDef<bool> HolidaysEnabled = CVarDef.Create("holidays.enabled", true, CVar.SERVERONLY);
  6. public static readonly CVarDef<bool> BrandingSteam = CVarDef.Create("branding.steam", false, CVar.CLIENTONLY);
  7. public static readonly CVarDef<int> EntityMenuGroupingType = CVarDef.Create("entity_menu", 0, CVar.CLIENTONLY);
  8. /// <summary>
  9. /// Should we pre-load all of the procgen atlasses.
  10. /// </summary>
  11. public static readonly CVarDef<bool> ProcgenPreload =
  12. CVarDef.Create("procgen.preload", true, CVar.SERVERONLY);
  13. /// <summary>
  14. /// Enabled: Cloning has 70% cost and reclaimer will refuse to reclaim corpses with souls. (For LRP).
  15. /// Disabled: Cloning has full biomass cost and reclaimer can reclaim corpses with souls. (Playtested and balanced for MRP+).
  16. /// </summary>
  17. public static readonly CVarDef<bool> BiomassEasyMode =
  18. CVarDef.Create("biomass.easy_mode", true, CVar.SERVERONLY);
  19. /// <summary>
  20. /// A scale factor applied to a grid's bounds when trying to find a spot to randomly generate an anomaly.
  21. /// </summary>
  22. public static readonly CVarDef<float> AnomalyGenerationGridBoundsScale =
  23. CVarDef.Create("anomaly.generation_grid_bounds_scale", 0.6f, CVar.SERVERONLY);
  24. /// <summary>
  25. /// How long a client can go without any input before being considered AFK.
  26. /// </summary>
  27. public static readonly CVarDef<float> AfkTime =
  28. CVarDef.Create("afk.time", 60f, CVar.SERVERONLY);
  29. /// <summary>
  30. /// Flavor limit. This is to ensure that having a large mass of flavors in
  31. /// some food object won't spam a user with flavors.
  32. /// </summary>
  33. public static readonly CVarDef<int>
  34. FlavorLimit = CVarDef.Create("flavor.limit", 10, CVar.SERVERONLY);
  35. public static readonly CVarDef<string> DestinationFile =
  36. CVarDef.Create("autogen.destination_file", "", CVar.SERVER | CVar.SERVERONLY);
  37. /// <summary>
  38. /// Whether uploaded files will be stored in the server's database.
  39. /// This is useful to keep "logs" on what files admins have uploaded in the past.
  40. /// </summary>
  41. public static readonly CVarDef<bool> ResourceUploadingStoreEnabled =
  42. CVarDef.Create("netres.store_enabled", true, CVar.SERVER | CVar.SERVERONLY);
  43. /// <summary>
  44. /// Numbers of days before stored uploaded files are deleted. Set to zero or negative to disable auto-delete.
  45. /// This is useful to free some space automatically. Auto-deletion runs only on server boot.
  46. /// </summary>
  47. public static readonly CVarDef<int> ResourceUploadingStoreDeletionDays =
  48. CVarDef.Create("netres.store_deletion_days", 30, CVar.SERVER | CVar.SERVERONLY);
  49. /// <summary>
  50. /// If a server update restart is pending, the delay after the last player leaves before we actually restart. In seconds.
  51. /// </summary>
  52. public static readonly CVarDef<float> UpdateRestartDelay =
  53. CVarDef.Create("update.restart_delay", 20f, CVar.SERVERONLY);
  54. /// <summary>
  55. /// If fire alarms should have all access, or if activating/resetting these
  56. /// should be restricted to what is dictated on a player's access card.
  57. /// Defaults to true.
  58. /// </summary>
  59. public static readonly CVarDef<bool> FireAlarmAllAccess =
  60. CVarDef.Create("firealarm.allaccess", true, CVar.SERVERONLY);
  61. /// <summary>
  62. /// Time between play time autosaves, in seconds.
  63. /// </summary>
  64. public static readonly CVarDef<float>
  65. PlayTimeSaveInterval = CVarDef.Create("playtime.save_interval", 900f, CVar.SERVERONLY);
  66. /// <summary>
  67. /// The maximum amount of time the entity GC can process, in ms.
  68. /// </summary>
  69. public static readonly CVarDef<int> GCMaximumTimeMs =
  70. CVarDef.Create("entgc.maximum_time_ms", 5, CVar.SERVERONLY);
  71. public static readonly CVarDef<bool> GatewayGeneratorEnabled =
  72. CVarDef.Create("gateway.generator_enabled", true);
  73. public static readonly CVarDef<string> TippyEntity =
  74. CVarDef.Create("tippy.entity", "Tippy", CVar.SERVER | CVar.REPLICATED);
  75. /// <summary>
  76. /// The number of seconds that must pass for a single entity to be able to point at something again.
  77. /// </summary>
  78. public static readonly CVarDef<float> PointingCooldownSeconds =
  79. CVarDef.Create("pointing.cooldown_seconds", 0.5f, CVar.SERVERONLY);
  80. }