Added cBlockArea:CopyTo() and :CopyFrom(), so now block areas can be duplicated easily.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1199 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-02-07 10:45:30 +00:00
parent ed47a8e409
commit fe7e07d69d
5 changed files with 127 additions and 5 deletions
+6
View File
@@ -56,6 +56,12 @@ public:
/// Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all
bool Write(cWorld * a_World, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes = baTypes | baMetas);
/// Copies this object's contents into the specified BlockArea.
void CopyTo(cBlockArea & a_Into) const;
/// Copies the contents from the specified BlockArea into this object.
void CopyFrom(const cBlockArea & a_From);
/// For testing purposes only, dumps the area into a file.
void DumpToRawFile(const AString & a_FileName);