mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-06 15:33:32 +00:00
Added a dummy cheats toggle to the world creation screen.
This commit is contained in:
@@ -14,13 +14,14 @@ namespace GameType {
|
||||
class LevelSettings
|
||||
{
|
||||
public:
|
||||
LevelSettings(long seed, int gameType)
|
||||
LevelSettings(long seed, int gameType, bool allowCheats = false)
|
||||
: seed(seed),
|
||||
gameType(gameType)
|
||||
gameType(gameType),
|
||||
allowCheats(allowCheats)
|
||||
{
|
||||
}
|
||||
static LevelSettings None() {
|
||||
return LevelSettings(-1,-1);
|
||||
return LevelSettings(-1,-1,false);
|
||||
}
|
||||
|
||||
long getSeed() const {
|
||||
@@ -31,6 +32,10 @@ public:
|
||||
return gameType;
|
||||
}
|
||||
|
||||
bool getAllowCheats() const {
|
||||
return allowCheats;
|
||||
}
|
||||
|
||||
//
|
||||
// Those two should actually not be here
|
||||
// @todo: Move out when we add LevelSettings.cpp :p
|
||||
@@ -53,6 +58,7 @@ public:
|
||||
private:
|
||||
const long seed;
|
||||
const int gameType;
|
||||
const bool allowCheats;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL__LevelSettings_H__*/
|
||||
|
||||
Reference in New Issue
Block a user