diff options
author | Mattes D <github@xoft.cz> | 2015-03-19 12:34:16 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-19 12:34:16 +0100 |
commit | 9eb9541060dbc5b0939c3f200ce3d2381d503d26 (patch) | |
tree | 579fdcc4fefb98e8073a8438cf2d072a58492344 /src | |
parent | AllToLua: Fixed the parse order for bindings generation. (diff) | |
download | cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar.gz cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar.bz2 cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar.lz cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar.xz cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.tar.zst cuberite-9eb9541060dbc5b0939c3f200ce3d2381d503d26.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Bindings/AllToLua.pkg | 8 | ||||
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/Bindings/AllToLua.pkg b/src/Bindings/AllToLua.pkg index bc0c9300f..cea86f432 100644 --- a/src/Bindings/AllToLua.pkg +++ b/src/Bindings/AllToLua.pkg @@ -116,14 +116,6 @@ $cfile "../BlockEntities/FlowerPotEntity.h" -// Need to declare this class so that the usertype is properly registered in Bindings.cpp - -// it seems impossible to register a usertype in ManualBindings.cpp -class cLineBlockTracer; - - - - - // To avoid tolua treating Byte as a class, and avoid the need to $cfile entire Globals.h: typedef unsigned char Byte; diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index 40ac12b41..e93b11eaa 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -3677,6 +3677,8 @@ void ManualBindings::Bind(lua_State * tolua_S) tolua_cclass(tolua_S, "cCryptoHash", "cCryptoHash", "", nullptr); tolua_usertype(tolua_S, "cStringCompression"); tolua_cclass(tolua_S, "cStringCompression", "cStringCompression", "", nullptr); + tolua_usertype(tolua_S, "cLineBlockTracer"); + tolua_cclass(tolua_S, "cLineBlockTracer", "cLineBlockTracer", "", nullptr); // Globals: tolua_function(tolua_S, "Clamp", tolua_Clamp); |