From 3cb643c9cbb1bc34297a3a643f0c9a4d4fc0e98d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 2 Jul 2012 16:38:30 +0000 Subject: BLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypes git-svn-id: http://mc-server.googlecode.com/svn/trunk@642 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkDef.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/ChunkDef.h') diff --git a/source/ChunkDef.h b/source/ChunkDef.h index a9a10335c..af96c52b7 100644 --- a/source/ChunkDef.h +++ b/source/ChunkDef.h @@ -41,9 +41,7 @@ typedef std::list cBlockEntityList; -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// NOTE: when changing the BLOCKTYPE or NIBBLETYPE types, you need to change them both in this file and in AllToLua.pkg -// (for some reason, just including the ChunkDef.h file in AllToLua.pkg doesn't work in ToLua) +// tolua_begin /// The datatype used by blockdata typedef char BLOCKTYPE; @@ -54,12 +52,14 @@ typedef unsigned char NIBBLETYPE; /// The type used by the heightmap typedef unsigned char HEIGHTTYPE; -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// tolua_end + +// tolua_begin /** Biome IDs The first batch corresponds to the clientside biomes, used by MineCraft. BiomeIDs over 255 are used by MCServer internally and are translated to MC biomes before sending them to client @@ -97,6 +97,7 @@ enum EMCSBiome biMaxBiome = biNumBiomes - 1, // The maximum biome value } ; +// tolua_end -- cgit v1.2.3