private void saveExecuted(object sender, ExecutedRoutedEventArgs e) { string path = @"E:\Projects\Unity\WolfFPS\Assets\Levels\generated_test.lvl"; InputOutputUtil.Save(level, path); Title = path; this.progressSaved = true; UpdateUnsavedIndicator(); }
private void openExecuted(object sender, ExecutedRoutedEventArgs e) { if (ConfirmClose()) { this.level = InputOutputUtil.Load(@"E:\Projects\Unity\WolfFPS\Assets\Levels\generated_test.lvl"); ResetViewport(); this.progressSaved = true; UpdateUnsavedIndicator(); } }