mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 17:11:57 +00:00
34 lines
811 B
C++
34 lines
811 B
C++
#pragma once
|
|
#include "BaseInstance.h"
|
|
#include "minecraft/Mod.h"
|
|
|
|
class ModList;
|
|
|
|
class MinecraftInstance: public BaseInstance
|
|
{
|
|
public:
|
|
MinecraftInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
|
|
virtual ~MinecraftInstance() {};
|
|
|
|
/// Path to the instance's minecraft directory.
|
|
QString minecraftRoot() const;
|
|
|
|
////// Mod Lists //////
|
|
virtual std::shared_ptr<ModList> resourcePackList() const
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual std::shared_ptr<ModList> texturePackList() const
|
|
{
|
|
return nullptr;
|
|
}
|
|
/// get all jar mods applicable to this instance's jar
|
|
virtual QList<Mod> getJarMods() const
|
|
{
|
|
return QList<Mod>();
|
|
}
|
|
virtual std::shared_ptr< BaseVersionList > versionList() const;
|
|
};
|
|
|
|
typedef std::shared_ptr<MinecraftInstance> MinecraftInstancePtr;
|