Last active
April 23, 2016 20:44
-
-
Save minecraftmuse3/eac96f872ce8ee6e5d2680283eb631da to your computer and use it in GitHub Desktop.
Base structure file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SAOPEHouse.h" | |
SAOPEHouse::SAOPEHouse() { | |
//Construcor | |
} | |
void SAOPEHouse::postProcess(BlockSource* region, Random& random, BoundingBox const& bounds) { | |
generateBox(region, bounds, 0, 0, 0, 10, 10, 10, {Block::mCobblestone->blockId, 0}, {Block::mCobblestone->blockId, 0}, false); | |
} | |
void SAOPEHouse::postProcessMobsAt(BlockSource* region, Random& random, BoundingBox const& bounds) { | |
//Spawn the structures mobs here | |
} | |
//Add any additional stuff here | |
void addAdditionalSaveData(CompoundTag&) { | |
} | |
void readAdditionalSaveData(CompoundTag&) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "mcpe/level/when/structure/StrucurePiece.h" | |
class SAOPEHouse : public StructurePiece { | |
public: | |
SAOPEHouse(); | |
void postProcess(BlockSource*, Random&, BoundingBox const&); | |
void postProcessMobsAt(BlockSource*, Random&, BoundingBox const&); | |
void addAdditionalSaveData(CompundTag&); | |
void readAdditionalSaveData(CompoundTag&); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment