/// <summary> /// Delete the SaveProgress object when the saving protocol stops /// </summary> public void DeleteProgress() { Progress = null; }
/// <summary> /// Create a new save progress object, that store information of the running save /// </summary> /// <param name="_totalFilesNumber">Number of files in the directory to save (total number)</param> /// <param name="_totalSize">Total size (in Bytes) of the directory</param> /// <param name="_filesRemaining">Number of file(s) remaining to save</param> /// <param name="_progressState">The progress percentage of the save (0-100)</param> /// <param name="_sizeRemaining">Size remaining (in Bytes) to save</param> public void CreateProgress(int _totalFilesNumber, long _totalSize, int _filesRemaining, int _progressState, long _sizeRemaining) { Progress = new SaveProgress(_totalFilesNumber, _totalSize, _filesRemaining, _progressState, _sizeRemaining); }