summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-30 20:20:38 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-30 20:20:38 +0200
commitf8328346b522bf9e03f299b7b179d707cb584e2f (patch)
tree78a84fd149ff64a360fc6e1c99058096a79e641a /source/cWorld.h
parentSeeds can now be planted and they grow (albeit too quickly and too non-uniformly, need to fix blocktick selection) (diff)
downloadcuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar.gz
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar.bz2
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar.lz
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar.xz
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.tar.zst
cuberite-f8328346b522bf9e03f299b7b179d707cb584e2f.zip
Diffstat (limited to 'source/cWorld.h')
-rw-r--r--source/cWorld.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index 5e448d79b..bd5e741cf 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -275,6 +275,11 @@ public:
/// Returns the number of chunks loaded and dirty, and in the lighting queue
void GetChunkStats(int & a_NumValid, int & a_NumDirty, int & a_NumInLightingQueue);
+ // Various queues length queries (cannot be const, they lock their CS):
+ inline int GetGeneratorQueueLength (void) { return m_Generator.GetQueueLength(); } // tolua_export
+ inline int GetLightingQueueLength (void) { return m_Lighting.GetQueueLength(); } // tolua_export
+ inline int GetStorageLoadQueueLength(void) { return m_Storage.GetLoadQueueLength(); } // tolua_export
+ inline int GetStorageSaveQueueLength(void) { return m_Storage.GetSaveQueueLength(); } // tolua_export
void Tick(float a_Dt);