From 3165458c5993a447556efbbefc5aeb4352353347 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 28 Sep 2012 20:17:29 +0000 Subject: AnvilStats: complete per-biome blocktype statistics git-svn-id: http://mc-server.googlecode.com/svn/trunk@897 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- AnvilStats/Callback.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AnvilStats/Callback.h') diff --git a/AnvilStats/Callback.h b/AnvilStats/Callback.h index b18f4947a..66d6bcfae 100644 --- a/AnvilStats/Callback.h +++ b/AnvilStats/Callback.h @@ -51,6 +51,9 @@ public: virtual bool OnHeightMap(const int * a_HeightMap) { 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(). + */ virtual bool OnSection( unsigned char a_Y, const BLOCKTYPE * a_BlockTypes, @@ -60,6 +63,11 @@ public: const NIBBLETYPE * a_BlockSkyLight ) { return true; } + /** If there is no data for a section, this callback is called; otherwise OnSection() is called instead. + OnEmptySection() callbacks are called after all OnSection() callbacks. + */ + virtual bool OnEmptySection(unsigned char a_Y) { return false; } + // TODO: entities, tile-entities, tile-ticks } ; -- cgit v1.2.3