Merge pull request #1568 from mc-server/TypedBlocktypes
Added type to block type enum.
This commit is contained in:
commit
cede90a231
@ -1,7 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// The following hackery is to allow typed C++ enum for C++ code, yet have ToLua pocess the values.
|
||||||
|
// ToLua doesn't understand typed enums, so we use preprocessor to hide it from ToLua
|
||||||
|
|
||||||
|
enum ENUM_BLOCK_ID : BLOCKTYPE
|
||||||
|
#if 0
|
||||||
|
enum ENUM_BLOCK_ID // tolua_export
|
||||||
|
#endif
|
||||||
// tolua_begin
|
// tolua_begin
|
||||||
enum ENUM_BLOCK_ID
|
|
||||||
{
|
{
|
||||||
E_BLOCK_AIR = 0,
|
E_BLOCK_AIR = 0,
|
||||||
E_BLOCK_STONE = 1,
|
E_BLOCK_STONE = 1,
|
||||||
@ -221,6 +227,10 @@ enum ENUM_BLOCK_ID
|
|||||||
};
|
};
|
||||||
// tolua_end
|
// tolua_end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// tolua_begin
|
// tolua_begin
|
||||||
enum ENUM_ITEM_ID
|
enum ENUM_ITEM_ID
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user