diff options
author | archshift <admin@archshift.com> | 2014-07-12 02:37:28 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-12 02:37:28 +0200 |
commit | 83c69134c079ac204c2fda1f375987b9651510d6 (patch) | |
tree | 73e02b553e6f3218545d543f587ab25eb918c462 /src/World.h | |
parent | For now, removed creator member from Entity Effect for pointer safety (diff) | |
parent | Simplified the player data loading. (diff) | |
download | cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar.gz cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar.bz2 cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar.lz cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar.xz cuberite-83c69134c079ac204c2fda1f375987b9651510d6.tar.zst cuberite-83c69134c079ac204c2fda1f375987b9651510d6.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index 476a49739..f903ff5be 100644 --- a/src/World.h +++ b/src/World.h @@ -772,6 +772,13 @@ public: /** Get the current darkness level based on the time */ NIBBLETYPE GetSkyDarkness() { return m_SkyDarkness; } + + /** Increments (a_AlwaysTicked == true) or decrements (false) the m_AlwaysTicked counter for the specified chunk. + If the m_AlwaysTicked counter is greater than zero, the chunk is ticked in the tick-thread regardless of + whether it has any clients or not. + This function allows nesting and task-concurrency (multiple separate tasks can request ticking and as long + as at least one requests is active the chunk will be ticked). */ + void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked = true); // tolua_export private: |