Exported cBlockInfo
This commit is contained in:
@@ -26,6 +26,7 @@ $cfile "WebPlugin.h"
|
||||
$cfile "LuaWindow.h"
|
||||
|
||||
$cfile "../BlockID.h"
|
||||
$cfile "../BlockInfo.h"
|
||||
$cfile "../StringUtils.h"
|
||||
$cfile "../Defines.h"
|
||||
$cfile "../ChatColor.h"
|
||||
|
||||
+8
-3
@@ -5,16 +5,19 @@
|
||||
|
||||
|
||||
|
||||
|
||||
// tolua_begin
|
||||
class cBlockInfo
|
||||
{
|
||||
public:
|
||||
// tolua_end
|
||||
|
||||
cBlockInfo();
|
||||
|
||||
/** (Re-)Initializes the internal BlockInfo structures. */
|
||||
static void Initialize(void);
|
||||
|
||||
// tolua_begin
|
||||
|
||||
/** Returns the associated BlockInfo structure. */
|
||||
static cBlockInfo & GetById(unsigned int a_ID);
|
||||
|
||||
@@ -43,7 +46,7 @@ public:
|
||||
/** Is this block solid (player cannot walk through)? */
|
||||
bool m_IsSolid;
|
||||
|
||||
/** Does this block fully occupy it's voxel - is it a 'full' block? */
|
||||
/** Does this block fully occupy its voxel - is it a 'full' block? */
|
||||
bool m_FullyOccupiesVoxel;
|
||||
|
||||
|
||||
@@ -57,6 +60,8 @@ public:
|
||||
inline static bool IsSolid (unsigned int a_ID) { return GetById(a_ID).m_IsSolid; }
|
||||
inline static bool FullyOccupiesVoxel (unsigned int a_ID) { return GetById(a_ID).m_FullyOccupiesVoxel; }
|
||||
|
||||
// tolua_end
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -64,7 +69,7 @@ protected:
|
||||
static cBlockInfo ms_Info[256];
|
||||
|
||||
|
||||
};
|
||||
}; // tolua_export
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user