the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 41 lines 1.1 kB view raw
1#pragma once 2 3class FlatLayerInfo; 4 5class FlatGeneratorInfo 6{ 7public: 8 static const int SERIALIZATION_VERSION = 2; 9 static const wstring STRUCTURE_VILLAGE; 10 static const wstring STRUCTURE_BIOME_SPECIFIC; 11 static const wstring STRUCTURE_STRONGHOLD; 12 static const wstring STRUCTURE_MINESHAFT; 13 static const wstring STRUCTURE_BIOME_DECORATION; 14 static const wstring STRUCTURE_LAKE; 15 static const wstring STRUCTURE_LAVA_LAKE; 16 static const wstring STRUCTURE_DUNGEON; 17 18private: 19 vector<FlatLayerInfo *> layers; 20 unordered_map<wstring, unordered_map<wstring, wstring> > structures; 21 int biome; 22 23public: 24 FlatGeneratorInfo(); 25 ~FlatGeneratorInfo(); 26 27 int getBiome(); 28 void setBiome(int biome); 29 unordered_map<wstring, unordered_map<wstring, wstring> > *getStructures(); 30 vector<FlatLayerInfo *> *getLayers(); 31 void updateLayers(); 32 wstring toString(); 33 34private: 35 static FlatLayerInfo *getLayerFromString(const wstring &input, int yOffset); 36 static vector<FlatLayerInfo *> *getLayersFromString(const wstring &input); 37 38public: 39 static FlatGeneratorInfo *fromValue(const wstring &input); 40 static FlatGeneratorInfo *getDefault(); 41};