From cdd0eba1b5fdad85c22a2e50683904f85e8b1eb6 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 27 Aug 2013 08:57:35 +0200 Subject: Added g_BlockIsXXX[] arrays to the API. --- source/Defines.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/Defines.h') diff --git a/source/Defines.h b/source/Defines.h index 48a7cfb1e..6bc1a18f6 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -29,6 +29,16 @@ extern bool g_BlockTransparent[]; /// Is a block destroyed after a single hit? extern bool g_BlockOneHitDig[]; +/// Can a piston break this block? +extern bool g_BlockPistonBreakable[256]; + +/// Can this block hold snow atop? +extern bool g_BlockIsSnowable[256]; + +extern bool g_BlockRequiresSpecialTool[256]; + +extern bool g_BlockIsSolid[256]; + -- cgit v1.2.3