sneedmc/logic/minecraft/MinecraftInstance.h

34 lines
811 B
C
Raw Normal View History

2015-01-27 21:31:07 +00:00
#pragma once
2015-02-09 00:51:14 +00:00
#include "BaseInstance.h"
#include "minecraft/Mod.h"
class ModList;
2015-01-27 21:31:07 +00:00
class MinecraftInstance: public BaseInstance
{
public:
2015-02-01 02:08:25 +00:00
MinecraftInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
2015-01-27 21:31:07 +00:00
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;