public virtual void Save(string path) { var intrinsicInfo = new IntrinsicInfo(cameraMatrix, distCoeffs, rvecs, tvecs); IOHandler.SaveJson(path, intrinsicInfo); SavedEvent?.Invoke(); }
public void NewSaveGame() { SaveName saveName = new SaveName(player, DateTime.Now); newSavePath = SaveFolder.FullName + saveName.CleanSave + ".json"; File.WriteAllText(newSavePath, NewSave.SaveData()); SavedEvent?.Invoke(); lastSavePath = newSavePath; }
public void OnSaved() { SavedEvent?.Invoke(); }