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:
parent
09da6e7a6e
commit
9eb9541060
@ -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:
|
// To avoid tolua treating Byte as a class, and avoid the need to $cfile entire Globals.h:
|
||||||
typedef unsigned char Byte;
|
typedef unsigned char Byte;
|
||||||
|
|
||||||
|
@ -3677,6 +3677,8 @@ void ManualBindings::Bind(lua_State * tolua_S)
|
|||||||
tolua_cclass(tolua_S, "cCryptoHash", "cCryptoHash", "", nullptr);
|
tolua_cclass(tolua_S, "cCryptoHash", "cCryptoHash", "", nullptr);
|
||||||
tolua_usertype(tolua_S, "cStringCompression");
|
tolua_usertype(tolua_S, "cStringCompression");
|
||||||
tolua_cclass(tolua_S, "cStringCompression", "cStringCompression", "", nullptr);
|
tolua_cclass(tolua_S, "cStringCompression", "cStringCompression", "", nullptr);
|
||||||
|
tolua_usertype(tolua_S, "cLineBlockTracer");
|
||||||
|
tolua_cclass(tolua_S, "cLineBlockTracer", "cLineBlockTracer", "", nullptr);
|
||||||
|
|
||||||
// Globals:
|
// Globals:
|
||||||
tolua_function(tolua_S, "Clamp", tolua_Clamp);
|
tolua_function(tolua_S, "Clamp", tolua_Clamp);
|
||||||
|
Loading…
Reference in New Issue
Block a user