From 14763ed3c68bcf2a21e2494bc0d8920cc0ac1f62 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 22 Jan 2013 06:49:14 +0000 Subject: Added new statistics module to AnvilStats - cHeightMap. This paints the heightmap of each region file into a separate BMP file. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1163 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- AnvilStats/Callback.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'AnvilStats/Callback.h') diff --git a/AnvilStats/Callback.h b/AnvilStats/Callback.h index 52d2e27eb..92d394d0e 100644 --- a/AnvilStats/Callback.h +++ b/AnvilStats/Callback.h @@ -56,7 +56,10 @@ public: virtual bool OnBiomes(const unsigned char * a_BiomeData) { return true; } - virtual bool OnHeightMap(const int * a_HeightMap) { return true; } + /** Called when a heightmap for the chunk is read from the file. + Note that the heightmap is given in big-endian ints, so if you want it, you need to ntohl() it first! + */ + virtual bool OnHeightMap(const int * a_HeightMapBE) { return true; } /** If there is data for the section, this callback is called; otherwise OnEmptySection() is called instead. All OnSection() callbacks are called first, and only then all the remaining sections are reported in OnEmptySection(). @@ -75,6 +78,10 @@ public: */ virtual bool OnEmptySection(unsigned char a_Y) { return false; } + /** Called after all sections have been processed via either OnSection() or OnEmptySection(). + */ + virtual bool OnSectionsFinished(void) { return true; } + /** Called for each entity in the chunk. Common parameters are parsed from the NBT. The callback may parse any other param from the a_NBT and a_NBTTag parameters. -- cgit v1.2.3