pollymc/logic/minecraft/MinecraftInstance.h

34 lines
811 B
C
Raw Normal View History

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