CCVars.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Content.Shared.Administration;
  2. using Content.Shared.CCVar.CVarAccess;
  3. using Robust.Shared;
  4. using Robust.Shared.Configuration;
  5. namespace Content.Shared.CCVar;
  6. /// <summary>
  7. /// Contains all the CVars used by content.
  8. /// </summary>
  9. /// <remarks>
  10. /// NOTICE FOR FORKS: Put your own CVars in a separate file with a different [CVarDefs] attribute. RT will automatically pick up on it.
  11. /// </remarks>
  12. [CVarDefs]
  13. public sealed partial class CCVars : CVars
  14. {
  15. // Only debug stuff lives here.
  16. #if DEBUG
  17. [CVarControl(AdminFlags.Debug)]
  18. public static readonly CVarDef<string> DebugTestCVar =
  19. CVarDef.Create("debug.test_cvar", "default", CVar.SERVER);
  20. [CVarControl(AdminFlags.Debug)]
  21. public static readonly CVarDef<float> DebugTestCVar2 =
  22. CVarDef.Create("debug.test_cvar2", 123.42069f, CVar.SERVER);
  23. #endif
  24. /// <summary>
  25. /// A simple toggle to test <c>OptionsVisualizerComponent</c>.
  26. /// </summary>
  27. public static readonly CVarDef<bool> DebugOptionVisualizerTest =
  28. CVarDef.Create("debug.option_visualizer_test", false, CVar.CLIENTONLY);
  29. /// <summary>
  30. /// Set to true to disable parallel processing in the pow3r solver.
  31. /// </summary>
  32. public static readonly CVarDef<bool> DebugPow3rDisableParallel =
  33. CVarDef.Create("debug.pow3r_disable_parallel", true, CVar.SERVERONLY);
  34. }