summaryrefslogtreecommitdiffstats
path: root/source/WSSCompact.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-24 12:14:34 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-24 12:14:34 +0100
commitb69ac328c06ca77fb4c692f15b0ecc5d4246ec72 (patch)
tree50fb81d24e7849bed22b1acf04cad62f9b514450 /source/WSSCompact.h
parentEncapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers) (diff)
downloadcuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.gz
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.bz2
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.lz
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.xz
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.tar.zst
cuberite-b69ac328c06ca77fb4c692f15b0ecc5d4246ec72.zip
Diffstat (limited to '')
-rw-r--r--source/WSSCompact.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/WSSCompact.h b/source/WSSCompact.h
index a50405d6d..cd753ce9c 100644
--- a/source/WSSCompact.h
+++ b/source/WSSCompact.h
@@ -22,7 +22,7 @@ class cWSSCompact :
public cWSSchema
{
public:
- cWSSCompact(cWSInterface * a_WSI) : cWSSchema(a_WSI) {}
+ cWSSCompact(cWorld * a_World) : cWSSchema(a_World) {}
virtual ~cWSSCompact();
protected:
@@ -42,7 +42,7 @@ protected:
bool SetChunkData(const cChunkCoords & a_Chunk, int a_UncompressedSize, const AString & a_Data);
bool EraseChunkData(const cChunkCoords & a_Chunk);
- bool SaveChunk(const cChunkCoords & a_Chunk, cWSInterface * a_WSI);
+ bool SaveChunk(const cChunkCoords & a_Chunk, cWorld * a_World);
int GetLayerX(void) const {return m_LayerX; }
int GetLayerZ(void) const {return m_LayerZ; }
@@ -68,7 +68,7 @@ protected:
char m_ChunkVersion;
char m_PakVersion;
- bool SaveChunkToData(const cChunkCoords & a_Chunk, cWSInterface * a_WSI); // Saves the chunk to m_DataContents, updates headers and m_NumDirty
+ bool SaveChunkToData(const cChunkCoords & a_Chunk, cWorld * a_World); // Saves the chunk to m_DataContents, updates headers and m_NumDirty
void SynchronizeFile(void); // Writes m_DataContents along with the headers to file, resets m_NumDirty
void UpdateChunk1To2(void); // Height from 128 to 256
@@ -93,9 +93,9 @@ protected:
bool EraseChunkData(const cChunkCoords & a_Chunk);
/// Loads the chunk from the data (no locking needed)
- bool LoadChunkFromData(const cChunkCoords & a_Chunk, int & a_UncompressedSize, const AString & a_Data, cWSInterface * a_WSI);
+ bool LoadChunkFromData(const cChunkCoords & a_Chunk, int & a_UncompressedSize, const AString & a_Data, cWorld * a_World);
- void LoadEntitiesFromJson(Json::Value & a_Value, cEntityList & a_Entities, cBlockEntityList & a_BlockEntities, cWSInterface * a_WSI);
+ void LoadEntitiesFromJson(Json::Value & a_Value, cEntityList & a_Entities, cBlockEntityList & a_BlockEntities, cWorld * a_World);
// cWSSchema overrides:
virtual bool LoadChunk(const cChunkCoords & a_Chunk) override;