Beispiel #1
0
 public BaseStateManager(string name)
 {
     this.StateFilePath = ONI_Common.Paths.GetStateFilePath(name);
     IOHelper.EnsureDirectoryExists(Paths.GetLogsPath());
     this.Logger     = new ONI_Common.IO.Logger(Paths.GetLogsPath() + System.IO.Path.DirectorySeparatorChar + name + "Log.txt");
     this.JsonLoader = new JsonFileManager(new JsonManager(), Logger);
 }
Beispiel #2
0
        //
        //

        public BaseStateManager(string configFileName, string logFilePath)
        {
            this.StateFilePath = configFileName;
            this.Logger        = new ONI_Common.IO.Logger(logFilePath);
            this.JsonLoader    = new JsonFileManager(new JsonManager(), Logger);
        }