diff options
author | andrew <xdotftw@gmail.com> | 2014-02-22 12:59:49 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-22 12:59:49 +0100 |
commit | 866fde81ca50f223c88af77d0092a2f4e60f7ce9 (patch) | |
tree | f6fadfe5a21d74bdf26d2be22eecd8e034b85393 /src/Map.h | |
parent | Semi-working implementation of cMap::UpdatePixel (diff) | |
download | cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar.gz cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar.bz2 cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar.lz cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar.xz cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.tar.zst cuberite-866fde81ca50f223c88af77d0092a2f4e60f7ce9.zip |
Diffstat (limited to 'src/Map.h')
-rw-r--r-- | src/Map.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -155,6 +155,10 @@ public: void SetScale(unsigned int a_Scale); + bool SetPixel(unsigned int a_X, unsigned int a_Z, ColorID a_Data); + + ColorID GetPixel(unsigned int a_X, unsigned int a_Z); + unsigned int GetWidth (void) const { return m_Width; } unsigned int GetHeight(void) const { return m_Height; } @@ -171,14 +175,16 @@ public: eDimension GetDimension(void) const; - const cColorList & GetData(void) const { return m_Data; } - unsigned int GetNumPixels(void) const; unsigned int GetPixelWidth(void) const; // tolua_end + unsigned int GetNumDecorators(void) const; + + const cColorList & GetData(void) const { return m_Data; } + protected: @@ -247,7 +253,7 @@ private: friend class cMapSerializer; -}; +}; // tolua_export |