2022-03-03 07:31:23 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "modplatform/ModAPI.h"
|
|
|
|
|
|
|
|
class FlameAPI : public ModAPI {
|
|
|
|
public:
|
2022-03-07 01:15:39 +05:30
|
|
|
|
|
|
|
inline QString getModSearchURL(int index, QString searchFilter, QString sort, ModLoaderType modLoader, QString version) const override
|
2022-03-03 07:31:23 +05:30
|
|
|
{
|
|
|
|
return QString("https://addons-ecs.forgesvc.net/api/v2/addon/search?"
|
|
|
|
"gameId=432&" "categoryId=0&" "sectionId=6&"
|
|
|
|
|
|
|
|
"index=%1&" "pageSize=25&" "searchFilter=%2&"
|
|
|
|
"sort=%3&" "modLoaderType=%4&" "gameVersion=%5")
|
|
|
|
.arg(index)
|
|
|
|
.arg(searchFilter)
|
|
|
|
.arg(sort)
|
2022-03-07 01:15:39 +05:30
|
|
|
.arg(modLoader)
|
2022-03-03 07:31:23 +05:30
|
|
|
.arg(version);
|
|
|
|
};
|
|
|
|
|
|
|
|
inline QString getVersionsURL(const QString& addonId) const override
|
|
|
|
{
|
|
|
|
return QString("https://addons-ecs.forgesvc.net/api/v2/addon/%1/files").arg(addonId);
|
|
|
|
};
|
|
|
|
|
|
|
|
inline QString getAuthorURL(const QString& name) const override { return ""; };
|
|
|
|
};
|