summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-15 17:29:20 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-15 17:29:20 +0200
commita67760f7c98a9e57a61ee9c61a2175a33ebcb91b (patch)
treee4079bd37abb06465a5bce59d3af397ec2be2b2a /source/World.h
parentFixed The MagicCarpet plugin (diff)
downloadcuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar.gz
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar.bz2
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar.lz
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar.xz
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.tar.zst
cuberite-a67760f7c98a9e57a61ee9c61a2175a33ebcb91b.zip
Diffstat (limited to 'source/World.h')
-rw-r--r--source/World.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/World.h b/source/World.h
index 21869bd41..fe339ea61 100644
--- a/source/World.h
+++ b/source/World.h
@@ -66,6 +66,19 @@ public:
dimEnd = 1,
} ;
+ // tolua_end
+
+ /// A simple RAII locker for the chunkmap - locks the chunkmap in its constructor, unlocks it in the destructor
+ class cLock :
+ public cCSLock
+ {
+ typedef cCSLock super;
+ public:
+ cLock(cWorld & a_World);
+ } ;
+
+ // tolua_begin
+
static const char * GetClassStatic(void)
{
return "cWorld";