summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-10 18:18:32 +0200
committermadmaxoft <github@xoft.cz>2014-07-10 18:18:32 +0200
commit9e22f46b15d4c92bfbfdd5fb23d7530348f1d534 (patch)
tree8a5e25dcc2797a066e7d01f2f3d049095062b71e /src/World.h
parentMerge pull request #1159 from mc-server/VectorFloorFix (diff)
downloadcuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.gz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.bz2
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.lz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.xz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.zst
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.zip
Diffstat (limited to '')
-rw-r--r--src/World.h7
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: