From 2a658a513476a43efbb3eff1cd24532bfcdccb83 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Mon, 25 May 2009 22:07:08 +0200 Subject: *Fix the startup with trinityinterface. --HG-- branch : trunk --- src/bindings/interface/ScriptMgr.h | 48 ++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'src/bindings/interface/ScriptMgr.h') diff --git a/src/bindings/interface/ScriptMgr.h b/src/bindings/interface/ScriptMgr.h index 56ad4c2b87b..04d3a6df14f 100644 --- a/src/bindings/interface/ScriptMgr.h +++ b/src/bindings/interface/ScriptMgr.h @@ -39,40 +39,42 @@ class Map; struct Script { Script() : - pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL), pGOSelect(NULL), pGOSelectWithCode(NULL), + pGossipHello(NULL), pQuestAccept(NULL), pGossipSelect(NULL), pGossipSelectWithCode(NULL), pGOSelect(NULL), pGOSelectWithCode(NULL), pQuestSelect(NULL), pQuestComplete(NULL), pNPCDialogStatus(NULL), pGODialogStatus(NULL), pChooseReward(NULL), pItemHello(NULL), pGOHello(NULL), pAreaTrigger(NULL), pItemQuestAccept(NULL), pGOQuestAccept(NULL), - pGOChooseReward(NULL), pReceiveEmote(NULL), pItemUse(NULL), GetAI(NULL) - {} + pGOChooseReward(NULL), pItemUse(NULL), pEffectDummyCreature(NULL), pEffectDummyGameObj(NULL), + pEffectDummyItem(NULL), GetAI(NULL), GetInstanceData(NULL) + {} std::string Name; - // -- Quest/gossip Methods to be scripted -- + //Methods to be scripted bool (*pGossipHello )(Player*, Creature*); - bool (*pQuestAccept )(Player*, Creature*, Quest const*); - bool (*pGossipSelect )(Player*, Creature*, uint32, uint32); - bool (*pGossipSelectWithCode)(Player*, Creature*, uint32, uint32, const char*); - bool (*pGOSelect )(Player*, GameObject*, uint32, uint32); - bool (*pGOSelectWithCode )(Player*, GameObject*, uint32, uint32, const char*); - bool (*pQuestSelect )(Player*, Creature*, Quest const*); - bool (*pQuestComplete )(Player*, Creature*, Quest const*); - uint32 (*pNPCDialogStatus )(Player*, Creature*); - uint32 (*pGODialogStatus )(Player*, GameObject*); - bool (*pChooseReward )(Player*, Creature*, Quest const*, uint32); - bool (*pItemHello )(Player*, Item*, Quest const*); - bool (*pGOHello )(Player*, GameObject*); - bool (*pAreaTrigger )(Player*, AreaTriggerEntry*); - bool (*pItemQuestAccept )(Player*, Item*, Quest const*); - bool (*pGOQuestAccept )(Player*, GameObject*, Quest const*); - bool (*pGOChooseReward )(Player*, GameObject*, Quest const*, uint32); - bool (*pReceiveEmote )(Player*, Creature*, uint32); - bool (*pItemUse )(Player*, Item*, SpellCastTargets const&); + bool (*pQuestAccept )(Player*, Creature*, Quest const* ); + bool (*pGossipSelect )(Player*, Creature*, uint32 , uint32 ); + bool (*pGossipSelectWithCode)(Player*, Creature*, uint32 , uint32 , const char* ); + bool (*pGOSelect )(Player*, GameObject*, uint32 , uint32 ); + bool (*pGOSelectWithCode )(Player*, GameObject*, uint32 , uint32 , const char* ); + bool (*pQuestSelect )(Player*, Creature*, Quest const* ); + bool (*pQuestComplete )(Player*, Creature*, Quest const* ); + uint32 (*pNPCDialogStatus )(Player*, Creature* ); + uint32 (*pGODialogStatus )(Player*, GameObject* ); + bool (*pChooseReward )(Player*, Creature*, Quest const*, uint32 ); + bool (*pItemHello )(Player*, Item*, Quest const* ); + bool (*pGOHello )(Player*, GameObject* ); + bool (*pAreaTrigger )(Player*, AreaTriggerEntry* ); + bool (*pItemQuestAccept )(Player*, Item *, Quest const* ); + bool (*pGOQuestAccept )(Player*, GameObject*, Quest const* ); + bool (*pGOChooseReward )(Player*, GameObject*, Quest const*, uint32 ); + bool (*pItemUse )(Player*, Item*, SpellCastTargets const& ); + bool (*pEffectDummyCreature )(Unit*, uint32, uint32, Creature* ); + bool (*pEffectDummyGameObj )(Unit*, uint32, uint32, GameObject* ); + bool (*pEffectDummyItem )(Unit*, uint32, uint32, Item* ); CreatureAI* (*GetAI)(Creature*); InstanceData* (*GetInstanceData)(Map*); void RegisterSelf(); - }; class InstanceDataScript -- cgit v1.2.3