the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 46 lines 1.1 kB view raw
1#pragma once 2 3#include "StructureFeature.h" 4#include "StructureStart.h" 5 6class RandomScatteredLargeFeature : public StructureFeature 7{ 8public: 9 static const wstring OPTION_SPACING; 10 11 static void staticCtor(); 12 static vector<Biome *> allowedBiomes; 13 14private: 15 vector<Biome::MobSpawnerData *> swamphutEnemies; 16 int spacing; 17 int minSeparation; 18 19 void _init(); 20 21public: 22 RandomScatteredLargeFeature(); 23 RandomScatteredLargeFeature(unordered_map<wstring, wstring> options); 24 25 wstring getFeatureName(); 26 27protected: 28 virtual bool isFeatureChunk(int x, int z, bool bIsSuperflat=false); 29 StructureStart *createStructureStart(int x, int z); 30 31public: 32 class ScatteredFeatureStart : public StructureStart 33 { 34 public: 35 static StructureStart *Create() { return new ScatteredFeatureStart(); } 36 virtual EStructureStart GetType() { return eStructureStart_ScatteredFeatureStart; } 37 38 public: 39 ScatteredFeatureStart(); 40 ScatteredFeatureStart(Level *level, Random *random, int chunkX, int chunkZ); 41 }; 42 43public: 44 bool isSwamphut(int cellX, int cellY, int cellZ); 45 vector<Biome::MobSpawnerData *> *getSwamphutEnemies(); 46};