2016-07-22 06:52:12 -04:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class ModList : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ModList();
|
|
|
|
~ModList();
|
2016-08-15 10:40:30 -04:00
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-11-25 07:00:48 -05:00
|
|
|
const char* getName() { return "ModList"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2016-07-22 06:52:12 -04:00
|
|
|
|
|
|
|
static void RunMod(std::string mod);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static std::vector<std::string> Mods;
|
|
|
|
static unsigned int CurrentMod;
|
|
|
|
|
|
|
|
static bool HasMod(std::string modName);
|
|
|
|
|
|
|
|
static unsigned int GetItemCount();
|
|
|
|
static const char* GetItemText(unsigned int index, int column);
|
|
|
|
static void Select(unsigned int index);
|
|
|
|
static void UIScript_LoadMods();
|
|
|
|
static void UIScript_RunMod();
|
|
|
|
static void UIScript_ClearMods();
|
|
|
|
};
|
2016-04-03 18:11:56 -04:00
|
|
|
}
|