the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 45 lines 1.3 kB view raw
1#pragma once 2using namespace std; 3 4#include "ChunkSource.h" 5 6class ProgressListener; 7class LargeFeature; 8class StrongholdFeature; 9class VillageFeature; 10class MineShaftFeature; 11class PerlinNoise; 12 13class FlatLevelSource : public ChunkSource 14{ 15public: 16 static const int CHUNK_HEIGHT = 8; 17 static const int CHUNK_WIDTH = 4; 18 19private: 20 Level *level; 21 Random *random; 22 Random *pprandom; 23 24 boolean generateStructures; 25 VillageFeature *villageFeature;// = new VillageFeature(1); 26 27public: 28 FlatLevelSource(Level *level, __int64 seed, bool generateStructures); 29 ~FlatLevelSource(); 30 31private: void prepareHeights(byteArray blocks); 32 33public: 34 virtual LevelChunk *create(int x, int z); 35 virtual LevelChunk *getChunk(int xOffs, int zOffs); 36 virtual bool hasChunk(int x, int y); 37 virtual void postProcess(ChunkSource *parent, int xt, int zt); 38 virtual bool save(bool force, ProgressListener *progressListener); 39 virtual bool tick(); 40 virtual bool shouldSave(); 41 virtual wstring gatherStats(); 42 virtual vector<Biome::MobSpawnerData *> *getMobsAt(MobCategory *mobCategory, int x, int y, int z); 43 virtual TilePos *findNearestMapFeature(Level *level, const wstring& featureName, int x, int y, int z); 44 virtual void recreateLogicStructuresForChunk(int chunkX, int chunkZ); 45};