From a4a418a679f1ac760a8763edd856f0178cfc6dde Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 25 May 2012 07:18:52 +0000 Subject: Merged the composable_generator branch into the trunk git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WSSAnvil.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/WSSAnvil.h') diff --git a/source/WSSAnvil.h b/source/WSSAnvil.h index 85b4fcaf1..c9f08aeee 100644 --- a/source/WSSAnvil.h +++ b/source/WSSAnvil.h @@ -35,6 +35,7 @@ enum class cNBTTag; class cNBTList; class cNBTCompound; +class cNBTByteArray; @@ -81,6 +82,9 @@ protected: /// Finds a free location large enough to hold a_Data. Gets a hint of the chunk coords, places the data there if it fits. Returns the sector number. unsigned FindFreeLocation(int a_LocalX, int a_LocalZ, const AString & a_Data); + + /// Opens a MCA file either for a Read operation (fails if doesn't exist) or for a Write operation (creates new if not found) + bool OpenFile(bool a_IsForReading); } ; typedef std::list cMCAFiles; @@ -105,6 +109,9 @@ protected: /// Saves the chunk into NBT data using a_Writer; returns true on success bool SaveChunkToNBT(const cChunkCoords & a_Chunk, cFastNBTWriter & a_Writer); + /// Loads the chunk's biome map; returns a_BiomeMap if biomes present and valid, NULL otherwise + cChunkDef::BiomeMap * LoadBiomeMapFromNBT(cChunkDef::BiomeMap * a_BiomeMap, const cParsedNBT & a_NBT, int a_TagIdx); + /// Loads the chunk's entities from NBT data (a_Tag is the Level\\Entities list tag; may be -1) void LoadEntitiesFromNBT(cEntityList & a_Entitites, const cParsedNBT & a_NBT, int a_Tag); -- cgit v1.2.3