Show
Ignore:
Timestamp:
11/19/08 13:24:39 (17 years ago)
Author:
yumileroy
Message:

[svn] * Updated to 6743 and 685

Moved language id used by Arena to a higher place to solve conflicts
Added the empty script folders

Original author: Neo2003
Date: 2008-10-09 08:42:22-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/ScriptMgr.h

    r5 r28  
    11/* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 
    2 * This program is free software licensed under GPL version 2 
    3 * 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 */ 
    44 
    55#ifndef SCRIPTMGR_H 
     
    2222class WorldObject; 
    2323 
    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!>" 
    2527 
    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 // 
    3228struct Script 
    3329{ 
     
    4137std::string Name; 
    4238 
    43 // -- Quest/gossip Methods to be scripted -- 
     39// Quest/gossip Methods to be scripted 
    4440bool (*pGossipHello         )(Player*, Creature*); 
    4541bool (*pQuestAccept         )(Player*, Creature*, Quest const* ); 
     
    6258CreatureAI* (*GetAI)(Creature*); 
    6359InstanceData* (*GetInstanceData)(Map*); 
    64 // ----------------------------------------- 
    6560}; 
    6661 
     
    7065// Localized Text function 
    7166const char* GetEventAILocalizedText(uint32 entry); 
    72 const char* GetScriptLocalizedText(uint32 entry); 
    7367 
    7468//EventAI text function 
    75 const char* GetEventAIText(uint32 entry); // TODO: Locales 
     69const char* GetEventAIText(uint32 entry);                   // TODO: Locales 
    7670 
    77 // Script Text function 
    78 void ProcessScriptText(uint32 id, WorldObject* pSource, Unit* target = NULL); // TODO: Locales 
     71//Generic scripting text function 
     72void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target = NULL); 
    7973 
    8074#if COMPILER == COMPILER_GNU