@ -15,13 +15,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include "net/NetAction.h"
|
||||
#include "net/NetJob.h"
|
||||
|
||||
struct AssetObject
|
||||
{
|
||||
struct AssetObject {
|
||||
QString getRelPath();
|
||||
QUrl getUrl();
|
||||
QString getLocalPath();
|
||||
@ -31,8 +30,7 @@ struct AssetObject
|
||||
qint64 size;
|
||||
};
|
||||
|
||||
struct AssetsIndex
|
||||
{
|
||||
struct AssetsIndex {
|
||||
NetJob::Ptr getDownloadJob();
|
||||
|
||||
QString id;
|
||||
@ -42,12 +40,11 @@ struct AssetsIndex
|
||||
};
|
||||
|
||||
/// FIXME: this is absolutely horrendous. REDO!!!!
|
||||
namespace AssetsUtils
|
||||
{
|
||||
bool loadAssetsIndexJson(const QString &id, const QString &file, AssetsIndex& index);
|
||||
namespace AssetsUtils {
|
||||
bool loadAssetsIndexJson(const QString& id, const QString& file, AssetsIndex& index);
|
||||
|
||||
QDir getAssetsDir(const QString &assetsId, const QString &resourcesFolder);
|
||||
QDir getAssetsDir(const QString& assetsId, const QString& resourcesFolder);
|
||||
|
||||
/// Reconstruct a virtual assets folder for the given assets ID and return the folder
|
||||
bool reconstructAssets(QString assetsId, QString resourcesFolder);
|
||||
}
|
||||
} // namespace AssetsUtils
|
||||
|
Reference in New Issue
Block a user