From 38b219de625c6c334b1b900c911886f5469a1720 Mon Sep 17 00:00:00 2001 From: faketruth Date: Fri, 16 Mar 2012 15:48:40 +0000 Subject: Exposed a function to Lua to get a block's sky light value git-svn-id: http://mc-server.googlecode.com/svn/trunk@416 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index c2f3d3fcf..56c63502b 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -49,7 +49,7 @@ class cWorld //tolua_export { //tolua_export public: - OBSOLETE static cWorld* GetWorld(); //tolua_export + OBSOLETE static cWorld* GetWorld(); // Return time in seconds inline static float GetTime() //tolua_export @@ -187,6 +187,7 @@ public: char GetBlockMeta( const Vector3i & a_Pos ) { return GetBlockMeta( a_Pos.x, a_Pos.y, a_Pos.z ); } //tolua_export void SetBlockMeta( int a_X, int a_Y, int a_Z, char a_MetaData ); //tolua_export void SetBlockMeta( const Vector3i & a_Pos, char a_MetaData ) { SetBlockMeta( a_Pos.x, a_Pos.y, a_Pos.z, a_MetaData ); } //tolua_export + char GetBlockSkyLight( int a_X, int a_Y, int a_Z ); //tolua_export bool DigBlock( int a_X, int a_Y, int a_Z, cItem & a_PickupItem ); //tolua_export void SendBlockTo( int a_X, int a_Y, int a_Z, cPlayer* a_Player ); //tolua_export -- cgit v1.2.3