summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-01-15 11:40:10 +0100
committerGitHub <noreply@github.com>2017-01-15 11:40:10 +0100
commite28cecb3d1e36367cd915881d775072d105e3d03 (patch)
treeacad3ddd536f1e3137584e37a34e4577b0873f3b /src/Generating/Prefab.cpp
parentGit: Ignore compile.sh folder (#3533) (diff)
downloadcuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar.gz
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar.bz2
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar.lz
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar.xz
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.tar.zst
cuberite-e28cecb3d1e36367cd915881d775072d105e3d03.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Prefab.cpp105
1 files changed, 0 insertions, 105 deletions
diff --git a/src/Generating/Prefab.cpp b/src/Generating/Prefab.cpp
index 9af01d6a4..e7d9ba711 100644
--- a/src/Generating/Prefab.cpp
+++ b/src/Generating/Prefab.cpp
@@ -15,111 +15,6 @@ uses a prefabricate in a cBlockArea for drawing itself.
-#ifdef SELF_TEST
-
-// Create one static prefab to test the parser:
-static const cPrefab::sDef g_TestPrefabDef =
-{
- // Size:
- 7, 6, 7, // SizeX = 7, SizeY = 6, SizeZ = 7
-
- // Hitbox (relative to bounding box):
- 0, 0, 0, // MinX, MinY, MinZ
- 6, 5, 6, // MaxX, MaxY, MaxZ
-
- // Block definitions:
- ".: 0: 0\n" /* 0 */
- "a:112: 0\n" /* netherbrick */
- "b:113: 0\n" /* netherbrickfence */,
-
- // Block data:
- // Level 1
- "aaaaaaa"
- "aaaaaaa"
- "aaaaaaa"
- "aaaaaaa"
- "aaaaaaa"
- "aaaaaaa"
- "aaaaaaa"
-
- // Level 2
- "aa...aa"
- "a.....a"
- "......."
- "......."
- "......."
- "a.....a"
- "aa...aa"
-
- // Level 3
- "aa...aa"
- "a.....a"
- "......."
- "......."
- "......."
- "a.....a"
- "aa...aa"
-
- // Level 4
- "aa...aa"
- "a.....a"
- "......."
- "......."
- "......."
- "a.....a"
- "aa...aa"
-
- // Level 5
- "aabbbaa"
- "a.....a"
- "b.....b"
- "b.....b"
- "b.....b"
- "a.....a"
- "aabbbaa"
-
- // Level 6
- "aaaaaaa"
- "a.....a"
- "a.....a"
- "a.....a"
- "a.....a"
- "a.....a"
- "aaaaaaa",
-
- // Connections:
- "0: 0, 3, 2: 4\n"
- "0: 2, 3, 0: 2\n",
-
- // AllowedRotations:
- 7, /* 1, 2, 3 CCW rotations */
-
- // Merge strategy:
- cBlockArea::msImprint,
-
- // ExtendFloorStrategy:
- cPrefab::efsNone,
-
- // DefaultWeight:
- 10,
-
- // DepthWeight:
- "",
-
- // AddWeightIfSame:
- 1000,
-
- // MoveToGround:
- false,
-};
-
-static cPrefab g_TestPrefab(g_TestPrefabDef);
-#endif
-
-
-
-
-
cPrefab::cPrefab(const cPrefab::sDef & a_Def) :
m_Size(a_Def.m_SizeX, a_Def.m_SizeY, a_Def.m_SizeZ),
m_HitBox(