From b822dcee52d15d41c4186a250e73b85b16c9dc39 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 10 Mar 2012 23:38:36 +0100 Subject: Removed the create_npc wrapper and the last two NPC callbacks When creating an NPC, you now provide its optional talk and update functions directly rather than them being stored in a table on the Lua side and then called in response to a global callback. Also fixed an issue with a missing gender parameter to the delayed NPC creation callback used by NPCs defined on the map (found by Erik while reviewing this patch). Reviewed-by: Erik Schilling --- src/scripting/luascript.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scripting/luascript.h') diff --git a/src/scripting/luascript.h b/src/scripting/luascript.h index 57b8dc1a..955fe21c 100644 --- a/src/scripting/luascript.h +++ b/src/scripting/luascript.h @@ -64,6 +64,8 @@ class LuaScript : public Script void assignCallback(Ref &function); + void unref(Ref &ref); + static void getQuestCallback(Character *, const std::string &value, Script *); -- cgit v1.2.3-60-g2f50