diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-12 18:12:13 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-12 18:12:13 +0100 |
commit | d904e89712ee87b4b2bb73c6568f230fff15933a (patch) | |
tree | 50b4530dde0a80d1271c3bc1dab770f1f69fc7cd /src/BlockArea.cpp | |
parent | Added macros support to tools (diff) | |
parent | Fixed printf format compatabilty (diff) | |
download | cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar.gz cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar.bz2 cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar.lz cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar.xz cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.tar.zst cuberite-d904e89712ee87b4b2bb73c6568f230fff15933a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockArea.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp index d07ef747a..406e18a3b 100644 --- a/src/BlockArea.cpp +++ b/src/BlockArea.cpp @@ -168,6 +168,7 @@ cBlockArea::cBlockArea(void) : m_SizeX(0), m_SizeY(0), m_SizeZ(0), + m_WEOffset(0, 0, 0), m_BlockTypes(NULL), m_BlockMetas(NULL), m_BlockLight(NULL), @@ -254,6 +255,24 @@ void cBlockArea::Create(int a_SizeX, int a_SizeY, int a_SizeZ, int a_DataTypes) +void cBlockArea::SetWEOffset(int a_OffsetX, int a_OffsetY, int a_OffsetZ) +{ + m_WEOffset.Set(a_OffsetX, a_OffsetY, a_OffsetZ); +} + + + + + +void cBlockArea::SetWEOffset(const Vector3i & a_Offset) +{ + m_WEOffset.Set(a_Offset.x, a_Offset.y, a_Offset.z); +} + + + + + void cBlockArea::SetOrigin(int a_OriginX, int a_OriginY, int a_OriginZ) { m_OriginX = a_OriginX; |