public MyDebug() { cvars = new CVarFactory(FileSystem.FindExistingFile("cvars.*"), Log); CommonCVars = new CommonCVars(this); AddCommonCvars(); Engine.OnExitRequested += () => { debugForm?.Close(); debugForm = null; }; System.Diagnostics.Debug.Listeners.Add(new TraceListener() { log = Log }); }
public CVar(string name, CVarFactory factory) { this.Name = name; this.factory = factory; }