the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 36 lines 543 B view raw
1#pragma once 2 3#include "ArrayWithLength.h" 4 5class LevelType; 6 7#ifndef _CONTENT_PACAKGE 8#define _BIOME_OVERRIDE 9#endif 10 11class Layer 12{ 13private: 14 __int64 seed; 15 16protected: 17 shared_ptr<Layer>parent; 18 19private: 20 __int64 rval; 21 __int64 seedMixup; 22 23public: 24 static LayerArray getDefaultLayers(__int64 seed, LevelType *levelType); 25 26 Layer(__int64 seedMixup); 27 28 virtual void init(__int64 seed); 29 virtual void initRandom(__int64 x, __int64 y); 30 31protected: 32 int nextRandom(int max); 33 34public: 35 virtual intArray getArea(int xo, int yo, int w, int h) = 0; 36};