2011-10-03 11:41:19 -07:00
# pragma once
# ifndef _WIN32
2012-06-06 13:18:50 -07:00
# include "BlockID.h"
2011-10-03 11:41:19 -07:00
# else
2012-06-06 13:18:50 -07:00
enum ENUM_ITEM_ID ;
2011-10-03 11:41:19 -07:00
# endif
2012-06-06 13:18:50 -07:00
# include "cItem.h"
class cBlockToPickup // tolua_export
{ // tolua_export
2011-10-03 11:41:19 -07:00
public :
2012-06-06 13:18:50 -07:00
/// For a given block and tool, returns the list of drops generated
2012-06-13 10:37:23 -07:00
static void ToPickup ( BLOCKTYPE a_BlockID , NIBBLETYPE a_BlockMeta , const cItem & a_UsedItem , cItems & a_Drops ) ; // tolua_export
2012-06-06 13:18:50 -07:00
/// Returns true if the tool used for the block is the right one for the job. cClientHandle uses this to determine whether to decrease tool durability twice as much
static bool IsRightTool ( BLOCKTYPE a_BlockType , NIBBLETYPE a_BlockMeta , ENUM_ITEM_ID a_UsedTool ) ; // tolua_export
} ; // tolua_export