Changeset 28 for trunk/src/bindings/scripts/ScriptMgr.h
- Timestamp:
- 11/19/08 13:24:39 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/ScriptMgr.h
r5 r28 1 1 /* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 2 * This program is free software licensed under GPL version 23 * Please see the included DOCS/LICENSE.TXT for more information */2 * This program is free software licensed under GPL version 2 3 * Please see the included DOCS/LICENSE.TXT for more information */ 4 4 5 5 #ifndef SCRIPTMGR_H … … 22 22 class WorldObject; 23 23 24 #define MAX_SCRIPTS 1000 //72 bytes each (approx 71kb) 24 #define MAX_SCRIPTS 1000 //72 bytes each (approx 71kb) 25 #define VISIBLE_RANGE (166.0f) //MAX visible range (size of grid) 26 #define DEFAULT_TEXT "<Trinity Script Text Entry Missing!>" 25 27 26 //MAX visible range (size of grid)27 #define VISIBLE_RANGE (166.0f)28 29 #define DEFAULT_TEXT "<Trinity Script Text Entry Missing!>"30 31 //32 28 struct Script 33 29 { … … 41 37 std::string Name; 42 38 43 // -- Quest/gossip Methods to be scripted --39 // Quest/gossip Methods to be scripted 44 40 bool (*pGossipHello )(Player*, Creature*); 45 41 bool (*pQuestAccept )(Player*, Creature*, Quest const* ); … … 62 58 CreatureAI* (*GetAI)(Creature*); 63 59 InstanceData* (*GetInstanceData)(Map*); 64 // -----------------------------------------65 60 }; 66 61 … … 70 65 // Localized Text function 71 66 const char* GetEventAILocalizedText(uint32 entry); 72 const char* GetScriptLocalizedText(uint32 entry);73 67 74 68 //EventAI text function 75 const char* GetEventAIText(uint32 entry); // TODO: Locales69 const char* GetEventAIText(uint32 entry); // TODO: Locales 76 70 77 // Script Text function78 void ProcessScriptText(uint32 id, WorldObject* pSource, Unit* target = NULL); // TODO: Locales71 //Generic scripting text function 72 void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target = NULL); 79 73 80 74 #if COMPILER == COMPILER_GNU