1
0

AllToLua: Removed an unneeded class declaration.

It's perfectly possible to declare a class in ManualBindings without the need for declaration in AllToLua.pkg.
This commit is contained in:
Mattes D 2015-03-19 12:34:16 +01:00
parent 09da6e7a6e
commit 9eb9541060
2 changed files with 2 additions and 8 deletions

View File

@ -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;

View File

@ -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);