GH-2374 fix missing alternating backgrounds in worlds, add gametype column

This commit is contained in:
Petr Mrázek
2018-12-11 23:53:14 +01:00
parent de568b32b8
commit 13b293dd65
5 changed files with 76 additions and 1 deletions

View File

@ -19,6 +19,15 @@
#include "multimc_logic_export.h"
enum class GameType
{
Survival,
Creative,
Adventure,
Spectator
};
QString MULTIMC_LOGIC_EXPORT gameTypeToString(GameType type);
class MULTIMC_LOGIC_EXPORT World
{
public:
@ -35,6 +44,10 @@ public:
{
return m_lastPlayed;
}
GameType gameType() const
{
return m_gameType;
}
int64_t seed() const
{
return m_randomSeed;
@ -79,5 +92,6 @@ protected:
QDateTime levelDatTime;
QDateTime m_lastPlayed;
int64_t m_randomSeed = 0;
GameType m_gameType = GameType::Survival;
bool is_valid = false;
};