From 95610de5f3df7ad512fcde537574670b566fb313 Mon Sep 17 00:00:00 2001 From: Ahmed Samy Date: Sat, 7 Dec 2013 02:00:31 +0200 Subject: [PATCH] bind set{Width,Height} of g_map to lua --- src/client/luafunctions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/luafunctions.cpp b/src/client/luafunctions.cpp index 031a19de..67ad7dfb 100644 --- a/src/client/luafunctions.cpp +++ b/src/client/luafunctions.cpp @@ -127,6 +127,8 @@ void Client::registerLuaFunctions() g_lua.bindSingletonFunction("g_map", "getSpawnFile", &Map::getSpawnFile, &g_map); g_lua.bindSingletonFunction("g_map", "setSpawnFile", &Map::setSpawnFile, &g_map); g_lua.bindSingletonFunction("g_map", "createTile", &Map::createTile, &g_map); + g_lua.bindSingletonFunction("g_map", "setWidth", &Map::setWidth, &g_map); + g_lua.bindSingletonFunction("g_map", "setHeight", &Map::setHeight, &g_map); g_lua.bindSingletonFunction("g_map", "getSize", &Map::getSize, &g_map); g_lua.bindSingletonFunction("g_map", "setDescription", &Map::setDescription, &g_map); g_lua.bindSingletonFunction("g_map", "getDescriptions", &Map::getDescriptions, &g_map);