Added AFK Mods support

This commit is contained in:
erri120 2020-01-22 10:41:28 +01:00
parent d82cb91fde
commit 1e854df650
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
4 changed files with 22 additions and 2 deletions

View File

@ -29,7 +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(DeadlyStreamDownloader.State), typeof(AFKModsDownloader.State)
},
};

View File

@ -0,0 +1,18 @@
using System;
namespace Wabbajack.Lib.Downloaders
{
public class AFKModsDownloader : AbstractIPS4Downloader<AFKModsDownloader, AFKModsDownloader.State>
{
#region INeedsDownload
public override string SiteName => "AFK Mods";
public override Uri SiteURL => new Uri("https://www.afkmods.com");
public override Uri IconUri => new Uri("https://www.afkmods.com/favicon.ico");
#endregion
public AFKModsDownloader() : base(new Uri("https://www.afkmods.com/index.php?/login/"),
"afkmods", "www.afkmods.com"){}
public class State : State<AFKModsDownloader>{}
}
}

View File

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

View File

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