diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 17:47:26 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 17:47:26 +0100 |
commit | 9dfa0f1f15c413540e932a04e94419a8a3b37dcf (patch) | |
tree | c111ee0ad961aa365b2c681e486dae4ce7e09421 /source/Bindings.cpp | |
parent | More cFile cleanup; removed old format writing for block entities (diff) | |
download | cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar.gz cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar.bz2 cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar.lz cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar.xz cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.tar.zst cuberite-9dfa0f1f15c413540e932a04e94419a8a3b37dcf.zip |
Diffstat (limited to 'source/Bindings.cpp')
-rw-r--r-- | source/Bindings.cpp | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 51342db62..8d484fa1f 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,10 +1,8 @@ /*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 01/27/12 00:53:11.
+** Generated automatically by tolua++-1.0.92 on 01/30/12 17:26:14.
*/
-#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
-
#ifndef __cplusplus
#include "stdlib.h"
#endif
@@ -15,6 +13,7 @@ /* Exported function */
TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S);
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "tolua_base.h"
#include "cTorch.h"
#include "cStairs.h"
@@ -5899,6 +5898,37 @@ static int tolua_AllToLua_cPlayer_MoveToWorld00(lua_State* tolua_S) }
#endif //#ifndef TOLUA_DISABLE
+/* method: LoadPermissionsFromDisk of class cPlayer */
+#ifndef TOLUA_DISABLE_tolua_AllToLua_cPlayer_LoadPermissionsFromDisk00
+static int tolua_AllToLua_cPlayer_LoadPermissionsFromDisk00(lua_State* tolua_S)
+{
+#ifndef TOLUA_RELEASE
+ tolua_Error tolua_err;
+ if (
+ !tolua_isusertype(tolua_S,1,"cPlayer",0,&tolua_err) ||
+ !tolua_isnoobj(tolua_S,2,&tolua_err)
+ )
+ goto tolua_lerror;
+ else
+#endif
+ {
+ cPlayer* self = (cPlayer*) tolua_tousertype(tolua_S,1,0);
+#ifndef TOLUA_RELEASE
+ if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LoadPermissionsFromDisk'", NULL);
+#endif
+ {
+ self->LoadPermissionsFromDisk();
+ }
+ }
+ return 0;
+#ifndef TOLUA_RELEASE
+ tolua_lerror:
+ tolua_error(tolua_S,"#ferror in function 'LoadPermissionsFromDisk'.",&tolua_err);
+ return 0;
+#endif
+}
+#endif //#ifndef TOLUA_DISABLE
+
class Lua__cPlayer : public cPlayer, public ToluaBase {
public:
void Initialize( cWorld* a_World) {
@@ -16785,6 +16815,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_function(tolua_S,"SetVisible",tolua_AllToLua_cPlayer_SetVisible00);
tolua_function(tolua_S,"IsVisible",tolua_AllToLua_cPlayer_IsVisible00);
tolua_function(tolua_S,"MoveToWorld",tolua_AllToLua_cPlayer_MoveToWorld00);
+ tolua_function(tolua_S,"LoadPermissionsFromDisk",tolua_AllToLua_cPlayer_LoadPermissionsFromDisk00);
tolua_endmodule(tolua_S);
tolua_cclass(tolua_S,"Lua__cPlayer","Lua__cPlayer","cPlayer",NULL);
tolua_beginmodule(tolua_S,"Lua__cPlayer");
|