Added TESAlliance Support

This commit is contained in:
erri120 2020-01-22 10:50:09 +01:00
parent 7a63f0aa32
commit 02827ddc5b
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
4 changed files with 24 additions and 3 deletions

View File

@ -29,8 +29,7 @@ namespace Wabbajack.Lib
typeof(BA2FileEntryState), typeof(MediaFireDownloader.State), typeof(ArchiveMeta),
typeof(PropertyFile), typeof(SteamMeta), typeof(SteamWorkshopDownloader), typeof(SteamWorkshopDownloader.State),
typeof(LoversLabDownloader.State), typeof(GameFileSourceDownloader.State), typeof(VectorPlexusDownloader.State),
typeof(DeadlyStreamDownloader.State), typeof(AFKModsDownloader.State)
typeof(DeadlyStreamDownloader.State), typeof(AFKModsDownloader.State), typeof(TESAllianceDownloader.State)
},
};
Config.VersionTolerance.Mode = VersionToleranceMode.Standard;

View File

@ -24,7 +24,8 @@ namespace Wabbajack.Lib.Downloaders
typeof(SteamWorkshopDownloader.State),
typeof(VectorPlexusDownloader.State),
typeof(DeadlyStreamDownloader.State),
typeof(AFKModsDownloader.State)
typeof(AFKModsDownloader.State),
typeof(TESAllianceDownloader.State)
};
public static Dictionary<string, Type> NameToType { get; set; }
public static Dictionary<Type, string> TypeToName { get; set; }

View File

@ -21,6 +21,7 @@ namespace Wabbajack.Lib.Downloaders
new VectorPlexusDownloader(),
new DeadlyStreamDownloader(),
new AFKModsDownloader(),
new TESAllianceDownloader(),
new HTTPDownloader(),
new ManualDownloader(),
};

View File

@ -0,0 +1,20 @@
using System;
namespace Wabbajack.Lib.Downloaders
{
public class TESAllianceDownloader : AbstractIPS4Downloader<TESAllianceDownloader, TESAllianceDownloader.State>
{
#region INeedsDownload
public override string SiteName => "Vector Plexus";
public override Uri SiteURL => new Uri("http://tesalliance.org");
public override Uri IconUri => new Uri("http://tesalliance.org/favicon.ico");
#endregion
public TESAllianceDownloader() : base(new Uri("http://tesalliance.org/forums/index.php?/login/"),
"tesalliance", "tesalliance.org")
{
}
public class State : State<TESAllianceDownloader>{}
}
}