summaryrefslogblamecommitdiffstats
path: root/src/Blocks/BlockPluginInterface.h
blob: 3a36c40b1b91f70d15d9ef3aaade549fc9f2e3ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10


            



                                                                                                        


                           

                                           

                                                                                                                                                                                 

#pragma once

/** This interface is used to decouple block handlers from the cPluginManager dependancy through cWorld.
The block handlers call this interface, which is then implemented by the specific classes that
the caller provides.
*/
class cBlockPluginInterface
{
public:
	virtual ~cBlockPluginInterface() {}
	
	virtual bool CallHookBlockToPickups(cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups) = 0;
};