예제 #1
0
    public virtual void Save(string path)
    {
        var intrinsicInfo = new IntrinsicInfo(cameraMatrix, distCoeffs, rvecs, tvecs);

        IOHandler.SaveJson(path, intrinsicInfo);
        SavedEvent?.Invoke();
    }
예제 #2
0
    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;
    }
예제 #3
0
 public void OnSaved()
 {
     SavedEvent?.Invoke();
 }