Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Utility class used to serialize maps. More...
#include <MapSerializer.h>
Public Member Functions | |
cMapSerializer (const AString &a_WorldName, cMap *a_Map) | |
bool | Load (void) |
Try to load the map. More... | |
bool | Save (void) |
Try to save the map. More... | |
Private Member Functions | |
bool | LoadMapFromNBT (const cParsedNBT &a_NBT) |
void | SaveMapToNBT (cFastNBTWriter &a_Writer) |
Private Attributes | |
cMap * | m_Map |
AString | m_Path |
Utility class used to serialize maps.
Definition at line 25 of file MapSerializer.h.
Definition at line 17 of file MapSerializer.cpp.
bool cMapSerializer::Load | ( | void | ) |
Try to load the map.
Definition at line 29 of file MapSerializer.cpp.
|
private |
Definition at line 90 of file MapSerializer.cpp.
bool cMapSerializer::Save | ( | void | ) |
Try to save the map.
Definition at line 47 of file MapSerializer.cpp.
|
private |
Definition at line 67 of file MapSerializer.cpp.
|
private |
Definition at line 44 of file MapSerializer.h.
|
private |
Definition at line 46 of file MapSerializer.h.