the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2class StructurePiece;
3class BoundingBox;
4
5#include "StructureFeatureIO.h"
6
7class StructureStart
8{
9public:
10 list<StructurePiece *> pieces;
11
12protected:
13 BoundingBox *boundingBox;
14
15private:
16 int chunkX, chunkZ;
17
18public:
19 StructureStart();
20 StructureStart(int x, int z);
21 ~StructureStart();
22 BoundingBox *getBoundingBox();
23 list<StructurePiece *> *getPieces();
24 void postProcess(Level *level, Random *random, BoundingBox *chunkBB);
25protected:
26 void calculateBoundingBox();
27
28public:
29 virtual CompoundTag *createTag(int chunkX, int chunkZ);
30 virtual void addAdditonalSaveData(CompoundTag *tag);
31 virtual void load(Level *level, CompoundTag *tag);
32 virtual void readAdditonalSaveData(CompoundTag *tag);
33
34protected:
35 void moveBelowSeaLevel(Level *level, Random *random, int offset);
36 void moveInsideHeights(Level *level, Random *random, int lowestAllowed, int highestAllowed);
37public:
38 bool isValid();
39 int getChunkX();
40 int getChunkZ();
41
42 virtual EStructureStart GetType() = 0;
43};