summaryrefslogtreecommitdiffstats
path: root/Tools/BiomeVisualiser/BiomeSource.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-06 21:43:13 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-06 21:43:13 +0200
commit209ad8702634e72d8cb528d3df181e2300a31115 (patch)
treedd80891eda325a8f21ff9e751d333699e9a9c779 /Tools/BiomeVisualiser/BiomeSource.h
parentAdded missing "Colors", Documented the code + Cleanup. (diff)
downloadcuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.gz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.bz2
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.lz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.xz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.zst
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.zip
Diffstat (limited to 'Tools/BiomeVisualiser/BiomeSource.h')
-rw-r--r--Tools/BiomeVisualiser/BiomeSource.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Tools/BiomeVisualiser/BiomeSource.h b/Tools/BiomeVisualiser/BiomeSource.h
new file mode 100644
index 000000000..e09242d04
--- /dev/null
+++ b/Tools/BiomeVisualiser/BiomeSource.h
@@ -0,0 +1,37 @@
+
+// BiomeSource.h
+
+// Declares the cBiomeSource abstract class used as an interface for getting biomes from any source
+
+#pragma once
+
+
+
+
+
+#include "ChunkDef.h"
+
+
+
+
+
+class cBiomeSource abstract
+{
+public:
+ enum eAvailability
+ {
+ baNow, // Data returned now
+ baLater, // Data not returned, but will be available later, try again after a while
+ baNever, // Data not returned, will not be available at all
+ } ;
+
+ /// Fills a_Biomes with the biomes for the chunk specified
+ virtual eAvailability GetBiome(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_Biomes) = 0;
+
+ /// Used to inform the source about the view area that will be queried in the near future.
+ virtual void HintViewArea(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ) = 0;
+} ;
+
+
+
+