|
|
|
@ -76,8 +76,10 @@ void OTClient::registerLuaFunctions()
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "removeCreatureById", &Map::removeCreatureById, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "getSpectators", &Map::getSpectators, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "findPath", &Map::findPath, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "load", &Map::load, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "save", &Map::save, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "loadOTBM", &Map::loadOTBM, &g_map);
|
|
|
|
|
//g_lua.bindSingletonFunction("g_map", "saveOTBM", &Map::save, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "loadOTCM", &Map::loadOTCM, &g_map);
|
|
|
|
|
g_lua.bindSingletonFunction("g_map", "saveOTCM", &Map::saveOTCM, &g_map);
|
|
|
|
|
|
|
|
|
|
g_lua.registerSingletonClass("g_game");
|
|
|
|
|
g_lua.bindSingletonFunction("g_game", "loginWorld", &Game::loginWorld, &g_game);
|
|
|
|
|