Editor/MetricsEditor.cs
using Sandbox;
using Sandbox.Internal;
using System.Diagnostics;
using System.IO;

public static class MetricsEditor
{
	public static string packageFolders => $"{Project.Current.Package.Org.Ident}/{Project.Current.Package.Ident}";
	public static string dataFolder => Editor.FileSystem.Root.GetFullPath( $"/data/{packageFolders}" );

	public static bool enabled
	{
		get
		{
			return ConsoleSystem.GetValue( "manic_metrics_enabled" ).ToBool();
		}
		set
		{
			ConsoleSystem.SetValue( "manic_metrics_enabled", value ? 1 : 0 );
		}
	}

	public static bool debugLogging
	{
		get
		{
			return ConsoleSystem.GetValue( "manic_metrics_logging" ).ToBool();
		}
		set
		{
			ConsoleSystem.SetValue( "manic_metrics_logging", value ? 1 : 0 );
		}
	}
}