From 4e44c4b33a35fcaa22d26ef1b5fc82275ef6216d Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Thu, 9 May 2013 14:32:27 +0000 Subject: function SpawnItemPickups is now exported to Lua. Lua is able to create a Items object. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1463 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/World.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/World.h') diff --git a/source/World.h b/source/World.h index c3aa0c25c..8f096fa38 100644 --- a/source/World.h +++ b/source/World.h @@ -301,11 +301,17 @@ public: bool WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes); /// Spawns item pickups for each item in the list. May compress pickups if too many entities: + + // tolua_begin void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_FlyAwaySpeed = 1.0); + // tolua_end /// Spawns item pickups for each item in the list. May compress pickups if too many entities. All pickups get the speed specified: - void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_SpeedX, double a_SpeedY, double a_SpeedZ); + // tolua_begin + void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_SpeedX, double a_SpeedY, double a_SpeedZ); + // tolua_end + /// Replaces world blocks with a_Blocks, if they are of type a_FilterBlockType void ReplaceBlocks(const sSetBlockVector & a_Blocks, BLOCKTYPE a_FilterBlockType); -- cgit v1.2.3