mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
19 lines
648 B
C#
19 lines
648 B
C#
using Wabbajack.DTOs.JsonConverters;
|
|
using Wabbajack.Hashing.xxHash64;
|
|
using Wabbajack.Paths;
|
|
|
|
namespace Wabbajack.DTOs.DownloadStates;
|
|
|
|
[JsonAlias("GameFileSource")]
|
|
[JsonName("GameFileSourceDownloader, Wabbajack.Lib")]
|
|
public class GameFileSource : ADownloadState
|
|
{
|
|
public Game Game { get; set; }
|
|
public RelativePath GameFile { get; set; }
|
|
public Hash Hash { get; set; }
|
|
public string GameVersion { get; set; } = "";
|
|
public override string TypeName => "GameFileSourceDownloader+State";
|
|
|
|
public override object[] PrimaryKey => new object[]
|
|
{Game, GameVersion ?? "0.0.0.0", GameFile.ToString().ToLowerInvariant()};
|
|
} |