summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-12 22:43:59 +0200
committermadmaxoft <github@xoft.cz>2014-05-12 22:43:59 +0200
commit9c8e8ef7aece2f881ef97c387600c8a751579b20 (patch)
treec6a67f3c0523140b749a6e7f9a82ac79bb596938 /src/Generating/Prefab.h
parentInitial VillageGen implementation. (diff)
downloadcuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.gz
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.bz2
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.lz
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.xz
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.tar.zst
cuberite-9c8e8ef7aece2f881ef97c387600c8a751579b20.zip
Diffstat (limited to 'src/Generating/Prefab.h')
-rw-r--r--src/Generating/Prefab.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Generating/Prefab.h b/src/Generating/Prefab.h
index 37db2ff16..472584c3a 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -95,6 +95,9 @@ public:
/** Returns the weight (chance) of this prefab generating as the next piece after the specified placed piece.
PiecePool implementations can use this for their GetPieceWeight() implementations. */
int GetPieceWeight(const cPlacedPiece & a_PlacedPiece, const cPiece::cConnector & a_ExistingConnector) const;
+
+ /** Returns the unmodified DefaultWeight property for the piece. */
+ int GetDefaultWeight(void) const { return m_DefaultWeight; }
protected:
/** Packs complete definition of a single block, for per-letter assignment. */