summaryrefslogtreecommitdiffstats
path: root/src/BiomeDef.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-29 15:36:05 +0200
committermadmaxoft <github@xoft.cz>2014-04-29 15:36:29 +0200
commit015bf244b5d1f5d9dac7ee85a406dd95c974697b (patch)
tree4df5e1605a39f6727d67942d21b128247faa9cd2 /src/BiomeDef.h
parentDisabled MSVC warnings about constant bool expressions. (diff)
downloadcuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar.gz
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar.bz2
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar.lz
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar.xz
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.tar.zst
cuberite-015bf244b5d1f5d9dac7ee85a406dd95c974697b.zip
Diffstat (limited to 'src/BiomeDef.h')
-rw-r--r--src/BiomeDef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/BiomeDef.h b/src/BiomeDef.h
index 474d4df76..67916890d 100644
--- a/src/BiomeDef.h
+++ b/src/BiomeDef.h
@@ -104,10 +104,13 @@ enum EMCSBiome
biMaxVariantBiome = biNumVariantBiomes - 1, // The maximum biome value
} ;
-/// Translates a biome string to biome enum. Takes either a number or a biome alias (built-in). Returns biInvalidBiome on failure.
+/** Translates a biome string to biome enum. Takes either a number or a biome alias (built-in). Returns biInvalidBiome on failure. */
extern EMCSBiome StringToBiome(const AString & a_BiomeString);
-/// Returns true if the biome has no downfall - deserts and savannas
+/** Translates biome enum into biome string. Returns empty string on failure (unknown biome). */
+extern AString BiomeToString(int a_Biome);
+
+/** Returns true if the biome has no downfall - deserts and savannas */
extern bool IsBiomeNoDownfall(EMCSBiome a_Biome);