diff options
Diffstat (limited to 'api/logic/minecraft/World.h')
-rw-r--r-- | api/logic/minecraft/World.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/api/logic/minecraft/World.h b/api/logic/minecraft/World.h index 2cce85a2..7cb694a7 100644 --- a/api/logic/minecraft/World.h +++ b/api/logic/minecraft/World.h @@ -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; }; |