aboutsummaryrefslogtreecommitdiff
path: root/src/lua
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-02-05 00:17:57 +0100
committersapier <Sapier at GMX dot net>2014-02-07 21:39:45 +0100
commitf4f98c9550325aa8178f99cd32ea8806669aa280 (patch)
tree1c87166f519eec565f56e51bc01f9477b144099f /src/lua
parent3670f5a37bc3f3eb9733a720e96318e676640185 (diff)
downloadminetest-f4f98c9550325aa8178f99cd32ea8806669aa280.tar.gz
minetest-f4f98c9550325aa8178f99cd32ea8806669aa280.tar.bz2
minetest-f4f98c9550325aa8178f99cd32ea8806669aa280.zip
Remove lots of dead code
Add check for datatype overflows use native datatype indices instead of fixed 16bit/32bit ones
Diffstat (limited to 'src/lua')
0 files changed, 0 insertions, 0 deletions
class="hl ppc">#define S_ITEM_H_ #include "cpp_api/s_base.h" #include "irr_v3d.h" struct PointedThing; struct ItemStack; class ServerActiveObject; struct ItemDefinition; class LuaItemStack; class ModApiItemMod; class InventoryList; struct InventoryLocation; class ScriptApiItem : virtual public ScriptApiBase { public: bool item_OnDrop(ItemStack &item, ServerActiveObject *dropper, v3f pos); bool item_OnPlace(ItemStack &item, ServerActiveObject *placer, const PointedThing &pointed); bool item_OnUse(ItemStack &item, ServerActiveObject *user, const PointedThing &pointed); bool item_OnCraft(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv); bool item_CraftPredict(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv); protected: friend class LuaItemStack; friend class ModApiItemMod; bool getItemCallback(const char *name, const char *callbackname); void pushPointedThing(const PointedThing& pointed); }; #endif /* S_ITEM_H_ */