diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-30 20:20:38 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-30 20:20:38 +0200 |
commit | f8328346b522bf9e03f299b7b179d707cb584e2f (patch) | |
tree | 78a84fd149ff64a360fc6e1c99058096a79e641a /source/cWorld.h | |
parent | Seeds can now be planted and they grow (albeit too quickly and too non-uniformly, need to fix blocktick selection) (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/cWorld.h | 5 |
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);
|