summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/World.h')
-rw-r--r--logic/minecraft/World.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/logic/minecraft/World.h b/logic/minecraft/World.h
index 91cb2a83..27184e05 100644
--- a/logic/minecraft/World.h
+++ b/logic/minecraft/World.h
@@ -48,15 +48,23 @@ public:
// change the world's filesystem path (used by world lists for *MAGIC* purposes)
void repath(const QFileInfo &file);
+ bool install(QString to);
+
// WEAK compare operator - used for replacing worlds
bool operator==(const World &other) const;
bool strongCompare(const World &other) const;
+private:
+ void readFromZip(const QFileInfo &file);
+ void readFromFS(const QFileInfo &file);
+ void parseLevelDat(QByteArray data);
+
protected:
- QFileInfo m_file;
+ QFileInfo m_containerFile;
QString m_folderName;
QString m_actualName;
+ QDateTime levelDatTime;
QDateTime m_lastPlayed;
int64_t m_randomSeed = 0;
bool is_valid = false;