the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 72 lines 1.9 kB view raw
1#pragma once 2class LevelType; 3 4class Abilities; 5class LevelData; 6 7#define _ADVENTURE_MODE_ENABLED 8 9// 4J Stu - Was Java enum class 10class GameType 11{ 12public: 13 static GameType *NOT_SET; 14 static GameType *SURVIVAL; 15 static GameType *CREATIVE; 16 static GameType *ADVENTURE; 17 18 static void staticCtor(); 19 20private: 21 int id; 22 wstring name; 23 24 GameType(int id, const wstring &name); 25 26public: 27 int getId(); 28 wstring getName(); 29 void updatePlayerAbilities(Abilities *abilities); 30 bool isAdventureRestricted(); 31 bool isCreative(); 32 bool isSurvival(); 33 static GameType *byId(int id); 34 static GameType *byName(const wstring &name); 35}; 36 37class LevelSettings 38{ 39private: 40 __int64 seed; 41 GameType *gameType; 42 bool generateMapFeatures; 43 bool hardcore; 44 bool newSeaLevel; 45 LevelType *levelType; 46 bool allowCommands; 47 bool startingBonusItems; // 4J - brought forward from 1.3.2 48 wstring levelTypeOptions; 49 int m_xzSize; // 4J Added 50 int m_hellScale; 51 52 void _init(__int64 seed, GameType *gameType, bool generateMapFeatures, bool hardcore, bool newSeaLevel, LevelType *levelType, int xzSize, int hellScale); // 4J Added xzSize and hellScale param 53 54public: 55 LevelSettings(__int64 seed, GameType *gameType, bool generateMapFeatures, bool hardcore, bool newSeaLevel, LevelType *levelType, int xzSize, int hellScale); // 4J Added xzSize and hellScale param 56 LevelSettings(LevelData *levelData); 57 LevelSettings *enableStartingBonusItems(); // 4J - brought forward from 1.3.2 58 LevelSettings *enableSinglePlayerCommands(); 59 LevelSettings *setLevelTypeOptions(const wstring &options); 60 bool hasStartingBonusItems(); // 4J - brought forward from 1.3.2 61 __int64 getSeed(); 62 GameType *getGameType(); 63 bool isHardcore(); 64 LevelType *getLevelType(); 65 bool getAllowCommands(); 66 bool isGenerateMapFeatures(); 67 bool useNewSeaLevel(); 68 int getXZSize(); // 4J Added 69 int getHellScale(); // 4J Added 70 static GameType *validateGameType(int gameType); 71 wstring getLevelTypeOptions(); 72};