All pastes #910702 Raw Edit

ScriptCalls.h

public text v1 · immutable
·published 2008-02-20 03:25 UTC
rendered paste body
Index: ScriptCalls.h

===================================================================

--- ScriptCalls.h	(revision 5260)

+++ ScriptCalls.h	(working copy)

@@ -24,6 +24,7 @@

 class Creature;
 class CreatureAI;
 class GameObject;
+class GameObjectAI;
 class Item;
 class Player;
 class Quest;
@@ -56,6 +57,7 @@

 typedef bool(MANGOS_IMPORT * scriptCallItemUse) (Player *player, Item *_Item, SpellCastTargets const& targets);
 typedef CreatureAI* (MANGOS_IMPORT * scriptCallGetAI) ( Creature *_Creature );
 typedef InstanceData* (MANGOS_IMPORT * scriptCallCreateInstanceData) (Map *map);
+typedef GameObjectAI* (MANGOS_IMPORT * scriptCallGetGameObjectAI) ( GameObject *_GameObject );
 
 typedef struct
 {
@@ -81,6 +83,7 @@

     scriptCallItemUse ItemUse;
     scriptCallGetAI GetAI;
     scriptCallCreateInstanceData CreateInstanceData;
+    scriptCallGetGameObjectAI GetGameObjectAI;
 
     MANGOS_LIBRARY_HANDLE hScriptsLib;
 }_ScriptSet,*ScriptsSet;