CCVars.Replays.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// Whether or not to record admin chat. If replays are being publicly distributes, this should probably be
  7. /// false.
  8. /// </summary>
  9. public static readonly CVarDef<bool> ReplayRecordAdminChat =
  10. CVarDef.Create("replay.record_admin_chat", false, CVar.ARCHIVE);
  11. /// <summary>
  12. /// Automatically record full rounds as replays.
  13. /// </summary>
  14. public static readonly CVarDef<bool> ReplayAutoRecord =
  15. CVarDef.Create("replay.auto_record", false, CVar.SERVERONLY);
  16. /// <summary>
  17. /// The file name to record automatic replays to. The path is relative to <see cref="CVars.ReplayDirectory"/>.
  18. /// </summary>
  19. /// <remarks>
  20. /// <para>
  21. /// If the path includes slashes, directories will be automatically created if necessary.
  22. /// </para>
  23. /// <para>
  24. /// A number of substitutions can be used to automatically fill in the file name: <c>{year}</c>, <c>{month}</c>, <c>{day}</c>, <c>{hour}</c>, <c>{minute}</c>, <c>{round}</c>.
  25. /// </para>
  26. /// </remarks>
  27. public static readonly CVarDef<string> ReplayAutoRecordName =
  28. CVarDef.Create("replay.auto_record_name",
  29. "{year}_{month}_{day}-{hour}_{minute}-round_{round}.zip",
  30. CVar.SERVERONLY);
  31. /// <summary>
  32. /// Path that, if provided, automatic replays are initially recorded in.
  33. /// When the recording is done, the file is moved into its final destination.
  34. /// Unless this path is rooted, it will be relative to <see cref="CVars.ReplayDirectory"/>.
  35. /// </summary>
  36. public static readonly CVarDef<string> ReplayAutoRecordTempDir =
  37. CVarDef.Create("replay.auto_record_temp_dir", "", CVar.SERVERONLY);
  38. }