1
0

Updated the NetherFort prefabs to current Gallery contents.

Code exported from the Gallery server by the GalExport plugin.
This commit is contained in:
madmaxoft 2014-04-12 19:36:50 +02:00
parent f44a291da8
commit 83b25d085c
3 changed files with 3315 additions and 1944 deletions

View File

@ -80,9 +80,9 @@ cNetherFortGen::cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxDepth) :
m_MaxDepth(a_MaxDepth)
{
// Initialize the prefabs:
for (size_t i = 0; i < g_NetherFortPrefabs1Count; i++)
for (size_t i = 0; i < g_NetherFortPrefabsCount; i++)
{
cPrefab * Prefab = new cPrefab(g_NetherFortPrefabs1[i]);
cPrefab * Prefab = new cPrefab(g_NetherFortPrefabs[i]);
m_AllPieces.push_back(Prefab);
if (Prefab->HasConnectorType(0))
{
@ -95,15 +95,17 @@ cNetherFortGen::cNetherFortGen(int a_Seed, int a_GridSize, int a_MaxDepth) :
}
// Initialize the starting piece prefabs:
for (size_t i = 0; i < g_NetherFortStartingPrefabs1Count; i++)
for (size_t i = 0; i < g_NetherFortStartingPrefabsCount; i++)
{
m_StartingPieces.push_back(new cPrefab(g_NetherFortStartingPrefabs1[i]));
m_StartingPieces.push_back(new cPrefab(g_NetherFortStartingPrefabs[i]));
}
/*
// DEBUG: Try one round of placement:
cPlacedPieces Pieces;
cBFSPieceGenerator pg(*this, a_Seed);
pg.PlacePieces(0, 64, 0, a_MaxDepth, Pieces);
*/
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// NetherFortPrefabs.h
// Declares the data used for nether fortress prefabs
// Declares the prefabs in the group NetherFort
#include "../Prefab.h"
@ -9,7 +9,7 @@
extern const cPrefab::sDef g_NetherFortPrefabs1[];
extern const cPrefab::sDef g_NetherFortStartingPrefabs1[];
extern const size_t g_NetherFortPrefabs1Count;
extern const size_t g_NetherFortStartingPrefabs1Count;
extern const cPrefab::sDef g_NetherFortPrefabs[];
extern const cPrefab::sDef g_NetherFortStartingPrefabs[];
extern const size_t g_NetherFortPrefabsCount;
extern const size_t g_NetherFortStartingPrefabsCount;