summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/AssetsUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/AssetsUtils.h')
-rw-r--r--logic/minecraft/AssetsUtils.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/logic/minecraft/AssetsUtils.h b/logic/minecraft/AssetsUtils.h
index 2aecd4c5..90251c2d 100644
--- a/logic/minecraft/AssetsUtils.h
+++ b/logic/minecraft/AssetsUtils.h
@@ -17,22 +17,32 @@
#include <QString>
#include <QMap>
+#include "net/NetAction.h"
+#include "net/NetJob.h"
struct AssetObject
{
+ QString getRelPath();
+ QUrl getUrl();
+ QString getLocalPath();
+ NetActionPtr getDownloadAction();
+
QString hash;
qint64 size;
};
struct AssetsIndex
{
+ NetJobPtr getDownloadJob();
+
+ QString id;
QMap<QString, AssetObject> objects;
bool isVirtual = false;
};
namespace AssetsUtils
{
-bool loadAssetsIndexJson(QString file, AssetsIndex* index);
+bool loadAssetsIndexJson(QString id, QString file, AssetsIndex* index);
/// Reconstruct a virtual assets folder for the given assets ID and return the folder
QDir reconstructAssets(QString assetsId);
}