Exemple #1
0
        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
            });
        }
Exemple #2
0
 public CVar(string name, CVarFactory factory)
 {
     this.Name    = name;
     this.factory = factory;
 }