summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-16 19:56:08 +0100
committermadmaxoft <github@xoft.cz>2014-01-16 19:56:08 +0100
commit343136a2aeb9174309df8113c660e706d5cd4489 (patch)
tree067e8b77b23e91e2f3e109913860075ad2fec6b1 /src/Bindings
parentMerge pull request #548 from worktycho/documention (diff)
downloadcuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar.gz
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar.bz2
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar.lz
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar.xz
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.tar.zst
cuberite-343136a2aeb9174309df8113c660e706d5cd4489.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index b12fa5f03..e0dd2888a 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -941,6 +941,10 @@ protected:
}
} ;
+
+
+
+
static int tolua_cWorld_QueueTask(lua_State * tolua_S)
{
// Binding for cWorld::QueueTask
@@ -976,6 +980,10 @@ static int tolua_cWorld_QueueTask(lua_State * tolua_S)
return 0;
}
+
+
+
+
class cLuaScheduledWorldTask :
public cWorld::cScheduledTask
{
@@ -999,6 +1007,9 @@ protected:
};
+
+
+
static int tolua_cWorld_ScheduleTask(lua_State * tolua_S)
{
// Binding for cWorld::ScheduleTask
@@ -1032,12 +1043,14 @@ static int tolua_cWorld_ScheduleTask(lua_State * tolua_S)
int Ticks = (int) tolua_tonumber (tolua_S, 3, 0);
- self->ScheduleTask(new cLuaScheduledWorldTask(*Plugin, FnRef,Ticks));
+ self->ScheduleTask(new cLuaScheduledWorldTask(*Plugin, FnRef, Ticks));
return 0;
}
+
+
static int tolua_cPluginManager_GetAllPlugins(lua_State * tolua_S)
{
cPluginManager * self = (cPluginManager *)tolua_tousertype(tolua_S, 1, 0);
@@ -2272,6 +2285,7 @@ void ManualBindings::Bind(lua_State * tolua_S)
tolua_function(tolua_S, "GetBlockTypeMeta", tolua_cWorld_GetBlockTypeMeta);
tolua_function(tolua_S, "GetSignLines", tolua_cWorld_GetSignLines);
tolua_function(tolua_S, "QueueTask", tolua_cWorld_QueueTask);
+ tolua_function(tolua_S, "ScheduleTask", tolua_cWorld_ScheduleTask);
tolua_function(tolua_S, "SetSignLines", tolua_cWorld_SetSignLines);
tolua_function(tolua_S, "TryGetHeight", tolua_cWorld_TryGetHeight);
tolua_function(tolua_S, "UpdateSign", tolua_cWorld_SetSignLines);