12 #include "../BlockArea.h"
13 #include "../StringCompression.h"
std::basic_string_view< std::byte > ContiguousByteBufferView
std::basic_string< std::byte > ContiguousByteBuffer
Contains the result of a compression or extraction operation.
Parses and contains the parsed data Also implements data accessor functions for tree traversal and va...
static void SaveToSchematicFile(const cBlockArea &a_BlockArea, const std::string &a_FileName)
Saves the area into a .schematic file.
static void LoadFromSchematicString(cBlockArea &a_BlockArea, ContiguousByteBufferView a_SchematicData)
Loads an area from a string containing the .schematic file data.
static Compression::Result SaveToSchematicString(const cBlockArea &a_BlockArea)
Saves the area into a string containing the .schematic file data.
static void LoadFromSchematicFile(cBlockArea &a_BlockArea, const std::string &a_FileName)
Loads an area from a .schematic file.
static ContiguousByteBuffer SaveToSchematicNBT(const cBlockArea &a_BlockArea)
Saves the area into a NBT representation and returns the NBT data as a string.
static void LoadFromSchematicNBT(cBlockArea &a_BlockArea, const cParsedNBT &a_NBT)
Loads the area from a schematic file uncompressed and parsed into a NBT tree.