From d8d1e6e1d2f668cb7b34eae7484e59e2310e847a Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 2 Sep 2019 06:46:40 +0200 Subject: Added a BasicGeneratorTest. --- tests/Generating/Stubs.cpp | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'tests/Generating/Stubs.cpp') diff --git a/tests/Generating/Stubs.cpp b/tests/Generating/Stubs.cpp index fb3ed5349..8a8095458 100644 --- a/tests/Generating/Stubs.cpp +++ b/tests/Generating/Stubs.cpp @@ -16,6 +16,12 @@ #include "Blocks/BlockHandler.h" #include "Generating/ChunkDesc.h" #include "DeadlockDetect.h" +#include "Entities/Entity.h" +#include "Mobs/Monster.h" +#include "Simulator/FluidSimulator.h" +#include "Simulator/FireSimulator.h" +#include "MobSpawner.h" +#include "ItemGrid.h" @@ -110,6 +116,7 @@ cBlockInfo::cBlockInfoArray::cBlockInfoArray() + cBoundingBox::cBoundingBox(double, double, double, double, double, double) { } @@ -352,3 +359,68 @@ bool cUUID::FromString(const AString&) + +void cEntity::SetPosition(const Vector3d & a_Position) +{ +} + + + + + +void cEntity::SetHealth(float a_NewHealth) +{ +} + + + + + +cMonster::eFamily cMonster::FamilyFromType(eMonsterType a_Type) +{ + return cMonster::mfAmbient; +} + + + + + +std::unique_ptr cMonster::NewMonsterFromType(eMonsterType a_Type) +{ + return nullptr; +} + + + + + +bool cFluidSimulator::CanWashAway(BLOCKTYPE a_BlockType) +{ + return false; +} + + + + + +bool cFireSimulator::DoesBurnForever(BLOCKTYPE a_BlockType) +{ + return false; +} + + + + + +void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, size_t a_CountLootProbabs, int a_NumSlots, int a_Seed) +{ +} + + + + + +std::set cMobSpawner::GetAllowedMobTypes(EMCSBiome a_Biome) +{ + return {}; +} -- cgit v1.2.3