Changeset 206 for trunk/src/bindings

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

[svn] * Switch from hashmap to unordered map. - cleanup source - mangos. Help - Aokromes

Original author: KingPin?
Date: 2008-11-10 06:53:00-06:00

Location:
trunk/src/bindings/scripts
Files:
4 modified

Legend:

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

    r187 r206  
    4646 
    4747// Text Maps 
    48 HM_NAMESPACE::hash_map<int32, StringTextData> TextMap; 
     48UNORDERED_MAP<int32, StringTextData> TextMap; 
    4949 
    5050 
     
    5656 
    5757//Event AI summon structure. Used exclusivly by mob_event_ai.cpp. 
    58 HM_NAMESPACE::hash_map<uint32, EventAI_Summon> EventAI_Summon_Map; 
     58UNORDERED_MAP<uint32, EventAI_Summon> EventAI_Summon_Map; 
    5959 
    6060//Event AI error prevention structure. Used at runtime to prevent error log spam of same creature id. 
    61 //HM_NAMESPACE::hash_map<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList; 
     61//UNORDERED_MAP<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList; 
    6262 
    6363uint32 EAI_ErrorLevel; 
     
    17931793    } 
    17941794 
    1795     HM_NAMESPACE::hash_map<int32, StringTextData>::iterator i = TextMap.find(textEntry); 
     1795    UNORDERED_MAP<int32, StringTextData>::iterator i = TextMap.find(textEntry); 
    17961796 
    17971797    if (i == TextMap.end()) 
  • trunk/src/bindings/scripts/scripts/creature/mob_event_ai.cpp

    r202 r206  
    865865                Creature* pCreature = NULL; 
    866866 
    867                 HM_NAMESPACE::hash_map<uint32, EventAI_Summon>::iterator i = EventAI_Summon_Map.find(param3); 
     867                UNORDERED_MAP<uint32, EventAI_Summon>::iterator i = EventAI_Summon_Map.find(param3); 
    868868 
    869869                if (i == EventAI_Summon_Map.end()) 
  • trunk/src/bindings/scripts/scripts/creature/mob_event_ai.h

    r109 r206  
    196196 
    197197//EventSummon_Map 
    198 extern HM_NAMESPACE::hash_map<uint32, EventAI_Summon> EventAI_Summon_Map; 
     198extern UNORDERED_MAP<uint32, EventAI_Summon> EventAI_Summon_Map; 
    199199 
    200200//EventAI Error handling 
     
    209209 
    210210//Error prevention list 
    211 extern HM_NAMESPACE::hash_map<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList; 
     211extern UNORDERED_MAP<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList; 
    212212 
    213213//Defines 
  • trunk/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp

    r90 r206  
    476476 
    477477    //Stomach map, bool = true then in stomach 
    478     HM_NAMESPACE::hash_map<uint64, bool> Stomach_Map; 
     478    UNORDERED_MAP<uint64, bool> Stomach_Map; 
    479479 
    480480    void Reset() 
     
    535535            return NULL; 
    536536 
    537         HM_NAMESPACE::hash_map<uint64, bool>::iterator i = Stomach_Map.begin(); 
     537        UNORDERED_MAP<uint64, bool>::iterator i = Stomach_Map.begin(); 
    538538 
    539539        std::list<Unit*> temp; 
     
    682682                    DoCast(m_creature, SPELL_RED_COLORATION, true); 
    683683 
    684                     HM_NAMESPACE::hash_map<uint64, bool>::iterator i = Stomach_Map.begin(); 
     684                    UNORDERED_MAP<uint64, bool>::iterator i = Stomach_Map.begin(); 
    685685 
    686686                    //Kick all players out of stomach 
     
    714714                { 
    715715                    //Apply aura to all players in stomach 
    716                     HM_NAMESPACE::hash_map<uint64, bool>::iterator i = Stomach_Map.begin(); 
     716                    UNORDERED_MAP<uint64, bool>::iterator i = Stomach_Map.begin(); 
    717717 
    718718                    while (i != Stomach_Map.end())