Implemented ACHIEVEMENT_FLAG_REALM_FIRST_REACH
[AHbot.git] / src / shared / Database / DBCStructure.h
blobc98c87fb1c1c320a932634e7792f587584a1cf08
1 /*
2 * Copyright (C) 2005-2008 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
22 #include "DBCEnums.h"
23 #include "Platform/Define.h"
25 #include <map>
26 #include <set>
27 #include <vector>
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__ )
33 #pragma pack(1)
34 #else
35 #pragma pack(push,1)
36 #endif
38 struct AchievementEntry
40 uint32 ID; // 0
41 uint32 factionFlag; // 1 -1=all, 0=horde, 1=alliance
42 uint32 mapID; // 2 -1=none
43 //char *name[16]; // 3-19
44 //uint32 name_flags; // 20
45 //char *description[16]; // 21-36
46 //uint32 desc_flags; // 37
47 uint32 categoryId; // 38
48 uint32 points; // 39 reward points
49 //uint32 OrderInCategory; // 40
50 uint32 flags; // 41
51 //uint32 flags; // 42 not flags, some unknown value...
52 //char *unk1[16]; // 43-58
53 //uint32 unk_flags; // 59
54 //uint32 count; // 60
55 //uint32 refAchievement; // 61
58 struct AchievementCategoryEntry
60 uint32 ID; // 0
61 uint32 parentCategory; // 1 -1 for main category
62 //char *name[16]; // 2-17
63 //uint32 name_flags; // 18
64 uint32 sortOrder; // 19
67 struct AchievementCriteriaEntry
69 uint32 ID; // 0
70 uint32 referredAchievement; // 1
71 uint32 requiredType; // 2
72 union
74 // ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE = 0
75 // TODO: also used for player deaths..
76 struct
78 uint32 creatureID; // 3
79 uint32 creatureCount; // 4
80 } kill_creature;
82 // ACHIEVEMENT_CRITERIA_TYPE_WIN_BG = 1
83 // TODO: there are further criterias instead just winning
84 struct
86 uint32 bgMapID; // 3
87 uint32 winCount; // 4
88 } win_bg;
90 // ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL = 5
91 struct
93 uint32 unused; // 3
94 uint32 level; // 4
95 } reach_level;
97 // ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL = 7
98 struct
100 uint32 skillID; // 3
101 uint32 skillLevel; // 4
102 } reach_skill_level;
104 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ACHIEVEMENT = 8
105 struct
107 uint32 linkedAchievement; // 3
108 } complete_achievement;
110 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT = 9
111 struct
113 uint32 unused; // 3
114 uint32 totalQuestCount; // 4
115 } complete_quest_count;
117 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY = 10
118 struct
120 uint32 unused; // 3
121 uint32 numberOfDays; // 4
122 } complete_daily_quest_daily;
124 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE = 11
125 struct
127 uint32 zoneID; // 3
128 uint32 questCount; // 4
129 } complete_quests_in_zone;
131 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST = 14
132 struct
134 uint32 unused; // 3
135 uint32 questCount; // 4
136 } complete_daily_quest;
138 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND= 15
139 struct
141 uint32 mapID; // 3
142 } complete_battleground;
144 // ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP= 16
145 struct
147 uint32 mapID; // 3
148 } death_at_map;
150 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID = 19
151 struct
153 uint32 groupSize; // 3 can be 5, 10 or 25
154 } complete_raid;
156 // ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE = 20
157 struct
159 uint32 creatureEntry; // 3
160 } killed_by_creature;
162 // ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING = 24
163 struct
165 uint32 unused; // 3
166 uint32 fallHeight; // 4
167 } fall_without_dying;
169 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST = 27
170 struct
172 uint32 questID; // 3
173 uint32 questCount; // 4
174 } complete_quest;
176 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET = 28
177 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2= 69
178 struct
180 uint32 spellID; // 3
181 uint32 spellCount; // 4
182 } be_spell_target;
184 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL= 29
185 struct
187 uint32 spellID; // 3
188 uint32 castCount; // 4
189 } cast_spell;
191 // ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA = 31
192 struct
194 uint32 areaID; // 3 Reference to AreaTable.dbc
195 uint32 killCount; // 4
196 } honorable_kill_at_area;
198 // ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA = 32
199 struct
201 uint32 mapID; // 3 Reference to Map.dbc
202 } win_arena;
204 // ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA = 33
205 struct
207 uint32 mapID; // 3 Reference to Map.dbc
208 } play_arena;
210 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL = 34
211 struct
213 uint32 spellID; // 3 Reference to Map.dbc
214 } learn_spell;
216 // ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM = 36
217 struct
219 uint32 itemID; // 3
220 uint32 itemCount; // 4
221 } own_item;
223 // ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA = 37
224 struct
226 uint32 unused; // 3
227 uint32 count; // 4
228 uint32 flag; // 5 4=in a row
229 } win_rated_arena;
231 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING = 38
232 struct
234 uint32 teamtype; // 3 {2,3,5}
235 } highest_team_rating;
237 // ACHIEVEMENT_CRITERIA_TYPE_REACH_TEAM_RATING = 39
238 struct
240 uint32 teamtype; // 3 {2,3,5}
241 uint32 teamrating; // 4
242 } reach_team_rating;
244 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL = 40
245 struct
247 uint32 skillID; // 3
248 uint32 skillLevel; // 4 apprentice=1, journeyman=2, expert=3, artisan=4, master=5, grand master=6
249 } learn_skill_level;
251 // ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM = 41
252 struct
254 uint32 itemID; // 3
255 uint32 itemCount; // 4
256 } use_item;
258 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM = 42
259 struct
261 uint32 itemID; // 3
262 uint32 itemCount; // 4
263 } loot_item;
265 // ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA = 43
266 struct
268 // TODO: This rank is _NOT_ the index from AreaTable.dbc
269 uint32 areaReference; // 3
270 } explore_area;
272 // ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK= 44
273 struct
275 // TODO: This rank is _NOT_ the index from CharTitles.dbc
276 uint32 rank; // 3
277 } own_rank;
279 // ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT= 45
280 struct
282 uint32 unused; // 3
283 uint32 numberOfSlots; // 4
284 } buy_bank_slot;
286 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION= 46
287 struct
289 uint32 factionID; // 3
290 uint32 reputationAmount; // 4 Total reputation amount, so 42000 = exalted
291 } gain_reputation;
293 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION= 47
294 struct
296 uint32 unused; // 3
297 uint32 numberOfExaltedFactions; // 4
298 } gain_exalted_reputation;
300 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM = 49
301 // TODO: where is the required itemlevel stored?
302 struct
304 uint32 itemSlot; // 3
305 } equip_epic_item;
307 // ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT= 50
308 struct
310 uint32 rollValue; // 3
311 uint32 count; // 4
312 } roll_need_on_loot;
314 // ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS = 52
315 struct
317 uint32 classID; // 3
318 uint32 count; // 4
319 } hk_class;
321 // ACHIEVEMENT_CRITERIA_TYPE_HK_RACE = 53
322 struct
324 uint32 raceID; // 3
325 uint32 count; // 4
326 } hk_race;
328 // ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE = 54
329 // TODO: where is the information about the target stored?
330 struct
332 uint32 emoteID; // 3
333 } do_emote;
335 // ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE = 55
336 struct
338 uint32 unused; // 3
339 uint32 count; // 4
340 uint32 flag; // 5 =3 for battleground healing
341 uint32 mapid; // 6
342 } healing_done;
344 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM = 57
345 struct
347 uint32 itemID; // 3
348 } equip_item;
351 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY = 67
352 struct
354 uint32 unused; // 3
355 uint32 goldInCopper; // 4
356 } loot_money;
358 // ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT = 68
359 struct
361 uint32 goEntry; // 3
362 uint32 useCount; // 4
363 } use_gameobject;
365 // ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL= 70
366 // TODO: are those special criteria stored in the dbc or do we have to add another sql table?
367 struct
369 uint32 unused; // 3
370 uint32 killCount; // 4
371 } special_pvp_kill;
373 // ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT = 72
374 struct
376 uint32 goEntry; // 3
377 uint32 lootCount; // 4
378 } fish_in_gameobject;
380 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS= 75
381 struct
383 uint32 skillLine; // 3
384 uint32 spellCount; // 4
385 } learn_skilline_spell;
387 // ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL = 76
388 struct
390 uint32 unused; // 3
391 uint32 duelCount; // 4
392 } win_duel;
394 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_POWER = 96
395 struct
397 uint32 powerType; // 3 mana=0, 1=rage, 3=energy, 6=runic power
398 } highest_power;
400 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_STAT = 97
401 struct
403 uint32 statType; // 3 4=spirit, 3=int, 2=stamina, 1=agi, 0=strength
404 } highest_stat;
406 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_SPELLPOWER = 98
407 struct
409 uint32 spellSchool; // 3
410 } highest_spellpower;
412 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_RATING = 100
413 struct
415 uint32 ratingType; // 3
416 } highest_rating;
418 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE = 109
419 struct
421 uint32 lootType; // 3 3=fishing, 2=pickpocket, 4=disentchant
422 uint32 lootTypeCount; // 4
423 } loot_type;
425 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2 = 110
426 struct
428 uint32 skillLine; // 3
429 uint32 spellCount; // 4
430 } cast_spell2;
432 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE= 112
433 struct
435 uint32 skillLine; // 3
436 uint32 spellCount; // 4
437 } learn_skill_line;
439 // ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL = 113
440 struct
442 uint32 unused; // 3
443 uint32 killCount; // 4
444 } honorable_kill;
446 struct
448 uint32 field3; // 3 main requirement
449 uint32 field4; // 4 main requirement count
450 uint32 additionalRequirement1_type; // 5 additional requirement 1 type
451 uint32 additionalRequirement1_value; // 6 additional requirement 1 value
452 uint32 additionalRequirement2_type; // 7 additional requirement 2 type
453 uint32 additionalRequirement2_value; // 8 additional requirement 1 value
454 } raw;
456 //char* name[16]; // 9-24
457 //uint32 name_flags; // 25
458 uint32 completionFlag; // 26
459 uint32 groupFlag; // 27
460 uint32 timeLimit; // 29 time limit in seconds
461 //uint32 unk1; // 30
464 struct AreaTableEntry
466 uint32 ID; // 0
467 uint32 mapid; // 1
468 uint32 zone; // 2 if 0 then it's zone, else it's zone id of this area
469 uint32 exploreFlag; // 3, main index
470 uint32 flags; // 4, unknown value but 312 for all cities
471 // 5-9 unused
472 int32 area_level; // 10
473 char* area_name[16]; // 11-26
474 // 27, string flags, unused
475 uint32 team; // 28
478 struct AreaTriggerEntry
480 uint32 id; // 0 m_ID
481 uint32 mapid; // 1 m_ContinentID
482 float x; // 2 m_x
483 float y; // 3 m_y
484 float z; // 4 m_z
485 float radius; // 5 m_radius
486 float box_x; // 6 m_box_length extent x edge
487 float box_y; // 7 m_box_width extent y edge
488 float box_z; // 8 m_box_heigh extent z edge
489 float box_orientation; // 9 m_box_yaw extent rotation by about z axis
492 struct BankBagSlotPricesEntry
494 uint32 ID;
495 uint32 price;
498 struct BarberShopStyleEntry
500 uint32 Id; // 0
501 //uint32 type; // 1 value 0 -> hair, value 2 -> facialhair
502 //char* name[16]; // 2-17 name of hair style
503 //uint32 name_flags; // 18
504 //uint32 unk_name[16]; // 19-34, all empty
505 //uint32 unk_flags; // 35
506 //float unk3; // 36 values 1 and 0,75
507 //uint32 race; // 37 race
508 //uint32 gender; // 38 0 -> male, 1 -> female
509 uint32 hair_id; // 39 real ID to hair/facial hair
512 struct BattlemasterListEntry
514 uint32 id; // 0
515 int32 mapid[8]; // 1-8 mapid
516 uint32 type; // 9 (3 - BG, 4 - arena)
517 uint32 minlvl; // 10
518 uint32 maxlvl; // 11
519 uint32 maxplayersperteam; // 12
520 // 13 minplayers
521 // 14 0 or 9
522 // 15
523 char* name[16]; // 16-31
524 // 32 string flag, unused
525 // 33 unused
528 struct CharTitlesEntry
530 uint32 ID; // 0, title ids, for example in Quest::GetCharTitleId()
531 //uint32 unk1; // 1 flags?
532 //char* name[16]; // 2-17, unused
533 // 18 string flag, unused
534 //char* name2[16]; // 19-34, unused
535 // 35 string flag, unused
536 uint32 bit_index; // 36 used in PLAYER_CHOSEN_TITLE and 1<<index in PLAYER__FIELD_KNOWN_TITLES
539 struct ChatChannelsEntry
541 uint32 ChannelID; // 0
542 uint32 flags; // 1
543 char* pattern[16]; // 3-18
544 // 19 string flags, unused
545 //char* name[16]; // 20-35 unused
546 // 36 string flag, unused
549 struct ChrClassesEntry
551 uint32 ClassID; // 0
552 // 1-2, unused
553 uint32 powerType; // 3
554 // 4, unused
555 //char* name[16]; // 5-20 unused
556 // 21 string flag, unused
557 //char* string1[16]; // 21-36 unused
558 // 37 string flag, unused
559 //char* string2[16]; // 38-53 unused
560 // 54 string flag, unused
561 // 55, unused
562 uint32 spellfamily; // 56
563 // 57, unused
564 uint32 CinematicSequence; // 58 id from CinematicSequences.dbc
567 struct ChrRacesEntry
569 uint32 RaceID; // 0
570 // 1 unused
571 uint32 FactionID; // 2 facton template id
572 // 3 unused
573 uint32 model_m; // 4
574 uint32 model_f; // 5
575 // 6-7 unused
576 uint32 TeamID; // 8 (7-Alliance 1-Horde)
577 // 9-12 unused
578 uint32 CinematicSequence; // 13 id from CinematicSequences.dbc
579 char* name[16]; // 14-29 used for DBC language detection/selection
580 // 30 string flags, unused
581 //char* string1[16]; // 31-46 used for DBC language detection/selection
582 // 47 string flags, unused
583 //char* string2[16]; // 48-63 used for DBC language detection/selection
584 // 64 string flags, unused
585 // 65-67 unused
586 uint32 addon; // 68 (0 - original race, 1 - tbc addon, ...)
589 struct CreatureDisplayInfoEntry
591 uint32 Displayid; // 0 m_ID
592 // 1 m_modelID
593 // 2 m_soundID
594 // 3 m_extendedDisplayInfoID
595 float scale; // 4 m_creatureModelScale
596 // 5 m_creatureModelAlpha
597 // 6-8 m_textureVariation[3]
598 // 9 m_portraitTextureName
599 // 10 m_sizeClass
600 // 11 m_bloodID
601 // 12 m_NPCSoundID
602 // 13 m_particleColorID
603 // 14 m_creatureGeosetData
604 // 15 m_objectEffectPackageID
607 struct CreatureFamilyEntry
609 uint32 ID; // 0 m_ID
610 float minScale; // 1 m_minScale
611 uint32 minScaleLevel; // 2 m_minScaleLevel
612 float maxScale; // 3 m_maxScale
613 uint32 maxScaleLevel; // 4 m_maxScaleLevel
614 uint32 skillLine[2]; // 5-6 m_skillLine
615 uint32 petFoodMask; // 7 m_petFoodMask
616 uint32 petTalentType; // 8 m_petTalentType
617 // 9 m_categoryEnumID
618 char* Name[16]; // 10-25 m_name_lang
619 // 26 string flags, unused
620 // 27 m_iconFile unused
623 struct CreatureSpellDataEntry
625 uint32 ID; // 0 m_ID
626 //uint32 spellId[4]; // 1-4 m_spells hunter pet learned spell (for later use)
627 //uint32 availability[4]; // 4-7 m_availability
630 struct DurabilityCostsEntry
632 uint32 Itemlvl; // 0
633 uint32 multiplier[29]; // 1-29
636 struct DurabilityQualityEntry
638 uint32 Id; // 0
639 float quality_mod; // 1
642 struct EmotesTextEntry
644 uint32 Id;
645 uint32 textid;
648 struct FactionEntry
650 uint32 ID; // 0 m_ID
651 int32 reputationListID; // 1 m_reputationIndex
652 uint32 BaseRepRaceMask[4]; // 2-5 m_reputationRaceMask Base reputation race masks (see enum Races)
653 uint32 BaseRepClassMask[4]; // 6-9 m_reputationClassMask Base reputation class masks (see enum Classes)
654 int32 BaseRepValue[4]; // 10-13 m_reputationBase Base reputation values
655 uint32 ReputationFlags[4]; // 14-17 m_reputationFlags Default flags to apply
656 uint32 team; // 18 m_parentFactionID enum Team
657 char* name[16]; // 19-34 m_name_lang
658 // 35 string flags, unused
659 //char* description[16]; // 36-51 m_description_lang unused
660 // 52 string flags, unused
663 struct FactionTemplateEntry
665 uint32 ID; // 0 m_ID
666 uint32 faction; // 1 m_faction
667 uint32 factionFlags; // 2 m_flags specific flags for that faction
668 uint32 ourMask; // 3 m_factionGroup if mask set (see FactionMasks) then faction included in masked team
669 uint32 friendlyMask; // 4 m_friendGroup if mask set (see FactionMasks) then faction friendly to masked team
670 uint32 hostileMask; // 5 m_enemyGroup if mask set (see FactionMasks) then faction hostile to masked team
671 uint32 enemyFaction1; // 6 m_enemies[4]
672 uint32 enemyFaction2; // 7
673 uint32 enemyFaction3; // 8
674 uint32 enemyFaction4; // 9
675 uint32 friendFaction1; // 10 m_friend[4]
676 uint32 friendFaction2; // 11
677 uint32 friendFaction3; // 12
678 uint32 friendFaction4; // 13
679 //------------------------------------------------------- end structure
681 // helpers
682 bool IsFriendlyTo(FactionTemplateEntry const& entry) const
684 if(enemyFaction1 == entry.faction || enemyFaction2 == entry.faction || enemyFaction3 == entry.faction || enemyFaction4 == entry.faction )
685 return false;
686 if(friendFaction1 == entry.faction || friendFaction2 == entry.faction || friendFaction3 == entry.faction || friendFaction4 == entry.faction )
687 return true;
688 return (friendlyMask & entry.ourMask) || (ourMask & entry.friendlyMask);
690 bool IsHostileTo(FactionTemplateEntry const& entry) const
692 if(enemyFaction1 == entry.faction || enemyFaction2 == entry.faction || enemyFaction3 == entry.faction || enemyFaction4 == entry.faction )
693 return true;
694 if(friendFaction1 == entry.faction || friendFaction2 == entry.faction || friendFaction3 == entry.faction || friendFaction4 == entry.faction )
695 return false;
696 return (hostileMask & entry.ourMask) != 0;
698 bool IsHostileToPlayers() const { return (hostileMask & FACTION_MASK_PLAYER) !=0; }
699 bool IsNeutralToAll() const { return hostileMask == 0 && friendlyMask == 0 && enemyFaction1==0 && enemyFaction2==0 && enemyFaction3==0 && enemyFaction4==0; }
700 bool IsContestedGuardFaction() const { return (factionFlags & FACTION_TEMPLATE_FLAG_CONTESTED_GUARD)!=0; }
703 struct GemPropertiesEntry
705 uint32 ID;
706 uint32 spellitemenchantement;
707 uint32 color;
710 struct GlyphPropertiesEntry
712 uint32 Id;
713 uint32 SpellId;
714 uint32 TypeFlags;
715 uint32 Unk1;
718 struct GlyphSlotEntry
720 uint32 Id;
721 uint32 TypeFlags;
722 uint32 Order;
725 #define GT_MAX_LEVEL 100
727 struct GtBarberShopCostBaseEntry
729 float cost;
732 struct GtCombatRatingsEntry
734 float ratio;
737 struct GtChanceToMeleeCritBaseEntry
739 float base;
742 struct GtChanceToMeleeCritEntry
744 float ratio;
747 struct GtChanceToSpellCritBaseEntry
749 float base;
752 struct GtChanceToSpellCritEntry
754 float ratio;
757 struct GtOCTRegenHPEntry
759 float ratio;
762 //struct GtOCTRegenMPEntry
764 // float ratio;
765 //};
767 struct GtRegenHPPerSptEntry
769 float ratio;
772 struct GtRegenMPPerSptEntry
774 float ratio;
777 struct ItemEntry
779 uint32 ID;
780 //uint32 Class;
781 //uint32 SubClass;
782 //uint32 Unk0;
783 //uint32 Material;
784 uint32 DisplayId;
785 uint32 InventoryType;
786 uint32 Sheath;
789 struct ItemDisplayInfoEntry
791 uint32 ID;
792 uint32 randomPropertyChance;
795 //struct ItemCondExtCostsEntry
797 // uint32 ID;
798 // uint32 condExtendedCost; // ItemPrototype::CondExtendedCost
799 // uint32 itemextendedcostentry; // ItemPrototype::ExtendedCost
800 // uint32 arenaseason; // arena season number(1-4)
801 //};
803 struct ItemExtendedCostEntry
805 uint32 ID; // 0 extended-cost entry id
806 uint32 reqhonorpoints; // 1 required honor points
807 uint32 reqarenapoints; // 2 required arena points
808 uint32 reqitem[5]; // 3-7 required item id
809 uint32 reqitemcount[5]; // 8-12 required count of 1st item
810 uint32 reqpersonalarenarating; // 13 required personal arena rating
813 struct ItemRandomPropertiesEntry
815 uint32 ID; // 0 m_ID
816 //char* internalName // 1 m_Name
817 uint32 enchant_id[5]; // 2-6 m_Enchantment
818 //char* nameSuffix[16] // 7-22 m_name_lang
819 // 23 nameSufix flags
822 struct ItemRandomSuffixEntry
824 uint32 ID; // 0 m_ID
825 //char* name[16] // 1-16 m_name_lang unused
826 // 17, name flags, unused
827 // 18 m_internalName, unused
828 uint32 enchant_id[5]; // 19-21 m_enchantment
829 uint32 prefix[5]; // 22-24 m_allocationPct
832 struct ItemSetEntry
834 //uint32 id // 0 m_ID
835 char* name[16]; // 1-16 m_name_lang
836 // 17 string flags, unused
837 //uint32 itemId[17]; // 18-34 m_itemID
838 uint32 spells[8]; // 35-42 m_setSpellID
839 uint32 items_to_triggerspell[8]; // 43-50 m_setThreshold
840 uint32 required_skill_id; // 51 m_requiredSkill
841 uint32 required_skill_value; // 52 m_requiredSkillRank
844 struct LockEntry
846 uint32 ID; // 0 m_ID
847 uint32 Type[8]; // 1-8 m_Type
848 uint32 Index[8]; // 9-16 m_Index
849 uint32 Skill[8]; // 17-24 m_Skill
850 //uint32 Action[8]; // 25-32 m_Action
853 struct MailTemplateEntry
855 uint32 ID; // 0
856 //char* subject[16]; // 1-16
857 // 17 name flags, unused
858 //char* content[16]; // 18-33
861 struct MapEntry
863 uint32 MapID; // 0
864 //char* internalname; // 1 unused
865 uint32 map_type; // 2
866 // 3 0 or 1 for battlegrounds (not arenas)
867 char* name[16]; // 4-19
868 // 20 name flags, unused
869 uint32 linked_zone; // 21 common zone for instance and continent map
870 //char* hordeIntro[16]; // 23-37 text for PvP Zones
871 // 38 intro text flags
872 //char* allianceIntro[16]; // 39-54 text for PvP Zones
873 // 55 intro text flags
874 uint32 multimap_id; // 56
875 // 57
876 //chat* unknownText1[16]; // 58-73 unknown empty text fields, possible normal Intro text.
877 // 74 text flags
878 //chat* heroicIntroText[16]; // 75-90 heroic mode requirement text
879 // 91 text flags
880 //chat* unknownText2[16]; // 92-107 unknown empty text fields
881 // 108 text flags
882 int32 entrance_map; // 109 map_id of entrance map
883 float entrance_x; // 110 entrance x coordinate (if exist single entry)
884 float entrance_y; // 111 entrance y coordinate (if exist single entry)
885 uint32 resetTimeRaid; // 112
886 uint32 resetTimeHeroic; // 113
887 // 114 all 0
888 // 115 -1, 0 and 720
889 uint32 addon; // 116 (0-original maps,1-tbc addon)
890 // 117 some kind of time?
892 // Helpers
893 uint32 Expansion() const { return addon; }
894 bool Instanceable() const { return map_type == MAP_INSTANCE || map_type == MAP_RAID; }
895 // NOTE: this duplicate of Instanceable(), but Instanceable() can be changed when BG also will be instanceable
896 bool IsDungeon() const { return map_type == MAP_INSTANCE || map_type == MAP_RAID; }
897 bool IsRaid() const { return map_type == MAP_RAID; }
898 bool IsBattleGround() const { return map_type == MAP_BATTLEGROUND; }
899 bool IsBattleArena() const { return map_type == MAP_ARENA; }
900 bool IsBattleGroundOrArena() const { return map_type == MAP_BATTLEGROUND || map_type == MAP_ARENA; }
901 bool SupportsHeroicMode() const { return resetTimeHeroic && !resetTimeRaid; }
902 bool HasResetTime() const { return resetTimeHeroic || resetTimeRaid; }
904 bool IsMountAllowed() const
906 return !IsDungeon() ||
907 MapID==568 || MapID==309 || MapID==209 || MapID==534 ||
908 MapID==560 || MapID==509 || MapID==269;
912 struct QuestSortEntry
914 uint32 id; // 0, sort id
915 //char* name[16]; // 1-16, unused
916 // 17 name flags, unused
919 struct RandomPropertiesPointsEntry
921 //uint32 Id; // 0 hidden key
922 uint32 itemLevel; // 1
923 uint32 EpicPropertiesPoints[5]; // 2-6
924 uint32 RarePropertiesPoints[5]; // 7-11
925 uint32 UncommonPropertiesPoints[5]; // 12-16
928 struct ScalingStatDistributionEntry
930 uint32 Id;
931 uint32 StatMod[10];
932 uint32 Modifier[10];
933 uint32 MaxLevel;
936 struct ScalingStatValuesEntry
938 uint32 Id;
939 uint32 Level;
940 uint32 Multiplier[17];
943 //struct SkillLineCategoryEntry{
944 // uint32 id; // 0 m_ID
945 // char* name[16]; // 1-17 m_name_lang
946 // // 18 string flag
947 // uint32 displayOrder; // 19 m_sortIndex
948 //};
950 //struct SkillRaceClassInfoEntry{
951 // uint32 id; // 0 m_ID
952 // uint32 skillId; // 1 m_skillID
953 // uint32 raceMask; // 2 m_raceMask
954 // uint32 classMask; // 3 m_classMask
955 // uint32 flags; // 4 m_flags
956 // uint32 reqLevel; // 5 m_minLevel
957 // uint32 skillTierId; // 6 m_skillTierID
958 // uint32 skillCostID; // 7 m_skillCostIndex
959 //};
961 //struct SkillTiersEntry{
962 // uint32 id; // 0 m_ID
963 // uint32 skillValue[16]; // 1-17 m_cost
964 // uint32 maxSkillValue[16]; // 18-32 m_valueMax
965 //};
967 struct SkillLineEntry
969 uint32 id; // 0 m_ID
970 uint32 categoryId; // 1 m_categoryID (index from SkillLineCategory.dbc)
971 //uint32 skillCostID; // 2 m_skillCostsID not used
972 char* name[16]; // 3-18 m_displayName_lang
973 // 19 string flags, not used
974 //char* description[16]; // 20-35 m_description_lang, not used
975 // 36 string flags, not used
976 uint32 spellIcon; // 37 m_spellIconID
977 //char* alternateVerb[16]; // 38-53 m_alternateVerb_lang
978 // 54 string flags, not used
979 // 55 m_canLink
982 struct SkillLineAbilityEntry
984 uint32 id; // 0 m_ID
985 uint32 skillId; // 1 m_skillLine
986 uint32 spellId; // 2 m_spell
987 uint32 racemask; // 3 m_raceMask
988 uint32 classmask; // 4 m_classMask
989 //uint32 racemaskNot; // 5 m_excludeRace
990 //uint32 classmaskNot; // 6 m_excludeClass
991 uint32 req_skill_value; // 7 m_minSkillLineRank
992 uint32 forward_spellid; // 8 m_supercededBySpell
993 uint32 learnOnGetSkill; // 9 m_acquireMethod
994 uint32 max_value; // 10 m_trivialSkillLineRankHigh
995 uint32 min_value; // 11 m_trivialSkillLineRankLow
996 //uint32 characterPoints[2]; // 12-13 m_characterPoints
999 struct SoundEntriesEntry
1001 uint32 Id; // 0 m_ID
1002 //uint32 Type; // 1 m_soundType
1003 //char* InternalName; // 2 m_name
1004 //char* FileName[10]; // 3-12 m_File
1005 //uint32 Unk13[10]; // 13-22 m_Freq
1006 //char* Path; // 23 m_DirectoryBase
1007 // 24 m_volumeFloat
1008 // 25 m_flags
1009 // 26 m_minDistance
1010 // 27 m_distanceCutoff
1011 // 28 m_EAXDef
1014 struct SpellEntry
1016 uint32 Id; // 0 m_ID
1017 uint32 Category; // 1 m_category
1018 uint32 Dispel; // 2 m_dispelType
1019 uint32 Mechanic; // 3 m_mechanic
1020 uint32 Attributes; // 4 m_attribute
1021 uint32 AttributesEx; // 5 m_attributesEx
1022 uint32 AttributesEx2; // 6 m_attributesExB
1023 uint32 AttributesEx3; // 7 m_attributesExC
1024 uint32 AttributesEx4; // 8 m_attributesExD
1025 uint32 AttributesEx5; // 9 m_attributesExE
1026 //uint32 AttributesEx6; // 10 m_attributesExF not used
1027 uint32 Stances; // 11 m_shapeshiftMask
1028 uint32 StancesNot; // 12 m_shapeshiftExclude
1029 uint32 Targets; // 13 m_targets
1030 uint32 TargetCreatureType; // 14 m_targetCreatureType
1031 uint32 RequiresSpellFocus; // 15 m_requiresSpellFocus
1032 uint32 FacingCasterFlags; // 16 m_facingCasterFlags
1033 uint32 CasterAuraState; // 17 m_casterAuraState
1034 uint32 TargetAuraState; // 18 m_targetAuraState
1035 uint32 CasterAuraStateNot; // 19 m_excludeCasterAuraState
1036 uint32 TargetAuraStateNot; // 20 m_excludeTargetAuraState
1037 //uint32 casterAuraSpell; // 21 m_casterAuraSpell not used
1038 //uint32 targetAuraSpell; // 22 m_targetAuraSpell not used
1039 //uint32 excludeCasterAuraSpell; // 23 m_excludeCasterAuraSpell not used
1040 //uint32 excludeTargetAuraSpell; // 24 m_excludeTargetAuraSpell not used
1041 uint32 CastingTimeIndex; // 25 m_castingTimeIndex
1042 uint32 RecoveryTime; // 26 m_recoveryTime
1043 uint32 CategoryRecoveryTime; // 27 m_categoryRecoveryTime
1044 uint32 InterruptFlags; // 28 m_interruptFlags
1045 uint32 AuraInterruptFlags; // 29 m_auraInterruptFlags
1046 uint32 ChannelInterruptFlags; // 30 m_channelInterruptFlags
1047 uint32 procFlags; // 31 m_procTypeMask
1048 uint32 procChance; // 32 m_procChance
1049 uint32 procCharges; // 33 m_procCharges
1050 uint32 maxLevel; // 34 m_maxLevel
1051 uint32 baseLevel; // 35 m_baseLevel
1052 uint32 spellLevel; // 36 m_spellLevel
1053 uint32 DurationIndex; // 37 m_durationIndex
1054 uint32 powerType; // 38 m_powerType
1055 uint32 manaCost; // 39 m_manaCost
1056 uint32 manaCostPerlevel; // 40 m_manaCostPerLevel
1057 uint32 manaPerSecond; // 41 m_manaPerSecond
1058 uint32 manaPerSecondPerLevel; // 42 m_manaPerSecondPerLeve
1059 uint32 rangeIndex; // 43 m_rangeIndex
1060 float speed; // 44 m_speed
1061 //uint32 modalNextSpell; // 45 m_modalNextSpell not used
1062 uint32 StackAmount; // 46 m_cumulativeAura
1063 uint32 Totem[2]; // 47-48 m_totem
1064 int32 Reagent[8]; // 49-56 m_reagent
1065 uint32 ReagentCount[8]; // 57-64 m_reagentCount
1066 int32 EquippedItemClass; // 65 m_equippedItemClass (value)
1067 int32 EquippedItemSubClassMask; // 66 m_equippedItemSubclass (mask)
1068 int32 EquippedItemInventoryTypeMask; // 67 m_equippedItemInvTypes (mask)
1069 uint32 Effect[3]; // 68-70 m_effect
1070 int32 EffectDieSides[3]; // 71-73 m_effectDieSides
1071 uint32 EffectBaseDice[3]; // 74-76 m_effectBaseDice
1072 float EffectDicePerLevel[3]; // 77-79 m_effectDicePerLevel
1073 float EffectRealPointsPerLevel[3]; // 80-82 m_effectRealPointsPerLevel
1074 int32 EffectBasePoints[3]; // 83-85 m_effectBasePoints (don't must be used in spell/auras explicitly, must be used cached Spell::m_currentBasePoints)
1075 uint32 EffectMechanic[3]; // 86-88 m_effectMechanic
1076 uint32 EffectImplicitTargetA[3]; // 89-91 m_implicitTargetA
1077 uint32 EffectImplicitTargetB[3]; // 92-94 m_implicitTargetB
1078 uint32 EffectRadiusIndex[3]; // 95-97 m_effectRadiusIndex - spellradius.dbc
1079 uint32 EffectApplyAuraName[3]; // 98-100 m_effectAura
1080 uint32 EffectAmplitude[3]; // 101-103 m_effectAuraPeriod
1081 float EffectMultipleValue[3]; // 104-106 m_effectAmplitude
1082 uint32 EffectChainTarget[3]; // 107-109 m_effectChainTargets
1083 uint32 EffectItemType[3]; // 110-112 m_effectItemType
1084 int32 EffectMiscValue[3]; // 113-115 m_effectMiscValue
1085 int32 EffectMiscValueB[3]; // 116-118 m_effectMiscValueB
1086 uint32 EffectTriggerSpell[3]; // 119-121 m_effectTriggerSpell
1087 float EffectPointsPerComboPoint[3]; // 122-124 m_effectPointsPerCombo
1088 //uint32 EffectSpellClassMaskA[3]; // 125-127 m_effectSpellClassMaskA not used
1089 //uint32 EffectSpellClassMaskB[3]; // 128-130 m_effectSpellClassMaskB not used
1090 //uint32 EffectSpellClassMaskC[3]; // 131-133 m_effectSpellClassMaskC not used
1091 uint32 SpellVisual; // 134 m_spellVisualID
1092 // 135 not used - no data and name in client?
1093 uint32 SpellIconID; // 136 m_spellIconID
1094 uint32 activeIconID; // 137 m_activeIconID
1095 //uint32 spellPriority; // 138 m_spellPriority not used
1096 char* SpellName[16]; // 139-154 m_name_lang
1097 //uint32 SpellNameFlag; // 155 not used
1098 char* Rank[16]; // 156-171 m_nameSubtext_lang
1099 //uint32 RankFlags; // 172 not used
1100 //char* Description[16]; // 173-188 m_description_lang not used
1101 //uint32 DescriptionFlags; // 189 not used
1102 //char* ToolTip[16]; // 190-205 m_auraDescription_lang not used
1103 //uint32 ToolTipFlags; // 206 not used
1104 uint32 ManaCostPercentage; // 207 m_manaCostPct
1105 uint32 StartRecoveryCategory; // 208 m_startRecoveryCategory
1106 uint32 StartRecoveryTime; // 209 m_startRecoveryTime
1107 uint32 MaxTargetLevel; // 210 m_maxTargetLevel
1108 uint32 SpellFamilyName; // 211 m_spellClassSet
1109 uint64 SpellFamilyFlags; // 212-213 m_spellClassMask
1110 uint32 MaxAffectedTargets; // 214 m_maxTargets
1111 uint32 DmgClass; // 215 m_defenseType
1112 uint32 PreventionType; // 216 m_preventionType
1113 //uint32 StanceBarOrder; // 217 m_stanceBarOrder not used
1114 float DmgMultiplier[3]; // 218-220 m_effectChainAmplitude
1115 //uint32 MinFactionId; // 221 m_minFactionID not used
1116 //uint32 MinReputation; // 222 m_minReputation not used
1117 //uint32 RequiredAuraVision; // 223 m_requiredAuraVision not used
1118 uint32 TotemCategory[2]; // 224-225 m_requiredTotemCategoryID
1119 int32 AreaId; // 226 m_requiredAreasID
1120 uint32 SchoolMask; // 227 m_schoolMask
1121 uint32 runeCostID; // 228 m_runeCostID
1122 //uint32 spellMissileID; // 229 m_spellMissileID not used
1124 private:
1125 // prevent creating custom entries (copy data from original in fact)
1126 SpellEntry(SpellEntry const&); // DON'T must have implementation
1129 typedef std::set<uint32> SpellCategorySet;
1130 typedef std::map<uint32,SpellCategorySet > SpellCategoryStore;
1131 typedef std::set<uint32> PetFamilySpellsSet;
1132 typedef std::map<uint32,PetFamilySpellsSet > PetFamilySpellsStore;
1134 struct SpellCastTimesEntry
1136 uint32 ID; // 0
1137 int32 CastTime; // 1
1138 //float CastTimePerLevel; // 2 unsure / per skill?
1139 //int32 MinCastTime; // 3 unsure
1142 struct SpellFocusObjectEntry
1144 uint32 ID; // 0
1145 //char* Name[16]; // 1-15 unused
1146 // 16 string flags, unused
1149 // stored in SQL table
1150 struct SpellThreatEntry
1152 uint32 spellId;
1153 int32 threat;
1156 struct SpellRadiusEntry
1158 uint32 ID;
1159 float Radius;
1160 float Radius2;
1163 struct SpellRangeEntry
1165 uint32 ID;
1166 float minRange;
1167 float maxRange;
1170 struct SpellRuneCostEntry
1172 uint32 ID;
1173 uint32 bloodRuneCost;
1174 uint32 frostRuneCost;
1175 uint32 unholyRuneCost;
1176 uint32 runePowerGain;
1179 struct SpellShapeshiftEntry
1181 uint32 ID; // 0
1182 //uint32 buttonPosition; // 1 unused
1183 //char* Name[16]; // 2-17 unused
1184 //uint32 NameFlags; // 18 unused
1185 uint32 flags1; // 19
1186 int32 creatureType; // 20 <=0 humanoid, other normal creature types
1187 //uint32 unk1; // 21 unused
1188 uint32 attackSpeed; // 22
1189 //uint32 modelID; // 23 unused, alliance modelid (where horde case?)
1190 //uint32 unk2; // 24 unused
1191 //uint32 unk3; // 25 unused
1192 //uint32 unk4; // 26 unused
1193 //uint32 unk5; // 27 unused
1194 //uint32 unk6; // 28 unused
1195 //uint32 unk7; // 29 unused
1196 //uint32 unk8; // 30 unused
1197 //uint32 unk9; // 31 unused
1198 //uint32 unk10; // 32 unused
1199 //uint32 unk11; // 33 unused
1200 //uint32 unk12; // 34 unused
1203 struct SpellDurationEntry
1205 uint32 ID;
1206 int32 Duration[3];
1209 struct SpellItemEnchantmentEntry
1211 uint32 ID; // 0 m_ID
1212 //uint32 charges; // 1 m_charges
1213 uint32 type[3]; // 2-4 m_effect
1214 uint32 amount[3]; // 5-7 m_effectPointsMin
1215 //uint32 amount2[3] // 8-10 m_effectPointsMax
1216 uint32 spellid[3]; // 11-13 m_effectArg
1217 char* description[16]; // 14-30 m_name_lang
1218 //uint32 descriptionFlags; // 31 name flags
1219 uint32 aura_id; // 32 m_itemVisual
1220 uint32 slot; // 33 m_flags
1221 uint32 GemID; // 34 m_src_itemID
1222 uint32 EnchantmentCondition; // 35 m_condition_id
1223 //uint32 requiredSkill; // 36 m_requiredSkillID
1224 //uint32 requiredSkillValue; // 37 m_requiredSkillRank
1227 struct SpellItemEnchantmentConditionEntry
1229 uint32 ID;
1230 uint8 Color[5];
1231 uint8 Comparator[5];
1232 uint8 CompareColor[5];
1233 uint32 Value[5];
1236 struct StableSlotPricesEntry
1238 uint32 Slot;
1239 uint32 Price;
1242 struct TalentEntry
1244 uint32 TalentID; // 0
1245 uint32 TalentTab; // 1 index in TalentTab.dbc (TalentTabEntry)
1246 uint32 Row; // 2
1247 uint32 Col; // 3
1248 uint32 RankID[5]; // 4-8
1249 // 9-12 not used, always 0, maybe not used high ranks
1250 uint32 DependsOn; // 13 index in Talent.dbc (TalentEntry)
1251 // 14-15 not used
1252 uint32 DependsOnRank; // 16
1253 // 17-18 not used
1254 //uint32 unk1; // 19, 0 or 1
1255 //uint32 unk2; // 20, all 0
1256 //uint32 unkFlags1; // 21, related to hunter pet talents
1257 //uint32 unkFlags2; // 22, related to hunter pet talents
1260 struct TalentTabEntry
1262 uint32 TalentTabID; // 0
1263 //char* name[16]; // 1-16, unused
1264 //uint32 nameFlags; // 17, unused
1265 //unit32 spellicon; // 18
1266 // 19 not used
1267 uint32 ClassMask; // 20
1268 uint32 petTalentMask; // 21
1269 uint32 tabpage; // 22
1270 //char* internalname; // 23
1273 struct TaxiNodesEntry
1275 uint32 ID; // 0 m_ID
1276 uint32 map_id; // 1 m_ContinentID
1277 float x; // 2 m_x
1278 float y; // 3 m_y
1279 float z; // 4 m_z
1280 //char* name[16]; // 5-21 m_Name_lang
1281 // 22 string flags, unused
1282 uint32 horde_mount_type; // 23 m_MountCreatureID[2]
1283 uint32 alliance_mount_type; // 24
1286 struct TaxiPathEntry
1288 uint32 ID; // 0 m_ID
1289 uint32 from; // 1 m_FromTaxiNode
1290 uint32 to; // 2 m_ToTaxiNode
1291 uint32 price; // 3 m_Cost
1294 struct TaxiPathNodeEntry
1296 // 0 m_ID
1297 uint32 path; // 1 m_PathID
1298 uint32 index; // 2 m_NodeIndex
1299 uint32 mapid; // 3 m_ContinentID
1300 float x; // 4 m_LocX
1301 float y; // 5 m_LocY
1302 float z; // 6 m_LocZ
1303 uint32 actionFlag; // 7 m_flags
1304 uint32 delay; // 8 m_delay
1305 // 9 m_arrivalEventID
1306 // 10 m_departureEventID
1309 struct TotemCategoryEntry
1311 uint32 ID; // 0
1312 //char* name[16]; // 1-16
1313 // 17 string flags, unused
1314 uint32 categoryType; // 18 (one for specialization)
1315 uint32 categoryMask; // 19 (compatibility mask for same type: different for totems, compatible from high to low for rods)
1318 struct WorldMapAreaEntry
1320 //uint32 ID; // 0
1321 uint32 map_id; // 1
1322 uint32 area_id; // 2 index (continent 0 areas ignored)
1323 //char* internal_name // 3
1324 float y1; // 4
1325 float y2; // 5
1326 float x1; // 6
1327 float x2; // 7
1328 int32 virtual_map_id; // 8 -1 (map_id have correct map) other: virtual map where zone show (map_id - where zone in fact internally)
1331 struct WorldSafeLocsEntry
1333 uint32 ID; // 0
1334 uint32 map_id; // 1
1335 float x; // 2
1336 float y; // 3
1337 float z; // 4
1338 //char* name[16] // 5-20 name, unused
1339 // 21 name flags, unused
1342 // GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
1343 #if defined( __GNUC__ )
1344 #pragma pack()
1345 #else
1346 #pragma pack(pop)
1347 #endif
1349 // Structures not used for casting to loaded DBC data and not required then packing
1350 struct TalentSpellPos
1352 TalentSpellPos() : talent_id(0), rank(0) {}
1353 TalentSpellPos(uint16 _talent_id, uint8 _rank) : talent_id(_talent_id), rank(_rank) {}
1355 uint16 talent_id;
1356 uint8 rank;
1359 typedef std::map<uint32,TalentSpellPos> TalentSpellPosMap;
1361 struct TaxiPathBySourceAndDestination
1363 TaxiPathBySourceAndDestination() : ID(0),price(0) {}
1364 TaxiPathBySourceAndDestination(uint32 _id,uint32 _price) : ID(_id),price(_price) {}
1366 uint32 ID;
1367 uint32 price;
1369 typedef std::map<uint32,TaxiPathBySourceAndDestination> TaxiPathSetForSource;
1370 typedef std::map<uint32,TaxiPathSetForSource> TaxiPathSetBySource;
1372 struct TaxiPathNode
1374 TaxiPathNode() : mapid(0), x(0),y(0),z(0),actionFlag(0),delay(0) {}
1375 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) {}
1377 uint32 mapid;
1378 float x;
1379 float y;
1380 float z;
1381 uint32 actionFlag;
1382 uint32 delay;
1384 typedef std::vector<TaxiPathNode> TaxiPathNodeList;
1385 typedef std::vector<TaxiPathNodeList> TaxiPathNodesByPath;
1387 #define TaxiMaskSize 12
1388 typedef uint32 TaxiMask[TaxiMaskSize];
1389 #endif