summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-01 15:20:30 +0100
committerMattes D <github@xoft.cz>2014-03-01 15:20:30 +0100
commit80b0496bff3d8b8c65fd79a183a665d7cad396c8 (patch)
tree535474f8e8eb226546a4ad921ab76c7ca340b226 /src/Bindings
parentMerge pull request #737 from mc-server/InfoDump_SourceLocation (diff)
parentAPIDump: Fixed cScoreboard enums (diff)
downloadcuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar.gz
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar.bz2
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar.lz
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar.xz
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.tar.zst
cuberite-80b0496bff3d8b8c65fd79a183a665d7cad396c8.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/AllToLua.pkg1
-rw-r--r--src/Bindings/ManualBindings.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Bindings/AllToLua.pkg b/src/Bindings/AllToLua.pkg
index 6537437cd..1a2140771 100644
--- a/src/Bindings/AllToLua.pkg
+++ b/src/Bindings/AllToLua.pkg
@@ -75,6 +75,7 @@ $cfile "../Mobs/Monster.h"
$cfile "../CompositeChat.h"
$cfile "../Map.h"
$cfile "../MapManager.h"
+$cfile "../Scoreboard.h"
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 461186d3b..fcdd728be 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -2583,6 +2583,11 @@ void ManualBindings::Bind(lua_State * tolua_S)
tolua_beginmodule(tolua_S, "cMapManager");
tolua_function(tolua_S, "DoWithMap", tolua_DoWithID<cMapManager, cMap, &cMapManager::DoWithMap>);
tolua_endmodule(tolua_S);
+
+ tolua_beginmodule(tolua_S, "cScoreboard");
+ tolua_function(tolua_S, "ForEachObjective", tolua_ForEach<cScoreboard, cObjective, &cScoreboard::ForEachObjective>);
+ tolua_function(tolua_S, "ForEachTeam", tolua_ForEach<cScoreboard, cTeam, &cScoreboard::ForEachTeam>);
+ tolua_endmodule(tolua_S);
tolua_beginmodule(tolua_S, "cPlugin");
tolua_function(tolua_S, "Call", tolua_cPlugin_Call);