summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Item.h2
-rw-r--r--source/World.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/source/Item.h b/source/Item.h
index b80eb132b..570182bae 100644
--- a/source/Item.h
+++ b/source/Item.h
@@ -99,8 +99,10 @@ class cItems // tolua_export
{ // tolua_export
public:
// tolua_begin
+
/// Need a Lua-accessible constructor
cItems(void) {}
+
cItem & Get (int a_Idx) {return at(a_Idx); }
void Set (int a_Idx, const cItem & a_Item) {at(a_Idx) = a_Item; }
void Add (const cItem & a_Item) {push_back(a_Item); }
diff --git a/source/World.h b/source/World.h
index 8f096fa38..4f55be48a 100644
--- a/source/World.h
+++ b/source/World.h
@@ -300,16 +300,14 @@ 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
+
+ /// Spawns item pickups for each item in the list. May compress pickups if too many entities:
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:
-
- // 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