diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-10 17:07:46 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-10 17:07:46 +0100 |
commit | 0cce0478d846114f49c4b8fe201aee7a1bb06b22 (patch) | |
tree | bb0bce87ded48eccd1bb913153b7e4f935462326 /src/BlockArea.cpp | |
parent | Merge pull request #770 from xdot/master (diff) | |
download | cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.gz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.bz2 cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.lz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.xz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.zst cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.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..986b2ee25 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_Offset(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::SetOffset(int a_OffsetX, int a_OffsetY, int a_OffsetZ) +{ + m_Offset.Set(a_OffsetX, a_OffsetY, a_OffsetZ); +} + + + + + +void cBlockArea::SetOffset(Vector3i a_Offset) +{ + m_Offset.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; |