diff options
Diffstat (limited to 'AnvilStats/AnvilStats.cpp')
-rw-r--r-- | AnvilStats/AnvilStats.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/AnvilStats/AnvilStats.cpp b/AnvilStats/AnvilStats.cpp index a72548a5d..ef4d33ca5 100644 --- a/AnvilStats/AnvilStats.cpp +++ b/AnvilStats/AnvilStats.cpp @@ -8,6 +8,7 @@ #include "Statistics.h"
#include "BiomeMap.h"
#include "HeightMap.h"
+#include "ChunkExtract.h"
@@ -22,6 +23,7 @@ int main(int argc, char * argv[]) LOG(" 0 - statistics");
LOG(" 1 - biome map");
LOG(" 2 - height map");
+ LOG(" 3 - extract chunks");
LOG("\nNo method number present, aborting.");
return -1;
}
@@ -39,9 +41,10 @@ int main(int argc, char * argv[]) cCallbackFactory * Factory = NULL;
switch (atol(argv[1]))
{
- case 0: Factory = new cStatisticsFactory; break;
- case 1: Factory = new cBiomeMapFactory; break;
- case 2: Factory = new cHeightMapFactory; break;
+ case 0: Factory = new cStatisticsFactory; break;
+ case 1: Factory = new cBiomeMapFactory; break;
+ case 2: Factory = new cHeightMapFactory; break;
+ case 3: Factory = new cChunkExtractFactory(WorldFolder); break;
default:
{
LOG("Unknown method \"%s\", aborting.", argv[1]);
|