the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 22 lines 641 B view raw
1#pragma once 2 3class Level; 4 5class Feature 6{ 7private: 8 bool doUpdate; 9public: 10 Feature(); 11 Feature(bool doUpdate); 12 virtual ~Feature() {}; 13 14 virtual bool place(Level *level, Random *random, int x, int y, int z) = 0; 15 virtual bool placeWithIndex(Level *level, Random *random, int x, int y, int z,int iIndex, int iRadius) { return false;} 16 virtual void init(double V1, double V2, double V3) {}; 17 virtual void applyFeature(Level *level, Random *random, int xChunk, int zChunk); 18 19protected: 20 virtual void placeBlock(Level *level, int x, int y, int z, int tile); 21 virtual void placeBlock(Level *level, int x, int y, int z, int tile, int data); 22};