示例#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);
 }
示例#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);
        }
示例#3
0
 public ElementColorsManager(JsonManager manager, Logger logger = null)
     : base(manager, logger)
 {
 }