Installer downloads now using specified IPackageLoader.

This commit is contained in:
IceReaper
2022-11-06 19:14:56 +01:00
committed by Matthias Mailänder
parent a9da6bb2d8
commit fcc8f53b59
8 changed files with 36 additions and 19 deletions

View File

@@ -74,14 +74,17 @@ namespace OpenRA
public class ModDownload
{
public readonly ObjectCreator ObjectCreator;
public readonly string Title;
public readonly string URL;
public readonly string MirrorList;
public readonly string SHA1;
public readonly string Type;
public readonly Dictionary<string, string> Extract;
public ModDownload(MiniYaml yaml)
public ModDownload(MiniYaml yaml, ObjectCreator objectCreator)
{
ObjectCreator = objectCreator;
Title = yaml.Value;
FieldLoader.Load(this, yaml);
}