예제 #1
0
        public SaveHandler(string _pathToFile)
        {
            _pathBase = Path.GetTempPath() + _editPath;
            ZIPHelper.DecompressToDirectory(_pathToFile, _pathBase);

            _playerSave = PlayerSave.PlayerSave.FromJson(File.ReadAllText(_pathBase + Database.SelectFile(Database.SAVE_SELECTOR.SAVE_PLAYER)));
            _stateSave  = GeneralSave.Save.FromJson(File.ReadAllText(_pathBase + Database.SelectFile(Database.SAVE_SELECTOR.SAVE_STATE)));
        }