2 * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef DBCSTRUCTURE_H
20 #define DBCSTRUCTURE_H
23 #include "Platform/Define.h"
29 // Structures using to access raw DBC data and required packing to portability
31 // GCC have alternative #pragma pack(N) syntax and old gcc version not support pack(push,N), also any gcc version not support it at some platform
32 #if defined( __GNUC__ )
38 struct AchievementEntry
41 uint32 factionFlag
; // 1 -1=all, 0=horde, 1=alliance
42 uint32 mapID
; // 2 -1=none
43 //uint32 parentAchievement; // 3 its Achievement parent (can`t start while parent uncomplete, use its Criteria if don`t have own, use its progress on begin)
44 //char *name[16]; // 4-19
45 //uint32 name_flags; // 20
46 //char *description[16]; // 21-36
47 //uint32 desc_flags; // 37
48 uint32 categoryId
; // 38
49 uint32 points
; // 39 reward points
50 //uint32 OrderInCategory; // 40
52 //uint32 icon; // 42 icon (from SpellIcon.dbc)
53 //char *titleReward[16]; // 43-58
54 //uint32 titleReward_flags; // 59
55 //uint32 count; // 60 - need this count Criteria for complete
56 uint32 refAchievement
; // 61 - related achievement?
59 struct AchievementCategoryEntry
62 uint32 parentCategory
; // 1 -1 for main category
63 //char *name[16]; // 2-17
64 //uint32 name_flags; // 18
65 //uint32 sortOrder; // 19
68 struct AchievementCriteriaEntry
71 uint32 referredAchievement
; // 1
72 uint32 requiredType
; // 2
75 // ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE = 0
76 // TODO: also used for player deaths..
79 uint32 creatureID
; // 3
80 uint32 creatureCount
; // 4
83 // ACHIEVEMENT_CRITERIA_TYPE_WIN_BG = 1
84 // TODO: there are further criterias instead just winning
91 // ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL = 5
98 // ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL = 7
102 uint32 skillLevel
; // 4
105 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ACHIEVEMENT = 8
108 uint32 linkedAchievement
; // 3
109 } complete_achievement
;
111 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT = 9
115 uint32 totalQuestCount
; // 4
116 } complete_quest_count
;
118 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY = 10
122 uint32 numberOfDays
; // 4
123 } complete_daily_quest_daily
;
125 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE = 11
129 uint32 questCount
; // 4
130 } complete_quests_in_zone
;
132 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST = 14
136 uint32 questCount
; // 4
137 } complete_daily_quest
;
139 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND= 15
143 } complete_battleground
;
145 // ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP= 16
151 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID = 19
154 uint32 groupSize
; // 3 can be 5, 10 or 25
157 // ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE = 20
160 uint32 creatureEntry
; // 3
161 } killed_by_creature
;
163 // ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING = 24
167 uint32 fallHeight
; // 4
168 } fall_without_dying
;
170 // ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM = 26
173 uint32 type
; // 0 - fatigue, 1 - drowning, 2 - falling, 3 - ??, 5 - fire and lava
176 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST = 27
180 uint32 questCount
; // 4
183 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET = 28
184 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2= 69
188 uint32 spellCount
; // 4
191 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL= 29
192 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2 = 110
196 uint32 castCount
; // 4
199 // ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA = 31
202 uint32 areaID
; // 3 Reference to AreaTable.dbc
203 uint32 killCount
; // 4
204 } honorable_kill_at_area
;
206 // ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA = 32
209 uint32 mapID
; // 3 Reference to Map.dbc
212 // ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA = 33
215 uint32 mapID
; // 3 Reference to Map.dbc
218 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL = 34
221 uint32 spellID
; // 3 Reference to Map.dbc
224 // ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM = 36
228 uint32 itemCount
; // 4
231 // ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA = 37
236 uint32 flag
; // 5 4=in a row
239 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING = 38
242 uint32 teamtype
; // 3 {2,3,5}
243 } highest_team_rating
;
245 // ACHIEVEMENT_CRITERIA_TYPE_REACH_TEAM_RATING = 39
248 uint32 teamtype
; // 3 {2,3,5}
249 uint32 teamrating
; // 4
252 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL = 40
256 uint32 skillLevel
; // 4 apprentice=1, journeyman=2, expert=3, artisan=4, master=5, grand master=6
259 // ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM = 41
263 uint32 itemCount
; // 4
266 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM = 42
270 uint32 itemCount
; // 4
273 // ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA = 43
276 // TODO: This rank is _NOT_ the index from AreaTable.dbc
277 uint32 areaReference
; // 3
280 // ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK= 44
283 // TODO: This rank is _NOT_ the index from CharTitles.dbc
287 // ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT= 45
291 uint32 numberOfSlots
; // 4
294 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION= 46
297 uint32 factionID
; // 3
298 uint32 reputationAmount
; // 4 Total reputation amount, so 42000 = exalted
301 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION= 47
305 uint32 numberOfExaltedFactions
; // 4
306 } gain_exalted_reputation
;
308 // ACHIEVEMENT_CRITERIA_TYPE_VISIT_BARBER_SHOP = 48
312 uint32 numberOfVisits
; // 4
315 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM = 49
316 // TODO: where is the required itemlevel stored?
319 uint32 itemSlot
; // 3
322 // ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT= 50
325 uint32 rollValue
; // 3
328 // ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT= 51
331 uint32 rollValue
; // 3
333 } roll_greed_on_loot
;
335 // ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS = 52
342 // ACHIEVEMENT_CRITERIA_TYPE_HK_RACE = 53
349 // ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE = 54
350 // TODO: where is the information about the target stored?
355 // ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE = 13
356 // ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE = 55
357 // ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS = 56
362 uint32 flag
; // 5 =3 for battleground healing
366 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM = 57
373 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY = 67
377 uint32 goldInCopper
; // 4
380 // ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT = 68
384 uint32 useCount
; // 4
387 // ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL= 70
388 // TODO: are those special criteria stored in the dbc or do we have to add another sql table?
392 uint32 killCount
; // 4
395 // ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT = 72
399 uint32 lootCount
; // 4
400 } fish_in_gameobject
;
402 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS= 75
405 uint32 skillLine
; // 3
406 uint32 spellCount
; // 4
407 } learn_skilline_spell
;
409 // ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL = 76
413 uint32 duelCount
; // 4
416 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_POWER = 96
419 uint32 powerType
; // 3 mana=0, 1=rage, 3=energy, 6=runic power
422 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_STAT = 97
425 uint32 statType
; // 3 4=spirit, 3=int, 2=stamina, 1=agi, 0=strength
428 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_SPELLPOWER = 98
431 uint32 spellSchool
; // 3
432 } highest_spellpower
;
434 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_RATING = 100
437 uint32 ratingType
; // 3
440 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE = 109
443 uint32 lootType
; // 3 3=fishing, 2=pickpocket, 4=disentchant
444 uint32 lootTypeCount
; // 4
447 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE= 112
450 uint32 skillLine
; // 3
451 uint32 spellCount
; // 4
454 // ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL = 113
458 uint32 killCount
; // 4
463 uint32 field3
; // 3 main requirement
464 uint32 field4
; // 4 main requirement count
465 uint32 additionalRequirement1_type
; // 5 additional requirement 1 type
466 uint32 additionalRequirement1_value
; // 6 additional requirement 1 value
467 uint32 additionalRequirement2_type
; // 7 additional requirement 2 type
468 uint32 additionalRequirement2_value
; // 8 additional requirement 1 value
471 //char* name[16]; // 9-24
472 //uint32 name_flags; // 25
473 uint32 completionFlag
; // 26
474 uint32 groupFlag
; // 27
476 uint32 timeLimit
; // 29 time limit in seconds
477 //uint32 showOrder; // 30 show order
480 struct AreaTableEntry
484 uint32 zone
; // 2 if 0 then it's zone, else it's zone id of this area
485 uint32 exploreFlag
; // 3, main index
486 uint32 flags
; // 4, unknown value but 312 for all cities
488 int32 area_level
; // 10
489 char* area_name
[16]; // 11-26
490 // 27, string flags, unused
494 struct AreaGroupEntry
496 uint32 AreaGroupId
; // 0
497 uint32 AreaId
[7]; // 1-7
500 struct AreaTriggerEntry
503 uint32 mapid
; // 1 m_ContinentID
507 float radius
; // 5 m_radius
508 float box_x
; // 6 m_box_length
509 float box_y
; // 7 m_box_width
510 float box_z
; // 8 m_box_heigh
511 float box_orientation
; // 9 m_box_yaw
514 struct BankBagSlotPricesEntry
520 struct BarberShopStyleEntry
523 uint32 type
; // 1 value 0 -> hair, value 2 -> facialhair
524 //char* name[16]; // 2-17 name of hair style
525 //uint32 name_flags; // 18
526 //uint32 unk_name[16]; // 19-34, all empty
527 //uint32 unk_flags; // 35
528 //float CostMultiplier; // 36 values 1 and 0.75
529 uint32 race
; // 37 race
530 uint32 gender
; // 38 0 -> male, 1 -> female
531 uint32 hair_id
; // 39 real ID to hair/facial hair
534 struct BattlemasterListEntry
537 int32 mapid
[8]; // 1-8 mapid
538 uint32 type
; // 9 (3 - BG, 4 - arena)
541 uint32 maxplayersperteam
; // 12
545 char* name
[16]; // 16-31
546 // 32 string flag, unused
550 #define MAX_OUTFIT_ITEMS 24
552 struct CharStartOutfitEntry
555 uint32 RaceClassGender
; // 1 (UNIT_FIELD_BYTES_0 & 0x00FFFFFF) comparable (0 byte = race, 1 byte = class, 2 byte = gender)
556 int32 ItemId
[MAX_OUTFIT_ITEMS
]; // 2-13
557 //int32 ItemDisplayId[MAX_OUTFIT_ITEMS]; // 14-25 not required at server side
558 //int32 ItemInventorySlot[MAX_OUTFIT_ITEMS]; // 26-37 not required at server side
559 //uint32 Unknown1; // 38, unique values (index-like with gaps ordered in other way as ids)
560 //uint32 Unknown2; // 39
561 //uint32 Unknown3; // 40
564 struct CharTitlesEntry
566 uint32 ID
; // 0, title ids, for example in Quest::GetCharTitleId()
567 //uint32 unk1; // 1 flags?
568 //char* name[16]; // 2-17, unused
569 // 18 string flag, unused
570 //char* name2[16]; // 19-34, unused
571 // 35 string flag, unused
572 uint32 bit_index
; // 36 used in PLAYER_CHOSEN_TITLE and 1<<index in PLAYER__FIELD_KNOWN_TITLES
575 struct ChatChannelsEntry
577 uint32 ChannelID
; // 0
579 char* pattern
[16]; // 3-18
580 // 19 string flags, unused
581 //char* name[16]; // 20-35 unused
582 // 36 string flag, unused
585 struct ChrClassesEntry
589 uint32 powerType
; // 2
591 //char* name[16]; // 5-20 unused
592 // 21 string flag, unused
593 //char* nameFemale[16]; // 21-36 unused, if different from base (male) case
594 // 37 string flag, unused
595 //char* nameNeutralGender[16]; // 38-53 unused, if different from base (male) case
596 // 54 string flag, unused
598 uint32 spellfamily
; // 56
600 uint32 CinematicSequence
; // 58 id from CinematicSequences.dbc
601 uint32 addon
; // 59 (0 - original race, 1 - tbc addon, ...)
608 uint32 FactionID
; // 2 facton template id
613 uint32 TeamID
; // 8 (7-Alliance 1-Horde)
615 uint32 CinematicSequence
; // 13 id from CinematicSequences.dbc
616 char* name
[16]; // 14-29 used for DBC language detection/selection
617 // 30 string flags, unused
618 //char* nameFemale[16]; // 31-46, if different from base (male) case
619 // 47 string flags, unused
620 //char* nameNeutralGender[16]; // 48-63, if different from base (male) case
621 // 64 string flags, unused
623 uint32 addon
; // 68 (0 - original race, 1 - tbc addon, ...)
626 struct CreatureDisplayInfoEntry
628 uint32 Displayid
; // 0 m_ID
631 // 3 m_extendedDisplayInfoID
632 float scale
; // 4 m_creatureModelScale
633 // 5 m_creatureModelAlpha
634 // 6-8 m_textureVariation[3]
635 // 9 m_portraitTextureName
639 // 13 m_particleColorID
640 // 14 m_creatureGeosetData
641 // 15 m_objectEffectPackageID
644 struct CreatureFamilyEntry
647 float minScale
; // 1 m_minScale
648 uint32 minScaleLevel
; // 2 m_minScaleLevel
649 float maxScale
; // 3 m_maxScale
650 uint32 maxScaleLevel
; // 4 m_maxScaleLevel
651 uint32 skillLine
[2]; // 5-6 m_skillLine
652 uint32 petFoodMask
; // 7 m_petFoodMask
653 int32 petTalentType
; // 8 m_petTalentType
654 // 9 m_categoryEnumID
655 char* Name
[16]; // 10-25 m_name_lang
660 struct CreatureSpellDataEntry
663 //uint32 spellId[4]; // 1-4 m_spells[4]
664 //uint32 availability[4]; // 4-7 m_availability[4]
667 struct CreatureTypeEntry
670 //char* Name[16]; // 1-16 name
672 //uint32 no_expirience; // 18 no exp? critters, non-combat pets, gas cloud.
675 struct DurabilityCostsEntry
678 uint32 multiplier
[29]; // 1-29
681 struct DurabilityQualityEntry
684 float quality_mod
; // 1
687 struct EmotesTextEntry
696 int32 reputationListID
; // 1 m_reputationIndex
697 uint32 BaseRepRaceMask
[4]; // 2-5 m_reputationRaceMask
698 uint32 BaseRepClassMask
[4]; // 6-9 m_reputationClassMask
699 int32 BaseRepValue
[4]; // 10-13 m_reputationBase
700 uint32 ReputationFlags
[4]; // 14-17 m_reputationFlags
701 uint32 team
; // 18 m_parentFactionID
702 char* name
[16]; // 19-34 m_name_lang
704 //char* description[16]; // 36-51 m_description_lang
708 struct FactionTemplateEntry
711 uint32 faction
; // 1 m_faction
712 uint32 factionFlags
; // 2 m_flags
713 uint32 ourMask
; // 3 m_factionGroup
714 uint32 friendlyMask
; // 4 m_friendGroup
715 uint32 hostileMask
; // 5 m_enemyGroup
716 uint32 enemyFaction
[4]; // 6 m_enemies[4]
717 uint32 friendFaction
[4]; // 10 m_friend[4]
718 //------------------------------------------------------- end structure
721 bool IsFriendlyTo(FactionTemplateEntry
const& entry
) const
723 if(enemyFaction
[0] == entry
.faction
|| enemyFaction
[1] == entry
.faction
|| enemyFaction
[2] == entry
.faction
|| enemyFaction
[3] == entry
.faction
)
725 if(friendFaction
[0] == entry
.faction
|| friendFaction
[1] == entry
.faction
|| friendFaction
[2] == entry
.faction
|| friendFaction
[3] == entry
.faction
)
727 return (friendlyMask
& entry
.ourMask
) || (ourMask
& entry
.friendlyMask
);
729 bool IsHostileTo(FactionTemplateEntry
const& entry
) const
731 if(enemyFaction
[0] == entry
.faction
|| enemyFaction
[1] == entry
.faction
|| enemyFaction
[2] == entry
.faction
|| enemyFaction
[3] == entry
.faction
)
733 if(friendFaction
[0] == entry
.faction
|| friendFaction
[1] == entry
.faction
|| friendFaction
[2] == entry
.faction
|| friendFaction
[3] == entry
.faction
)
735 return (hostileMask
& entry
.ourMask
) != 0;
737 bool IsHostileToPlayers() const { return (hostileMask
& FACTION_MASK_PLAYER
) !=0; }
738 bool IsNeutralToAll() const { return hostileMask
== 0 && friendlyMask
== 0 && enemyFaction
[0]==0 && enemyFaction
[1]==0 && enemyFaction
[2]==0 && enemyFaction
[3]==0; }
739 bool IsContestedGuardFaction() const { return (factionFlags
& FACTION_TEMPLATE_FLAG_CONTESTED_GUARD
)!=0; }
742 struct GemPropertiesEntry
745 uint32 spellitemenchantement
;
749 struct GlyphPropertiesEntry
754 uint32 Unk1
; // GlyphIconId (SpellIcon.dbc)
757 struct GlyphSlotEntry
764 // All Gt* DBC store data for 100 levels, some by 100 per class/race
765 #define GT_MAX_LEVEL 100
767 struct GtBarberShopCostBaseEntry
772 struct GtCombatRatingsEntry
777 struct GtChanceToMeleeCritBaseEntry
782 struct GtChanceToMeleeCritEntry
787 struct GtChanceToSpellCritBaseEntry
792 struct GtChanceToSpellCritEntry
797 struct GtOCTRegenHPEntry
802 //struct GtOCTRegenMPEntry
807 struct GtRegenHPPerSptEntry
812 struct GtRegenMPPerSptEntry
821 //uint32 SubClass; // 2 some items have strnage subclasses
824 uint32 DisplayId
; // 5
825 uint32 InventoryType
; // 6
829 struct ItemDisplayInfoEntry
833 // 2 m_modelTexture[2]
835 // 4 m_geosetGroup[3]
838 // 7 m_groupSoundIndex
839 // 8 m_helmetGeosetVis[2]
841 // 10 m_itemVisual[8]
842 // 11 m_particleColorID
845 //struct ItemCondExtCostsEntry
848 // uint32 condExtendedCost; // ItemPrototype::CondExtendedCost
849 // uint32 itemextendedcostentry; // ItemPrototype::ExtendedCost
850 // uint32 arenaseason; // arena season number(1-4)
853 struct ItemExtendedCostEntry
855 uint32 ID
; // 0 extended-cost entry id
856 uint32 reqhonorpoints
; // 1 required honor points
857 uint32 reqarenapoints
; // 2 required arena points
858 uint32 reqitem
[5]; // 3-7 required item id
859 uint32 reqitemcount
[5]; // 8-12 required count of 1st item
860 uint32 reqpersonalarenarating
; // 13 required personal arena rating
863 struct ItemRandomPropertiesEntry
866 //char* internalName // 1 m_Name
867 uint32 enchant_id
[5]; // 2-6 m_Enchantment
868 //char* nameSuffix[16] // 7-22 m_name_lang
872 struct ItemRandomSuffixEntry
875 //char* name[16] // 1-16 m_name_lang
878 uint32 enchant_id
[5]; // 19-21 m_enchantment
879 uint32 prefix
[5]; // 22-24 m_allocationPct
884 //uint32 id // 0 m_ID
885 char* name
[16]; // 1-16 m_name_lang
886 // 17 string flags, unused
887 //uint32 itemId[17]; // 18-34 m_itemID
888 uint32 spells
[8]; // 35-42 m_setSpellID
889 uint32 items_to_triggerspell
[8]; // 43-50 m_setThreshold
890 uint32 required_skill_id
; // 51 m_requiredSkill
891 uint32 required_skill_value
; // 52 m_requiredSkillRank
897 uint32 Type
[8]; // 1-8 m_Type
898 uint32 Index
[8]; // 9-16 m_Index
899 uint32 Skill
[8]; // 17-24 m_Skill
900 //uint32 Action[8]; // 25-32 m_Action
903 struct MailTemplateEntry
906 //char* subject[16]; // 1-16
907 // 17 name flags, unused
908 //char* content[16]; // 18-33
914 //char* internalname; // 1 unused
915 uint32 map_type
; // 2
916 // 3 0 or 1 for battlegrounds (not arenas)
917 char* name
[16]; // 4-19
918 // 20 name flags, unused
919 uint32 linked_zone
; // 21 common zone for instance and continent map
920 //char* hordeIntro[16]; // 23-37 text for PvP Zones
921 // 38 intro text flags
922 //char* allianceIntro[16]; // 39-54 text for PvP Zones
923 // 55 intro text flags
924 uint32 multimap_id
; // 56
926 //chat* unknownText1[16]; // 58-73 unknown empty text fields, possible normal Intro text.
928 //chat* heroicIntroText[16]; // 75-90 heroic mode requirement text
930 //chat* unknownText2[16]; // 92-107 unknown empty text fields
932 int32 entrance_map
; // 109 map_id of entrance map
933 float entrance_x
; // 110 entrance x coordinate (if exist single entry)
934 float entrance_y
; // 111 entrance y coordinate (if exist single entry)
935 uint32 resetTimeRaid
; // 112
936 uint32 resetTimeHeroic
; // 113
939 uint32 addon
; // 116 (0-original maps,1-tbc addon)
940 // 117 some kind of time?
943 uint32
Expansion() const { return addon
; }
946 bool IsDungeon() const { return map_type
== MAP_INSTANCE
|| map_type
== MAP_RAID
; }
947 bool Instanceable() const { return map_type
== MAP_INSTANCE
|| map_type
== MAP_RAID
|| map_type
== MAP_BATTLEGROUND
|| map_type
== MAP_ARENA
; }
948 bool IsRaid() const { return map_type
== MAP_RAID
; }
949 bool IsBattleGround() const { return map_type
== MAP_BATTLEGROUND
; }
950 bool IsBattleArena() const { return map_type
== MAP_ARENA
; }
951 bool IsBattleGroundOrArena() const { return map_type
== MAP_BATTLEGROUND
|| map_type
== MAP_ARENA
; }
952 bool SupportsHeroicMode() const { return resetTimeHeroic
!= 0; }
953 bool HasResetTime() const { return resetTimeHeroic
|| resetTimeRaid
; }
955 bool IsMountAllowed() const
957 return !IsDungeon() ||
958 MapID
==209 || MapID
==269 || MapID
==309 || // TanarisInstance, CavernsOfTime, Zul'gurub
959 MapID
==509 || MapID
==534 || MapID
==560 || // AhnQiraj, HyjalPast, HillsbradPast
960 MapID
==568 || MapID
==580 || MapID
==615 || // ZulAman, Sunwell Plateau, Obsidian Sanctrum
961 MapID
==616; // Eye Of Eternity
964 bool IsContinent() const
966 return MapID
== 0 || MapID
== 1 || MapID
== 530 || MapID
== 571;
970 struct QuestSortEntry
973 //char* name[16]; // 1-16 m_SortName_lang
977 struct RandomPropertiesPointsEntry
979 //uint32 Id; // 0 hidden key
980 uint32 itemLevel
; // 1
981 uint32 EpicPropertiesPoints
[5]; // 2-6
982 uint32 RarePropertiesPoints
[5]; // 7-11
983 uint32 UncommonPropertiesPoints
[5]; // 12-16
986 struct ScalingStatDistributionEntry
994 struct ScalingStatValuesEntry
998 uint32 Multiplier
[17];
1001 //struct SkillLineCategoryEntry{
1002 // uint32 id; // 0 m_ID
1003 // char* name[16]; // 1-17 m_name_lang
1004 // // 18 string flag
1005 // uint32 displayOrder; // 19 m_sortIndex
1008 //struct SkillRaceClassInfoEntry{
1009 // uint32 id; // 0 m_ID
1010 // uint32 skillId; // 1 m_skillID
1011 // uint32 raceMask; // 2 m_raceMask
1012 // uint32 classMask; // 3 m_classMask
1013 // uint32 flags; // 4 m_flags
1014 // uint32 reqLevel; // 5 m_minLevel
1015 // uint32 skillTierId; // 6 m_skillTierID
1016 // uint32 skillCostID; // 7 m_skillCostIndex
1019 //struct SkillTiersEntry{
1020 // uint32 id; // 0 m_ID
1021 // uint32 skillValue[16]; // 1-17 m_cost
1022 // uint32 maxSkillValue[16]; // 18-32 m_valueMax
1025 struct SkillLineEntry
1027 uint32 id
; // 0 m_ID
1028 int32 categoryId
; // 1 m_categoryID
1029 //uint32 skillCostID; // 2 m_skillCostsID
1030 char* name
[16]; // 3-18 m_displayName_lang
1032 //char* description[16]; // 20-35 m_description_lang
1034 uint32 spellIcon
; // 37 m_spellIconID
1035 //char* alternateVerb[16]; // 38-53 m_alternateVerb_lang
1040 struct SkillLineAbilityEntry
1042 uint32 id
; // 0 m_ID
1043 uint32 skillId
; // 1 m_skillLine
1044 uint32 spellId
; // 2 m_spell
1045 uint32 racemask
; // 3 m_raceMask
1046 uint32 classmask
; // 4 m_classMask
1047 //uint32 racemaskNot; // 5 m_excludeRace
1048 //uint32 classmaskNot; // 6 m_excludeClass
1049 uint32 req_skill_value
; // 7 m_minSkillLineRank
1050 uint32 forward_spellid
; // 8 m_supercededBySpell
1051 uint32 learnOnGetSkill
; // 9 m_acquireMethod
1052 uint32 max_value
; // 10 m_trivialSkillLineRankHigh
1053 uint32 min_value
; // 11 m_trivialSkillLineRankLow
1054 //uint32 characterPoints[2]; // 12-13 m_characterPoints[2]
1057 struct SoundEntriesEntry
1059 uint32 Id
; // 0 m_ID
1060 //uint32 Type; // 1 m_soundType
1061 //char* InternalName; // 2 m_name
1062 //char* FileName[10]; // 3-12 m_File[10]
1063 //uint32 Unk13[10]; // 13-22 m_Freq[10]
1064 //char* Path; // 23 m_DirectoryBase
1068 // 27 m_distanceCutoff
1074 uint32 Id
; // 0 m_ID
1075 uint32 Category
; // 1 m_category
1076 uint32 Dispel
; // 2 m_dispelType
1077 uint32 Mechanic
; // 3 m_mechanic
1078 uint32 Attributes
; // 4 m_attribute
1079 uint32 AttributesEx
; // 5 m_attributesEx
1080 uint32 AttributesEx2
; // 6 m_attributesExB
1081 uint32 AttributesEx3
; // 7 m_attributesExC
1082 uint32 AttributesEx4
; // 8 m_attributesExD
1083 uint32 AttributesEx5
; // 9 m_attributesExE
1084 //uint32 AttributesEx6; // 10 m_attributesExF not used
1085 uint32 Stances
; // 11 m_shapeshiftMask
1086 uint32 StancesNot
; // 12 m_shapeshiftExclude
1087 uint32 Targets
; // 13 m_targets
1088 uint32 TargetCreatureType
; // 14 m_targetCreatureType
1089 uint32 RequiresSpellFocus
; // 15 m_requiresSpellFocus
1090 uint32 FacingCasterFlags
; // 16 m_facingCasterFlags
1091 uint32 CasterAuraState
; // 17 m_casterAuraState
1092 uint32 TargetAuraState
; // 18 m_targetAuraState
1093 uint32 CasterAuraStateNot
; // 19 m_excludeCasterAuraState
1094 uint32 TargetAuraStateNot
; // 20 m_excludeTargetAuraState
1095 uint32 casterAuraSpell
; // 21 m_casterAuraSpell
1096 uint32 targetAuraSpell
; // 22 m_targetAuraSpell
1097 uint32 excludeCasterAuraSpell
; // 23 m_excludeCasterAuraSpell
1098 uint32 excludeTargetAuraSpell
; // 24 m_excludeTargetAuraSpell
1099 uint32 CastingTimeIndex
; // 25 m_castingTimeIndex
1100 uint32 RecoveryTime
; // 26 m_recoveryTime
1101 uint32 CategoryRecoveryTime
; // 27 m_categoryRecoveryTime
1102 uint32 InterruptFlags
; // 28 m_interruptFlags
1103 uint32 AuraInterruptFlags
; // 29 m_auraInterruptFlags
1104 uint32 ChannelInterruptFlags
; // 30 m_channelInterruptFlags
1105 uint32 procFlags
; // 31 m_procTypeMask
1106 uint32 procChance
; // 32 m_procChance
1107 uint32 procCharges
; // 33 m_procCharges
1108 uint32 maxLevel
; // 34 m_maxLevel
1109 uint32 baseLevel
; // 35 m_baseLevel
1110 uint32 spellLevel
; // 36 m_spellLevel
1111 uint32 DurationIndex
; // 37 m_durationIndex
1112 uint32 powerType
; // 38 m_powerType
1113 uint32 manaCost
; // 39 m_manaCost
1114 uint32 manaCostPerlevel
; // 40 m_manaCostPerLevel
1115 uint32 manaPerSecond
; // 41 m_manaPerSecond
1116 uint32 manaPerSecondPerLevel
; // 42 m_manaPerSecondPerLeve
1117 uint32 rangeIndex
; // 43 m_rangeIndex
1118 float speed
; // 44 m_speed
1119 //uint32 modalNextSpell; // 45 m_modalNextSpell not used
1120 uint32 StackAmount
; // 46 m_cumulativeAura
1121 uint32 Totem
[2]; // 47-48 m_totem
1122 int32 Reagent
[8]; // 49-56 m_reagent
1123 uint32 ReagentCount
[8]; // 57-64 m_reagentCount
1124 int32 EquippedItemClass
; // 65 m_equippedItemClass (value)
1125 int32 EquippedItemSubClassMask
; // 66 m_equippedItemSubclass (mask)
1126 int32 EquippedItemInventoryTypeMask
; // 67 m_equippedItemInvTypes (mask)
1127 uint32 Effect
[3]; // 68-70 m_effect
1128 int32 EffectDieSides
[3]; // 71-73 m_effectDieSides
1129 uint32 EffectBaseDice
[3]; // 74-76 m_effectBaseDice
1130 float EffectDicePerLevel
[3]; // 77-79 m_effectDicePerLevel
1131 float EffectRealPointsPerLevel
[3]; // 80-82 m_effectRealPointsPerLevel
1132 int32 EffectBasePoints
[3]; // 83-85 m_effectBasePoints (don't must be used in spell/auras explicitly, must be used cached Spell::m_currentBasePoints)
1133 uint32 EffectMechanic
[3]; // 86-88 m_effectMechanic
1134 uint32 EffectImplicitTargetA
[3]; // 89-91 m_implicitTargetA
1135 uint32 EffectImplicitTargetB
[3]; // 92-94 m_implicitTargetB
1136 uint32 EffectRadiusIndex
[3]; // 95-97 m_effectRadiusIndex - spellradius.dbc
1137 uint32 EffectApplyAuraName
[3]; // 98-100 m_effectAura
1138 uint32 EffectAmplitude
[3]; // 101-103 m_effectAuraPeriod
1139 float EffectMultipleValue
[3]; // 104-106 m_effectAmplitude
1140 uint32 EffectChainTarget
[3]; // 107-109 m_effectChainTargets
1141 uint32 EffectItemType
[3]; // 110-112 m_effectItemType
1142 int32 EffectMiscValue
[3]; // 113-115 m_effectMiscValue
1143 int32 EffectMiscValueB
[3]; // 116-118 m_effectMiscValueB
1144 uint32 EffectTriggerSpell
[3]; // 119-121 m_effectTriggerSpell
1145 float EffectPointsPerComboPoint
[3]; // 122-124 m_effectPointsPerCombo
1146 uint32 EffectSpellClassMaskA
[3]; // 125-127 m_effectSpellClassMaskA
1147 uint32 EffectSpellClassMaskB
[3]; // 128-130 m_effectSpellClassMaskB
1148 uint32 EffectSpellClassMaskC
[3]; // 131-133 m_effectSpellClassMaskC
1149 uint32 SpellVisual
[2]; // 134-135 m_spellVisualID
1150 uint32 SpellIconID
; // 136 m_spellIconID
1151 uint32 activeIconID
; // 137 m_activeIconID
1152 //uint32 spellPriority; // 138 m_spellPriority not used
1153 char* SpellName
[16]; // 139-154 m_name_lang
1154 //uint32 SpellNameFlag; // 155 not used
1155 char* Rank
[16]; // 156-171 m_nameSubtext_lang
1156 //uint32 RankFlags; // 172 not used
1157 //char* Description[16]; // 173-188 m_description_lang not used
1158 //uint32 DescriptionFlags; // 189 not used
1159 //char* ToolTip[16]; // 190-205 m_auraDescription_lang not used
1160 //uint32 ToolTipFlags; // 206 not used
1161 uint32 ManaCostPercentage
; // 207 m_manaCostPct
1162 uint32 StartRecoveryCategory
; // 208 m_startRecoveryCategory
1163 uint32 StartRecoveryTime
; // 209 m_startRecoveryTime
1164 uint32 MaxTargetLevel
; // 210 m_maxTargetLevel
1165 uint32 SpellFamilyName
; // 211 m_spellClassSet
1166 uint64 SpellFamilyFlags
; // 212-213 m_spellClassMask NOTE: size is 12 bytes!!!
1167 uint32 SpellFamilyFlags2
; // 214 addition to m_spellClassMask
1168 uint32 MaxAffectedTargets
; // 215 m_maxTargets
1169 uint32 DmgClass
; // 216 m_defenseType
1170 uint32 PreventionType
; // 217 m_preventionType
1171 //uint32 StanceBarOrder; // 218 m_stanceBarOrder not used
1172 float DmgMultiplier
[3]; // 219-221 m_effectChainAmplitude
1173 //uint32 MinFactionId; // 222 m_minFactionID not used
1174 //uint32 MinReputation; // 223 m_minReputation not used
1175 //uint32 RequiredAuraVision; // 224 m_requiredAuraVision not used
1176 uint32 TotemCategory
[2]; // 225-226 m_requiredTotemCategoryID
1177 int32 AreaGroupId
; // 227 m_requiredAreaGroupId
1178 uint32 SchoolMask
; // 228 m_schoolMask
1179 uint32 runeCostID
; // 229 m_runeCostID
1180 //uint32 spellMissileID; // 230 m_spellMissileID not used
1183 // prevent creating custom entries (copy data from original in fact)
1184 SpellEntry(SpellEntry
const&); // DON'T must have implementation
1187 typedef std::set
<uint32
> SpellCategorySet
;
1188 typedef std::map
<uint32
,SpellCategorySet
> SpellCategoryStore
;
1189 typedef std::set
<uint32
> PetFamilySpellsSet
;
1190 typedef std::map
<uint32
,PetFamilySpellsSet
> PetFamilySpellsStore
;
1192 struct SpellCastTimesEntry
1195 int32 CastTime
; // 1
1196 //float CastTimePerLevel; // 2 unsure / per skill?
1197 //int32 MinCastTime; // 3 unsure
1200 struct SpellFocusObjectEntry
1203 //char* Name[16]; // 1-15 unused
1204 // 16 string flags, unused
1207 // stored in SQL table
1208 struct SpellThreatEntry
1214 struct SpellRadiusEntry
1221 struct SpellRangeEntry
1228 struct SpellRuneCostEntry
1231 uint32 RuneCost
[3]; // 1-3 (0=blood, 1=frost, 2=unholy)
1232 uint32 runePowerGain
; // 4
1234 bool NoRuneCost() const { return RuneCost
[0] == 0 && RuneCost
[1] == 0 && RuneCost
[2] == 0; }
1235 bool NoRunicPowerGain() const { return runePowerGain
== 0; }
1238 struct SpellShapeshiftEntry
1241 //uint32 buttonPosition; // 1 unused
1242 //char* Name[16]; // 2-17 unused
1243 //uint32 NameFlags; // 18 unused
1244 uint32 flags1
; // 19
1245 int32 creatureType
; // 20 <=0 humanoid, other normal creature types
1246 //uint32 unk1; // 21 unused
1247 uint32 attackSpeed
; // 22
1248 //uint32 modelID; // 23 unused, alliance modelid (where horde case?)
1249 //uint32 unk2; // 24 unused
1250 //uint32 unk3; // 25 unused
1251 //uint32 unk4; // 26 unused
1252 //uint32 unk5; // 27 unused
1253 //uint32 unk6; // 28 unused
1254 //uint32 unk7; // 29 unused
1255 //uint32 unk8; // 30 unused
1256 //uint32 unk9; // 31 unused
1257 //uint32 unk10; // 32 unused
1258 //uint32 unk11; // 33 unused
1259 //uint32 unk12; // 34 unused
1262 struct SpellDurationEntry
1268 struct SpellItemEnchantmentEntry
1270 uint32 ID
; // 0 m_ID
1271 //uint32 charges; // 1 m_charges
1272 uint32 type
[3]; // 2-4 m_effect[3]
1273 uint32 amount
[3]; // 5-7 m_effectPointsMin[3]
1274 //uint32 amount2[3] // 8-10 m_effectPointsMax[3]
1275 uint32 spellid
[3]; // 11-13 m_effectArg[3]
1276 char* description
[16]; // 14-30 m_name_lang[16]
1277 //uint32 descriptionFlags; // 31 name flags
1278 uint32 aura_id
; // 32 m_itemVisual
1279 uint32 slot
; // 33 m_flags
1280 uint32 GemID
; // 34 m_src_itemID
1281 uint32 EnchantmentCondition
; // 35 m_condition_id
1282 //uint32 requiredSkill; // 36 m_requiredSkillID
1283 //uint32 requiredSkillValue; // 37 m_requiredSkillRank
1286 struct SpellItemEnchantmentConditionEntry
1288 uint32 ID
; // 0 m_ID
1289 uint8 Color
[5]; // 1-5 m_lt_operandType[5]
1290 //uint32 LT_Operand[5]; // 6-10 m_lt_operand[5]
1291 uint8 Comparator
[5]; // 11-15 m_operator[5]
1292 uint8 CompareColor
[5]; // 15-20 m_rt_operandType[5]
1293 uint32 Value
[5]; // 21-25 m_rt_operand[5]
1294 //uint8 Logic[5] // 25-30 m_logic[5]
1297 struct StableSlotPricesEntry
1303 /*struct SummonPropertiesEntry
1306 uint32 Group; // 1, 0 - can't be controlled?, 1 - something guardian?, 2 - pet?, 3 - something controllable?, 4 - taxi/mount?
1307 uint32 Unk2; // 2, 14 rows > 0
1308 uint32 Type; // 3, see enum
1309 uint32 Slot; // 4, 0-6
1315 uint32 TalentID
; // 0
1316 uint32 TalentTab
; // 1 index in TalentTab.dbc (TalentTabEntry)
1319 uint32 RankID
[5]; // 4-8
1320 // 9-12 not used, always 0, maybe not used high ranks
1321 uint32 DependsOn
; // 13 index in Talent.dbc (TalentEntry)
1323 uint32 DependsOnRank
; // 16
1325 //uint32 unk1; // 19, 0 or 1
1326 //uint32 unk2; // 20, all 0
1327 //uint32 unkFlags1; // 21, related to hunter pet talents
1328 //uint32 unkFlags2; // 22, related to hunter pet talents
1331 struct TalentTabEntry
1333 uint32 TalentTabID
; // 0
1334 //char* name[16]; // 1-16, unused
1335 //uint32 nameFlags; // 17, unused
1336 //unit32 spellicon; // 18
1338 uint32 ClassMask
; // 20
1339 uint32 petTalentMask
; // 21
1340 uint32 tabpage
; // 22
1341 //char* internalname; // 23
1344 struct TaxiNodesEntry
1346 uint32 ID
; // 0 m_ID
1347 uint32 map_id
; // 1 m_ContinentID
1351 //char* name[16]; // 5-21 m_Name_lang
1353 uint32 MountCreatureID
[2]; // 23-24 m_MountCreatureID[2]
1356 struct TaxiPathEntry
1358 uint32 ID
; // 0 m_ID
1359 uint32 from
; // 1 m_FromTaxiNode
1360 uint32 to
; // 2 m_ToTaxiNode
1361 uint32 price
; // 3 m_Cost
1364 struct TaxiPathNodeEntry
1367 uint32 path
; // 1 m_PathID
1368 uint32 index
; // 2 m_NodeIndex
1369 uint32 mapid
; // 3 m_ContinentID
1370 float x
; // 4 m_LocX
1371 float y
; // 5 m_LocY
1372 float z
; // 6 m_LocZ
1373 uint32 actionFlag
; // 7 m_flags
1374 uint32 delay
; // 8 m_delay
1375 // 9 m_arrivalEventID
1376 // 10 m_departureEventID
1379 struct TotemCategoryEntry
1382 //char* name[16]; // 1-16
1383 // 17 string flags, unused
1384 uint32 categoryType
; // 18 (one for specialization)
1385 uint32 categoryMask
; // 19 (compatibility mask for same type: different for totems, compatible from high to low for rods)
1391 uint32 m_flags
; // 1
1392 float m_turnSpeed
; // 2
1393 float m_pitchSpeed
; // 3
1394 float m_pitchMin
; // 4
1395 float m_pitchMax
; // 5
1396 uint32 m_seatID
[8]; // 6-13
1397 float m_mouseLookOffsetPitch
; // 14
1398 float m_cameraFadeDistScalarMin
; // 15
1399 float m_cameraFadeDistScalarMax
; // 16
1400 float m_cameraPitchOffset
; // 17
1401 int m_powerType
[3]; // 18-20
1402 int m_powerToken
[3]; // 21-23
1403 float m_facingLimitRight
; // 24
1404 float m_facingLimitLeft
; // 25
1405 float m_msslTrgtTurnLingering
; // 26
1406 float m_msslTrgtPitchLingering
; // 27
1407 float m_msslTrgtMouseLingering
; // 28
1408 float m_msslTrgtEndOpacity
; // 29
1409 float m_msslTrgtArcSpeed
; // 30
1410 float m_msslTrgtArcRepeat
; // 31
1411 float m_msslTrgtArcWidth
; // 32
1412 float m_msslTrgtImpactRadius
[2]; // 33-34
1413 char* m_msslTrgtArcTexture
; // 35
1414 char* m_msslTrgtImpactTexture
; // 36
1415 char* m_msslTrgtImpactModel
[2]; // 37-38
1416 float m_cameraYawOffset
; // 39
1417 uint32 m_uiLocomotionType
; // 40
1418 float m_msslTrgtImpactTexRadius
; // 41
1419 uint32 m_uiSeatIndicatorType
; // 42
1422 struct VehicleSeatEntry
1425 uint32 m_flags
; // 1
1426 int32 m_attachmentID
; // 2
1427 float m_attachmentOffsetX
; // 3
1428 float m_attachmentOffsetY
; // 4
1429 float m_attachmentOffsetZ
; // 5
1430 float m_enterPreDelay
; // 6
1431 float m_enterSpeed
; // 7
1432 float m_enterGravity
; // 8
1433 float m_enterMinDuration
; // 9
1434 float m_enterMaxDuration
; // 10
1435 float m_enterMinArcHeight
; // 11
1436 float m_enterMaxArcHeight
; // 12
1437 int32 m_enterAnimStart
; // 13
1438 int32 m_enterAnimLoop
; // 14
1439 int32 m_rideAnimStart
; // 15
1440 int32 m_rideAnimLoop
; // 16
1441 int32 m_rideUpperAnimStart
; // 17
1442 int32 m_rideUpperAnimLoop
; // 18
1443 float m_exitPreDelay
; // 19
1444 float m_exitSpeed
; // 20
1445 float m_exitGravity
; // 21
1446 float m_exitMinDuration
; // 22
1447 float m_exitMaxDuration
; // 23
1448 float m_exitMinArcHeight
; // 24
1449 float m_exitMaxArcHeight
; // 25
1450 int32 m_exitAnimStart
; // 26
1451 int32 m_exitAnimLoop
; // 27
1452 int32 m_exitAnimEnd
; // 28
1453 float m_passengerYaw
; // 29
1454 float m_passengerPitch
; // 30
1455 float m_passengerRoll
; // 31
1456 int32 m_passengerAttachmentID
; // 32
1457 int32 m_vehicleEnterAnim
; // 33
1458 int32 m_vehicleExitAnim
; // 34
1459 int32 m_vehicleRideAnimLoop
; // 35
1460 int32 m_vehicleEnterAnimBone
; // 36
1461 int32 m_vehicleExitAnimBone
; // 37
1462 int32 m_vehicleRideAnimLoopBone
; // 38
1463 float m_vehicleEnterAnimDelay
; // 39
1464 float m_vehicleExitAnimDelay
; // 40
1465 uint32 m_vehicleAbilityDisplay
; // 41
1466 uint32 m_enterUISoundID
; // 42
1467 uint32 m_exitUISoundID
; // 43
1468 int32 m_uiSkin
; // 44
1469 uint32 m_flagsB
; // 45
1472 struct WorldMapAreaEntry
1476 uint32 area_id
; // 2 index (continent 0 areas ignored)
1477 //char* internal_name // 3
1482 int32 virtual_map_id
; // 8 -1 (map_id have correct map) other: virtual map where zone show (map_id - where zone in fact internally)
1485 struct WorldSafeLocsEntry
1492 //char* name[16] // 5-20 name, unused
1493 // 21 name flags, unused
1496 struct WorldMapOverlayEntry
1499 uint32 areatableID
; // 2
1502 // GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
1503 #if defined( __GNUC__ )
1509 // Structures not used for casting to loaded DBC data and not required then packing
1510 struct TalentSpellPos
1512 TalentSpellPos() : talent_id(0), rank(0) {}
1513 TalentSpellPos(uint16 _talent_id
, uint8 _rank
) : talent_id(_talent_id
), rank(_rank
) {}
1519 typedef std::map
<uint32
,TalentSpellPos
> TalentSpellPosMap
;
1521 struct TaxiPathBySourceAndDestination
1523 TaxiPathBySourceAndDestination() : ID(0),price(0) {}
1524 TaxiPathBySourceAndDestination(uint32 _id
,uint32 _price
) : ID(_id
),price(_price
) {}
1529 typedef std::map
<uint32
,TaxiPathBySourceAndDestination
> TaxiPathSetForSource
;
1530 typedef std::map
<uint32
,TaxiPathSetForSource
> TaxiPathSetBySource
;
1534 TaxiPathNode() : mapid(0), x(0),y(0),z(0),actionFlag(0),delay(0) {}
1535 TaxiPathNode(uint32 _mapid
, float _x
, float _y
, float _z
, uint32 _actionFlag
, uint32 _delay
) : mapid(_mapid
), x(_x
),y(_y
),z(_z
),actionFlag(_actionFlag
),delay(_delay
) {}
1544 typedef std::vector
<TaxiPathNode
> TaxiPathNodeList
;
1545 typedef std::vector
<TaxiPathNodeList
> TaxiPathNodesByPath
;
1547 #define TaxiMaskSize 12
1548 typedef uint32 TaxiMask
[TaxiMaskSize
];