diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-09 21:09:27 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-09 21:09:27 +0200 |
commit | 4ac29d4cc54090cde549e1b0cf2a445f16dbf93d (patch) | |
tree | 1004687f0b8156b54f05ec169a7b89636ab4bad4 | |
parent | Noise: Added an efficient 3D cubic noise generation (diff) | |
download | cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar.gz cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar.bz2 cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar.lz cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar.xz cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.tar.zst cuberite-4ac29d4cc54090cde549e1b0cf2a445f16dbf93d.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Item.h | 2 | ||||
-rw-r--r-- | source/World.h | 8 |
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 |