mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
564 B
C#
19 lines
564 B
C#
using System.Threading.Tasks;
|
|
using Wabbajack.Common;
|
|
|
|
namespace Wabbajack.Lib.Downloaders
|
|
{
|
|
public interface IUpgradingState
|
|
{
|
|
/// <summary>
|
|
/// Find a possible archive that can be combined with a server generated patch to get the input archive
|
|
/// state;
|
|
/// </summary>
|
|
/// <param name="a"></param>
|
|
/// <returns></returns>
|
|
public Task<(Archive? Archive, TempFile NewFile)> FindUpgrade(Archive a);
|
|
|
|
Task<bool> ValidateUpgrade(Hash srcHash, AbstractDownloadState newArchiveState);
|
|
}
|
|
}
|