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