Export clear_npctype_cache as both lua/perl general functions.

This commit is contained in:
KimLS
2014-02-01 14:55:51 -08:00
parent 6e0a214bcc
commit 8b1262b198
5 changed files with 31 additions and 2 deletions
+6 -1
View File
@@ -1060,6 +1060,10 @@ bool lua_disable_recipe(uint32 recipe_id) {
return quest_manager.DisableRecipe(recipe_id);
}
void lua_clear_npctype_cache(int npctype_id) {
quest_manager.ClearNPCTypeCache(npctype_id);
}
luabind::scope lua_register_general() {
return luabind::namespace_("eq")
[
@@ -1226,7 +1230,8 @@ luabind::scope lua_register_general() {
luabind::def("map_opcodes", &lua_map_opcodes),
luabind::def("clear_opcode", &lua_clear_opcode),
luabind::def("enable_recipe", &lua_enable_recipe),
luabind::def("disable_recipe", &lua_disable_recipe)
luabind::def("disable_recipe", &lua_disable_recipe),
luabind::def("clear_npctype_cache", &lua_clear_npctype_cache)
];
}