summaryrefslogtreecommitdiffstats
path: root/source/BlockArea.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/BlockArea.h')
-rw-r--r--source/BlockArea.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/BlockArea.h b/source/BlockArea.h
index 49505f945..5abdab3bb 100644
--- a/source/BlockArea.h
+++ b/source/BlockArea.h
@@ -76,6 +76,15 @@ public:
/// Returns the datatypes that are stored in the object (bitmask of baXXX values)
int GetDataTypes(void) const;
+
+ // tolua_end
+
+ // Clients can use these for faster access to all blocktypes. Be careful though!
+ /// Returns the internal pointer to the block types
+ BLOCKTYPE * GetBlockTypes(void) { return m_BlockTypes; }
+ int GetBlockCount(void) const { return m_SizeX * m_SizeY * m_SizeZ; }
+
+ // tolua_begin
protected: