private void Load() { byte[] save = File.ReadAllBytes(GameStateModel.GetSaveLocation(selectedPath)); byte[] meta = File.ReadAllBytes(GameStateModel.GetSaveMetaLocation(selectedPath)); inst_boot.RebootGameWithData(GameStateModel.Deserialize <GameStateModel>(save), GameStateModel.Deserialize <GameStateModel.SaveMeta>(meta)); }
private void DebugDeserialize() { string path = GameStateModel.GetSaveLocation("Save"); byte[] data = File.ReadAllBytes(path); GameStateModel model = GameStateModel.Deserialize <GameStateModel>(data); Debug.Log(model); }
private void Load() { if (checkDialog.IsOpen) { checkDialog.CloseDialog(); } byte[] save = File.ReadAllBytes(GameStateModel.GetSaveLocation(selectedPath)); byte[] meta = File.ReadAllBytes(GameStateModel.GetSaveMetaLocation(selectedPath)); //TODO : Bootstrap 같은 형식으로 Boot 클래스가 필요함. BootstrapManager.getInstance().RebootGameWithData(GameStateModel.Deserialize <GameStateModel>(save), GameStateModel.Deserialize <GameStateModel.SaveMeta>(meta)); CloseMenu(); }