summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/World.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-06 23:35:58 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-06 23:35:58 +0200
commit38693e1d6ca7f05d9488348ddf298488d1cc0995 (patch)
treed99551fc3ebbef931d10ee45cb34f2ee791cc1fe /logic/minecraft/World.h
parent40b233448c7a3977d45831b8aa6cf31019c03940 (diff)
downloadMultiMC-38693e1d6ca7f05d9488348ddf298488d1cc0995.tar
MultiMC-38693e1d6ca7f05d9488348ddf298488d1cc0995.tar.gz
MultiMC-38693e1d6ca7f05d9488348ddf298488d1cc0995.tar.lz
MultiMC-38693e1d6ca7f05d9488348ddf298488d1cc0995.tar.xz
MultiMC-38693e1d6ca7f05d9488348ddf298488d1cc0995.zip
GH-1047 parse world files and integrate MCEdit with world page
Diffstat (limited to 'logic/minecraft/World.h')
-rw-r--r--logic/minecraft/World.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/logic/minecraft/World.h b/logic/minecraft/World.h
index 60151dd6..91cb2a83 100644
--- a/logic/minecraft/World.h
+++ b/logic/minecraft/World.h
@@ -15,20 +15,33 @@
#pragma once
#include <QFileInfo>
+#include <QDateTime>
class World
{
public:
World(const QFileInfo &file);
+ QString folderName() const
+ {
+ return m_folderName;
+ }
QString name() const
{
- return m_name;
+ return m_actualName;
+ }
+ QDateTime lastPlayed() const
+ {
+ return m_lastPlayed;
+ }
+ int64_t seed() const
+ {
+ return m_randomSeed;
}
bool isValid() const
{
return is_valid;
}
-// // delete all the files of this world
+ // delete all the files of this world
bool destroy();
// replace this world with a copy of the other
bool replace(World &with);
@@ -42,6 +55,9 @@ public:
protected:
QFileInfo m_file;
- QString m_name;
- bool is_valid;
+ QString m_folderName;
+ QString m_actualName;
+ QDateTime m_lastPlayed;
+ int64_t m_randomSeed = 0;
+ bool is_valid = false;
};