summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-24 15:03:39 +0200
committermadmaxoft <github@xoft.cz>2014-05-24 15:03:39 +0200
commit96a22cd82c350b1205985a9b8e01f5e6c11f069a (patch)
tree67e70ca37a35c1be21b392f8836c3b886447931a /src/Generating/Prefab.h
parentMerge branch 'master' into VillageGen (diff)
downloadcuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar.gz
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar.bz2
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar.lz
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar.xz
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.tar.zst
cuberite-96a22cd82c350b1205985a9b8e01f5e6c11f069a.zip
Diffstat (limited to '')
-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 2b89a204c..adc0e688e 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -104,6 +104,9 @@ public:
PiecePool implementations can use this for their GetPieceWeight() implementations. */
int GetPieceWeight(const cPlacedPiece & a_PlacedPiece, const cPiece::cConnector & a_ExistingConnector) const;
+ /** Sets the (unmodified) DefaultWeight property for this piece. */
+ void SetDefaultWeight(int a_DefaultWeight);
+
/** Returns the unmodified DefaultWeight property for the piece. */
int GetDefaultWeight(void) const { return m_DefaultWeight; }