2008-10-11 14:16:25 -05:00
/*
2009-02-04 12:42:26 +01:00
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
2008-10-14 11:57:03 -05:00
*
2009-02-04 12:04:12 +01:00
* Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/>
2008-10-11 14:16:25 -05:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
2008-11-20 16:16:57 -06:00
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2008-10-11 14:16:25 -05:00
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
2008-11-20 16:16:57 -06:00
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2008-10-11 14:16:25 -05:00
*/
2009-03-27 10:00:42 -06:00
#ifndef MANGOS_DBCSTRUCTURE_H
#define MANGOS_DBCSTRUCTURE_H
2008-10-11 14:16:25 -05:00
2008-11-20 16:16:57 -06:00
#include "DBCEnums.h"
2008-10-11 14:16:25 -05:00
#include "Platform/Define.h"
2009-02-02 17:01:56 +01:00
#include "Util.h"
2008-10-11 14:16:25 -05:00
#include <map>
#include <set>
#include <vector>
// Structures using to access raw DBC data and required packing to portability
// 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
#if defined( __GNUC__ )
#pragma pack(1)
#else
#pragma pack(push,1)
#endif
2008-12-24 09:58:26 -06:00
struct AchievementEntry
{
uint32 ID ; // 0
uint32 factionFlag ; // 1 -1=all, 0=horde, 1=alliance
uint32 mapID ; // 2 -1=none
//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)
//char *name[16]; // 4-19
//uint32 name_flags; // 20
//char *description[16]; // 21-36
//uint32 desc_flags; // 37
uint32 categoryId ; // 38
uint32 points ; // 39 reward points
//uint32 OrderInCategory; // 40
uint32 flags ; // 41
//uint32 icon; // 42 icon (from SpellIcon.dbc)
//char *titleReward[16]; // 43-58
//uint32 titleReward_flags; // 59
2009-04-03 16:36:20 -06:00
uint32 count ; // 60 - need this count of completed criterias (own or referenced achievement criterias)
uint32 refAchievement ; // 61 - referenced achievement (counting of all completed criterias)
2008-12-24 09:58:26 -06:00
};
struct AchievementCategoryEntry
2008-10-11 14:16:25 -05:00
{
uint32 ID ; // 0
2008-12-24 09:58:26 -06:00
uint32 parentCategory ; // 1 -1 for main category
//char *name[16]; // 2-17
//uint32 name_flags; // 18
//uint32 sortOrder; // 19
};
struct AchievementCriteriaEntry
{
uint32 ID ; // 0
uint32 referredAchievement ; // 1
uint32 requiredType ; // 2
union
{
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE = 0
2008-12-24 09:58:26 -06:00
// TODO: also used for player deaths..
struct
{
uint32 creatureID ; // 3
uint32 creatureCount ; // 4
} kill_creature ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_WIN_BG = 1
2008-12-24 09:58:26 -06:00
// TODO: there are further criterias instead just winning
struct
{
uint32 bgMapID ; // 3
uint32 winCount ; // 4
} win_bg ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL = 5
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 level ; // 4
} reach_level ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL = 7
2008-12-24 09:58:26 -06:00
struct
{
uint32 skillID ; // 3
uint32 skillLevel ; // 4
} reach_skill_level ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ACHIEVEMENT = 8
2008-12-24 09:58:26 -06:00
struct
{
uint32 linkedAchievement ; // 3
} complete_achievement ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT = 9
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 totalQuestCount ; // 4
} complete_quest_count ;
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY = 10
struct
{
uint32 unused ; // 3
uint32 numberOfDays ; // 4
} complete_daily_quest_daily ;
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE = 11
struct
{
uint32 zoneID ; // 3
uint32 questCount ; // 4
} complete_quests_in_zone ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST = 14
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 questCount ; // 4
} complete_daily_quest ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND = 15
2008-12-24 09:58:26 -06:00
struct
{
uint32 mapID ; // 3
} complete_battleground ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP = 16
2008-12-24 09:58:26 -06:00
struct
{
uint32 mapID ; // 3
} death_at_map ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON = 18
struct
{
uint32 manLimit ; // 3
} death_in_dungeon ;
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID = 19
2008-12-24 09:58:26 -06:00
struct
{
uint32 groupSize ; // 3 can be 5, 10 or 25
} complete_raid ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE = 20
2008-12-24 09:58:26 -06:00
struct
{
uint32 creatureEntry ; // 3
} killed_by_creature ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING = 24
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 fallHeight ; // 4
} fall_without_dying ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM = 26
2008-12-24 09:58:26 -06:00
struct
{
2009-03-06 15:21:44 -06:00
uint32 type ; // 3, see enum EnviromentalDamage
} death_from ;
2008-12-24 09:58:26 -06:00
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST = 27
2008-12-24 09:58:26 -06:00
struct
{
uint32 questID ; // 3
uint32 questCount ; // 4
} complete_quest ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET = 28
// ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2 = 69
2008-12-24 09:58:26 -06:00
struct
{
uint32 spellID ; // 3
uint32 spellCount ; // 4
} be_spell_target ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL = 29
// ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2 = 110
2008-12-24 09:58:26 -06:00
struct
{
uint32 spellID ; // 3
uint32 castCount ; // 4
} cast_spell ;
// ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA = 31
struct
{
uint32 areaID ; // 3 Reference to AreaTable.dbc
uint32 killCount ; // 4
} honorable_kill_at_area ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA = 32
2008-12-24 09:58:26 -06:00
struct
{
uint32 mapID ; // 3 Reference to Map.dbc
} win_arena ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA = 33
2008-12-24 09:58:26 -06:00
struct
{
uint32 mapID ; // 3 Reference to Map.dbc
} play_arena ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL = 34
2008-12-24 09:58:26 -06:00
struct
{
uint32 spellID ; // 3 Reference to Map.dbc
} learn_spell ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM = 36
2008-12-24 09:58:26 -06:00
struct
{
uint32 itemID ; // 3
uint32 itemCount ; // 4
} own_item ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA = 37
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 count ; // 4
uint32 flag ; // 5 4=in a row
} win_rated_arena ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING = 38
2008-12-24 09:58:26 -06:00
struct
{
uint32 teamtype ; // 3 {2,3,5}
} highest_team_rating ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_REACH_TEAM_RATING = 39
2008-12-24 09:58:26 -06:00
struct
{
uint32 teamtype ; // 3 {2,3,5}
uint32 teamrating ; // 4
} reach_team_rating ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL = 40
2008-12-24 09:58:26 -06:00
struct
{
uint32 skillID ; // 3
uint32 skillLevel ; // 4 apprentice=1, journeyman=2, expert=3, artisan=4, master=5, grand master=6
} learn_skill_level ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM = 41
2008-12-24 09:58:26 -06:00
struct
{
uint32 itemID ; // 3
uint32 itemCount ; // 4
} use_item ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM = 42
2008-12-24 09:58:26 -06:00
struct
{
uint32 itemID ; // 3
uint32 itemCount ; // 4
} loot_item ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA = 43
2008-12-24 09:58:26 -06:00
struct
{
// TODO: This rank is _NOT_ the index from AreaTable.dbc
uint32 areaReference ; // 3
} explore_area ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK = 44
2008-12-24 09:58:26 -06:00
struct
{
// TODO: This rank is _NOT_ the index from CharTitles.dbc
uint32 rank ; // 3
} own_rank ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT = 45
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 numberOfSlots ; // 4
} buy_bank_slot ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION = 46
2008-12-24 09:58:26 -06:00
struct
{
uint32 factionID ; // 3
uint32 reputationAmount ; // 4 Total reputation amount, so 42000 = exalted
} gain_reputation ;
// ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION= 47
struct
{
uint32 unused ; // 3
uint32 numberOfExaltedFactions ; // 4
} gain_exalted_reputation ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_VISIT_BARBER_SHOP = 48
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 numberOfVisits ; // 4
} visit_barber ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM = 49
2008-12-24 09:58:26 -06:00
// TODO: where is the required itemlevel stored?
struct
{
uint32 itemSlot ; // 3
} equip_epic_item ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT = 50
2008-12-24 09:58:26 -06:00
struct
{
uint32 rollValue ; // 3
uint32 count ; // 4
} roll_need_on_loot ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT = 51
2009-01-02 11:03:43 -06:00
struct
{
uint32 rollValue ; // 3
uint32 count ; // 4
} roll_greed_on_loot ;
2008-12-24 09:58:26 -06:00
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS = 52
2008-12-24 09:58:26 -06:00
struct
{
uint32 classID ; // 3
uint32 count ; // 4
} hk_class ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HK_RACE = 53
2008-12-24 09:58:26 -06:00
struct
{
uint32 raceID ; // 3
uint32 count ; // 4
} hk_race ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE = 54
2008-12-24 09:58:26 -06:00
// TODO: where is the information about the target stored?
struct
{
2009-03-06 18:14:05 -06:00
uint32 emoteID ; // 3 enum TextEmotes
uint32 count ; // 4 count of emotes, always required special target or requirements
2008-12-24 09:58:26 -06:00
} do_emote ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE = 13
// ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE = 55
// ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS = 56
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 count ; // 4
uint32 flag ; // 5 =3 for battleground healing
uint32 mapid ; // 6
} healing_done ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM = 57
2008-12-24 09:58:26 -06:00
struct
{
uint32 itemID ; // 3
2009-03-17 14:54:32 -06:00
uint32 count ; // 4
2008-12-24 09:58:26 -06:00
} equip_item ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD= 62
2009-03-05 09:22:43 -06:00
struct
{
uint32 unused ; // 3
uint32 goldInCopper ; // 4
} quest_reward_money ;
2008-12-24 09:58:26 -06:00
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY = 67
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 goldInCopper ; // 4
} loot_money ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT = 68
2008-12-24 09:58:26 -06:00
struct
{
uint32 goEntry ; // 3
uint32 useCount ; // 4
} use_gameobject ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL = 70
2008-12-24 09:58:26 -06:00
// TODO: are those special criteria stored in the dbc or do we have to add another sql table?
struct
{
uint32 unused ; // 3
uint32 killCount ; // 4
} special_pvp_kill ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT = 72
2008-12-24 09:58:26 -06:00
struct
{
uint32 goEntry ; // 3
uint32 lootCount ; // 4
} fish_in_gameobject ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS = 75
2008-12-24 09:58:26 -06:00
struct
{
uint32 skillLine ; // 3
uint32 spellCount ; // 4
2009-04-20 20:33:43 -05:00
} learn_skillline_spell ;
2008-12-24 09:58:26 -06:00
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL = 76
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 duelCount ; // 4
} win_duel ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_POWER = 96
2008-12-24 09:58:26 -06:00
struct
{
uint32 powerType ; // 3 mana=0, 1=rage, 3=energy, 6=runic power
} highest_power ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_STAT = 97
2008-12-24 09:58:26 -06:00
struct
{
uint32 statType ; // 3 4=spirit, 3=int, 2=stamina, 1=agi, 0=strength
} highest_stat ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_SPELLPOWER = 98
2008-12-24 09:58:26 -06:00
struct
{
uint32 spellSchool ; // 3
} highest_spellpower ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_RATING = 100
2008-12-24 09:58:26 -06:00
struct
{
uint32 ratingType ; // 3
} highest_rating ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE = 109
2008-12-24 09:58:26 -06:00
struct
{
uint32 lootType ; // 3 3=fishing, 2=pickpocket, 4=disentchant
uint32 lootTypeCount ; // 4
} loot_type ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE = 112
2008-12-24 09:58:26 -06:00
struct
{
uint32 skillLine ; // 3
uint32 spellCount ; // 4
} learn_skill_line ;
2009-03-06 15:21:44 -06:00
// ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL = 113
2008-12-24 09:58:26 -06:00
struct
{
uint32 unused ; // 3
uint32 killCount ; // 4
} honorable_kill ;
struct
{
uint32 field3 ; // 3 main requirement
2009-04-11 23:13:00 -05:00
uint32 count ; // 4 main requirement count
2008-12-24 09:58:26 -06:00
uint32 additionalRequirement1_type ; // 5 additional requirement 1 type
uint32 additionalRequirement1_value ; // 6 additional requirement 1 value
uint32 additionalRequirement2_type ; // 7 additional requirement 2 type
uint32 additionalRequirement2_value ; // 8 additional requirement 1 value
} raw ;
};
//char* name[16]; // 9-24
//uint32 name_flags; // 25
uint32 completionFlag ; // 26
uint32 groupFlag ; // 27
//uint32 unk1; // 28
uint32 timeLimit ; // 29 time limit in seconds
//uint32 showOrder; // 30 show order
};
struct AreaTableEntry
{
uint32 ID ; // 0
uint32 mapid ; // 1
uint32 zone ; // 2 if 0 then it's zone, else it's zone id of this area
uint32 exploreFlag ; // 3, main index
uint32 flags ; // 4, unknown value but 312 for all cities
2008-10-11 14:16:25 -05:00
// 5-9 unused
2008-12-24 09:58:26 -06:00
int32 area_level ; // 10
char * area_name [ 16 ]; // 11-26
2008-10-11 14:16:25 -05:00
// 27, string flags, unused
2008-12-24 09:58:26 -06:00
uint32 team ; // 28
2008-10-11 14:16:25 -05:00
};
2009-01-02 11:03:43 -06:00
struct AreaGroupEntry
{
uint32 AreaGroupId ; // 0
uint32 AreaId [ 7 ]; // 1-7
};
2008-10-11 14:16:25 -05:00
struct AreaTriggerEntry
{
2008-12-24 09:58:26 -06:00
uint32 id ; // 0 m_ID
uint32 mapid ; // 1 m_ContinentID
float x ; // 2 m_x
float y ; // 3 m_y
float z ; // 4 m_z
float radius ; // 5 m_radius
float box_x ; // 6 m_box_length
float box_y ; // 7 m_box_width
float box_z ; // 8 m_box_heigh
float box_orientation ; // 9 m_box_yaw
2008-10-11 14:16:25 -05:00
};
2009-02-13 19:50:20 -06:00
struct AuctionHouseEntry
{
uint32 houseId ; // 0 index
uint32 faction ; // 1 id of faction.dbc for player factions associated with city
uint32 depositPercent ; // 2 1/3 from real
uint32 cutPercent ; // 3
//char* name[16]; // 4-19
// 20 string flag, unused
};
2008-10-11 14:16:25 -05:00
struct BankBagSlotPricesEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ;
uint32 price ;
};
struct BarberShopStyleEntry
{
uint32 Id ; // 0
uint32 type ; // 1 value 0 -> hair, value 2 -> facialhair
//char* name[16]; // 2-17 name of hair style
//uint32 name_flags; // 18
//uint32 unk_name[16]; // 19-34, all empty
//uint32 unk_flags; // 35
//float CostMultiplier; // 36 values 1 and 0.75
uint32 race ; // 37 race
uint32 gender ; // 38 0 -> male, 1 -> female
uint32 hair_id ; // 39 real ID to hair/facial hair
2008-10-11 14:16:25 -05:00
};
struct BattlemasterListEntry
{
2008-12-24 09:58:26 -06:00
uint32 id ; // 0
int32 mapid [ 8 ]; // 1-8 mapid
uint32 type ; // 9 (3 - BG, 4 - arena)
uint32 minlvl ; // 10
uint32 maxlvl ; // 11
uint32 maxplayersperteam ; // 12
// 13 minplayers
// 14 0 or 9
// 15
char * name [ 16 ]; // 16-31
// 32 string flag, unused
// 33 unused
2008-10-11 14:16:25 -05:00
};
2008-12-24 09:58:26 -06:00
#define MAX_OUTFIT_ITEMS 24
2008-11-28 11:38:28 -06:00
struct CharStartOutfitEntry
{
//uint32 Id; // 0
uint32 RaceClassGender ; // 1 (UNIT_FIELD_BYTES_0 & 0x00FFFFFF) comparable (0 byte = race, 1 byte = class, 2 byte = gender)
int32 ItemId [ MAX_OUTFIT_ITEMS ]; // 2-13
//int32 ItemDisplayId[MAX_OUTFIT_ITEMS]; // 14-25 not required at server side
//int32 ItemInventorySlot[MAX_OUTFIT_ITEMS]; // 26-37 not required at server side
//uint32 Unknown1; // 38, unique values (index-like with gaps ordered in other way as ids)
//uint32 Unknown2; // 39
//uint32 Unknown3; // 40
};
2008-10-11 14:16:25 -05:00
struct CharTitlesEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0, title ids, for example in Quest::GetCharTitleId()
2008-10-11 14:16:25 -05:00
//uint32 unk1; // 1 flags?
//char* name[16]; // 2-17, unused
// 18 string flag, unused
//char* name2[16]; // 19-34, unused
// 35 string flag, unused
2008-12-24 09:58:26 -06:00
uint32 bit_index ; // 36 used in PLAYER_CHOSEN_TITLE and 1<<index in PLAYER__FIELD_KNOWN_TITLES
2008-10-11 14:16:25 -05:00
};
struct ChatChannelsEntry
{
2008-12-24 09:58:26 -06:00
uint32 ChannelID ; // 0
uint32 flags ; // 1
char * pattern [ 16 ]; // 3-18
2008-10-11 14:16:25 -05:00
// 19 string flags, unused
//char* name[16]; // 20-35 unused
// 36 string flag, unused
};
struct ChrClassesEntry
{
2008-12-24 09:58:26 -06:00
uint32 ClassID ; // 0
// 1, unused
uint32 powerType ; // 2
// 3-4, unused
2008-10-11 14:16:25 -05:00
//char* name[16]; // 5-20 unused
// 21 string flag, unused
2008-12-19 16:05:13 -06:00
//char* nameFemale[16]; // 21-36 unused, if different from base (male) case
2008-10-11 14:16:25 -05:00
// 37 string flag, unused
2008-12-19 16:05:13 -06:00
//char* nameNeutralGender[16]; // 38-53 unused, if different from base (male) case
2008-10-11 14:16:25 -05:00
// 54 string flag, unused
// 55, unused
2008-12-24 09:58:26 -06:00
uint32 spellfamily ; // 56
2008-10-11 14:16:25 -05:00
// 57, unused
2008-12-24 09:58:26 -06:00
uint32 CinematicSequence ; // 58 id from CinematicSequences.dbc
uint32 addon ; // 59 (0 - original race, 1 - tbc addon, ...)
2008-10-11 14:16:25 -05:00
};
struct ChrRacesEntry
{
uint32 RaceID ; // 0
// 1 unused
uint32 FactionID ; // 2 facton template id
// 3 unused
uint32 model_m ; // 4
uint32 model_f ; // 5
// 6-7 unused
uint32 TeamID ; // 8 (7-Alliance 1-Horde)
// 9-12 unused
2008-12-24 09:58:26 -06:00
uint32 CinematicSequence ; // 13 id from CinematicSequences.dbc
2008-10-11 14:16:25 -05:00
char * name [ 16 ]; // 14-29 used for DBC language detection/selection
// 30 string flags, unused
2008-12-19 16:05:13 -06:00
//char* nameFemale[16]; // 31-46, if different from base (male) case
2008-10-11 14:16:25 -05:00
// 47 string flags, unused
2008-12-19 16:05:13 -06:00
//char* nameNeutralGender[16]; // 48-63, if different from base (male) case
2008-10-11 14:16:25 -05:00
// 64 string flags, unused
// 65-67 unused
2008-11-20 16:16:57 -06:00
uint32 addon ; // 68 (0 - original race, 1 - tbc addon, ...)
2008-10-11 14:16:25 -05:00
};
2009-04-05 16:58:20 -05:00
/* not used
struct CinematicCameraEntry
{
uint32 id; // 0 index
char* filename; // 1
uint32 soundid; // 2 in SoundEntries.dbc or 0
float start_x; // 3
float start_y; // 4
float start_z; // 5
2009-04-06 21:14:51 +02:00
float unk6; // 6 speed?
2009-04-05 16:58:20 -05:00
};
*/
struct CinematicSequencesEntry
{
uint32 Id ; // 0 index
//uint32 unk1; // 1 always 0
//uint32 cinematicCamera; // 2 id in CinematicCamera.dbc
// 3-9 always 0
};
2008-10-11 14:16:25 -05:00
struct CreatureDisplayInfoEntry
{
2008-12-24 09:58:26 -06:00
uint32 Displayid ; // 0 m_ID
// 1 m_modelID
// 2 m_soundID
// 3 m_extendedDisplayInfoID
float scale ; // 4 m_creatureModelScale
// 5 m_creatureModelAlpha
// 6-8 m_textureVariation[3]
// 9 m_portraitTextureName
// 10 m_sizeClass
// 11 m_bloodID
// 12 m_NPCSoundID
// 13 m_particleColorID
// 14 m_creatureGeosetData
// 15 m_objectEffectPackageID
2008-10-11 14:16:25 -05:00
};
struct CreatureFamilyEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
float minScale ; // 1 m_minScale
uint32 minScaleLevel ; // 2 m_minScaleLevel
float maxScale ; // 3 m_maxScale
uint32 maxScaleLevel ; // 4 m_maxScaleLevel
uint32 skillLine [ 2 ]; // 5-6 m_skillLine
uint32 petFoodMask ; // 7 m_petFoodMask
int32 petTalentType ; // 8 m_petTalentType
// 9 m_categoryEnumID
char * Name [ 16 ]; // 10-25 m_name_lang
// 26 string flags
// 27 m_iconFile
2008-10-11 14:16:25 -05:00
};
struct CreatureSpellDataEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
//uint32 spellId[4]; // 1-4 m_spells[4]
//uint32 availability[4]; // 4-7 m_availability[4]
2008-10-11 14:16:25 -05:00
};
2009-01-22 22:44:27 -06:00
struct CreatureTypeEntry
{
uint32 ID ; // 0 m_ID
//char* Name[16]; // 1-16 name
// 17 string flags
//uint32 no_expirience; // 18 no exp? critters, non-combat pets, gas cloud.
};
2009-03-21 22:44:59 -06:00
/* not used
struct CurrencyCategoryEntry
{
uint32 ID; // 0
uint32 Unk1; // 1 0 for known categories and 3 for unknown one (3.0.9)
char* Name[16]; // 2-17 name
// // 18 string flags
};
*/
struct CurrencyTypesEntry
{
//uint32 ID; // 0 not used
uint32 ItemId ; // 1 used as real index
uint32 BitIndex ; // 2 bit index in PLAYER_FIELD_KNOWN_CURRENCIES (1 << (index-1))
};
2008-10-11 14:16:25 -05:00
struct DurabilityCostsEntry
{
uint32 Itemlvl ; // 0
uint32 multiplier [ 29 ]; // 1-29
};
struct DurabilityQualityEntry
{
uint32 Id ; // 0
float quality_mod ; // 1
};
2009-04-18 20:54:43 -05:00
struct EmotesEntry
{
uint32 Id ; // 0
//char* Name; // 1, internal name
//uint32 AnimationId; // 2, ref to animationData
uint32 Flags ; // 3, bitmask, may be unit_flags
uint32 EmoteType ; // 4, Can be 0, 1 or 2 (determine how emote are shown)
uint32 UnitStandState ; // 5, uncomfirmed, may be enum UnitStandStateType
//uint32 SoundId; // 6, ref to soundEntries
};
2008-10-11 14:16:25 -05:00
struct EmotesTextEntry
{
2008-12-24 09:58:26 -06:00
uint32 Id ;
uint32 textid ;
2008-10-11 14:16:25 -05:00
};
struct FactionEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
int32 reputationListID ; // 1 m_reputationIndex
uint32 BaseRepRaceMask [ 4 ]; // 2-5 m_reputationRaceMask
uint32 BaseRepClassMask [ 4 ]; // 6-9 m_reputationClassMask
int32 BaseRepValue [ 4 ]; // 10-13 m_reputationBase
uint32 ReputationFlags [ 4 ]; // 14-17 m_reputationFlags
uint32 team ; // 18 m_parentFactionID
char * name [ 16 ]; // 19-34 m_name_lang
// 35 string flags
//char* description[16]; // 36-51 m_description_lang
// 52 string flags
2008-10-11 14:16:25 -05:00
};
struct FactionTemplateEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
uint32 faction ; // 1 m_faction
uint32 factionFlags ; // 2 m_flags
uint32 ourMask ; // 3 m_factionGroup
uint32 friendlyMask ; // 4 m_friendGroup
uint32 hostileMask ; // 5 m_enemyGroup
uint32 enemyFaction [ 4 ]; // 6 m_enemies[4]
uint32 friendFaction [ 4 ]; // 10 m_friend[4]
2008-10-11 14:16:25 -05:00
//------------------------------------------------------- end structure
// helpers
bool IsFriendlyTo ( FactionTemplateEntry const & entry ) const
{
2008-11-23 13:58:06 -06:00
if ( ID == entry . ID )
return true ;
2009-03-03 16:18:22 -06:00
if ( entry . faction )
{
for ( int i = 0 ; i < 4 ; ++ i )
if ( enemyFaction [ i ] == entry . faction )
return false ;
for ( int i = 0 ; i < 4 ; ++ i )
if ( friendFaction [ i ] == entry . faction )
return true ;
}
2008-10-11 14:16:25 -05:00
return ( friendlyMask & entry . ourMask ) || ( ourMask & entry . friendlyMask );
}
bool IsHostileTo ( FactionTemplateEntry const & entry ) const
{
2008-11-23 13:58:06 -06:00
if ( ID == entry . ID )
return false ;
2009-03-03 16:18:22 -06:00
if ( entry . faction )
{
for ( int i = 0 ; i < 4 ; ++ i )
if ( enemyFaction [ i ] == entry . faction )
return true ;
for ( int i = 0 ; i < 4 ; ++ i )
if ( friendFaction [ i ] == entry . faction )
return false ;
}
2008-10-11 14:16:25 -05:00
return ( hostileMask & entry . ourMask ) != 0 ;
}
bool IsHostileToPlayers () const { return ( hostileMask & FACTION_MASK_PLAYER ) != 0 ; }
2009-03-03 16:18:22 -06:00
bool IsNeutralToAll () const
{
for ( int i = 0 ; i < 4 ; ++ i )
if ( enemyFaction [ i ] != 0 )
return false ;
return hostileMask == 0 && friendlyMask == 0 ;
}
2008-10-11 14:16:25 -05:00
bool IsContestedGuardFaction () const { return ( factionFlags & FACTION_TEMPLATE_FLAG_CONTESTED_GUARD ) != 0 ; }
};
struct GemPropertiesEntry
{
uint32 ID ;
uint32 spellitemenchantement ;
uint32 color ;
};
2008-12-24 09:58:26 -06:00
struct GlyphPropertiesEntry
{
uint32 Id ;
uint32 SpellId ;
uint32 TypeFlags ;
uint32 Unk1 ; // GlyphIconId (SpellIcon.dbc)
};
struct GlyphSlotEntry
{
uint32 Id ;
uint32 TypeFlags ;
uint32 Order ;
};
2008-12-19 16:05:13 -06:00
// All Gt* DBC store data for 100 levels, some by 100 per class/race
2008-10-11 14:16:25 -05:00
#define GT_MAX_LEVEL 100
2008-11-20 16:16:57 -06:00
2008-12-24 09:58:26 -06:00
struct GtBarberShopCostBaseEntry
{
float cost ;
};
2008-10-11 14:16:25 -05:00
struct GtCombatRatingsEntry
{
float ratio ;
};
struct GtChanceToMeleeCritBaseEntry
{
float base ;
};
struct GtChanceToMeleeCritEntry
{
float ratio ;
};
struct GtChanceToSpellCritBaseEntry
{
float base ;
};
struct GtChanceToSpellCritEntry
{
float ratio ;
};
struct GtOCTRegenHPEntry
{
float ratio ;
};
//struct GtOCTRegenMPEntry
//{
// float ratio;
//};
struct GtRegenHPPerSptEntry
{
float ratio ;
};
struct GtRegenMPPerSptEntry
{
float ratio ;
};
2009-03-06 19:36:47 -06:00
/* no used
struct HolidayDescriptionsEntry
{
uint32 ID; // 0, this is NOT holiday id
//char* name[16] // 1-16 m_name_lang
// 17 name flags
};
*/
/* no used
struct HolidayNamesEntry
{
uint32 ID; // 0, this is NOT holiday id
//char* name[16] // 1-16 m_name_lang
// 17 name flags
};
*/
struct HolidaysEntry
{
uint32 ID ; // 0, holiday id
//uint32 unk1; // 1
//uint32 unk2; // 2
//uint32 unk3[8] // 3-10, empty fields
//uint32 unk11[13] // 11-23, some unknown data (bit strings?)
//uint32 unk11[13] // 24-36, some empty fields (continue prev?)
//uint32 unk11[12] // 37-48, counters?
//uint32 holidayNameId; // 49, id for HolidayNames.dbc
//uint32 holidayDescriptionId; // 50, id for HolidayDescriptions.dbc
//uint32 unk51; // 51
//uint32 unk52; // 52
//uint32 unk53; // 53
};
2008-10-11 14:16:25 -05:00
struct ItemEntry
{
2009-01-14 18:42:53 -06:00
uint32 ID ; // 0
uint32 Class ; // 1
//uint32 SubClass; // 2 some items have strnage subclasses
int32 Unk0 ; // 3
int32 Material ; // 4
uint32 DisplayId ; // 5
uint32 InventoryType ; // 6
uint32 Sheath ; // 7
2008-10-11 14:16:25 -05:00
};
2009-03-21 22:43:47 -06:00
struct ItemBagFamilyEntry
{
uint32 ID ; // 0
//char* name[16] // 1-16 m_name_lang
// // 17 name flags
};
2008-10-11 14:16:25 -05:00
struct ItemDisplayInfoEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
// 1 m_modelName[2]
// 2 m_modelTexture[2]
// 3 m_inventoryIcon
// 4 m_geosetGroup[3]
// 5 m_flags
// 6 m_spellVisualID
// 7 m_groupSoundIndex
// 8 m_helmetGeosetVis[2]
// 9 m_texture[2]
// 10 m_itemVisual[8]
// 11 m_particleColorID
2008-10-11 14:16:25 -05:00
};
//struct ItemCondExtCostsEntry
//{
// uint32 ID;
2008-12-24 09:58:26 -06:00
// uint32 condExtendedCost; // ItemPrototype::CondExtendedCost
// uint32 itemextendedcostentry; // ItemPrototype::ExtendedCost
// uint32 arenaseason; // arena season number(1-4)
2008-10-11 14:16:25 -05:00
//};
struct ItemExtendedCostEntry
{
uint32 ID ; // 0 extended-cost entry id
uint32 reqhonorpoints ; // 1 required honor points
uint32 reqarenapoints ; // 2 required arena points
uint32 reqitem [ 5 ]; // 3-7 required item id
uint32 reqitemcount [ 5 ]; // 8-12 required count of 1st item
uint32 reqpersonalarenarating ; // 13 required personal arena rating
};
2009-02-15 11:58:27 -06:00
struct ItemLimitCategoryEntry
{
uint32 ID ; // 0 Id
//char* name[16] // 1-16 m_name_lang
// 17 name flags
uint32 maxCount ; // max allowed equipped as item or in gem slot
//uint32 unk; // 1 for prismatic gems only...
};
2008-10-11 14:16:25 -05:00
struct ItemRandomPropertiesEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
//char* internalName // 1 m_Name
uint32 enchant_id [ 5 ]; // 2-6 m_Enchantment
//char* nameSuffix[16] // 7-22 m_name_lang
// 23 name flags
2008-10-11 14:16:25 -05:00
};
struct ItemRandomSuffixEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
//char* name[16] // 1-16 m_name_lang
// 17, name flags
// 18 m_internalName
uint32 enchant_id [ 5 ]; // 19-21 m_enchantment
uint32 prefix [ 5 ]; // 22-24 m_allocationPct
2008-10-11 14:16:25 -05:00
};
struct ItemSetEntry
{
2008-12-24 09:58:26 -06:00
//uint32 id // 0 m_ID
char * name [ 16 ]; // 1-16 m_name_lang
2008-10-11 14:16:25 -05:00
// 17 string flags, unused
2008-12-24 09:58:26 -06:00
//uint32 itemId[17]; // 18-34 m_itemID
uint32 spells [ 8 ]; // 35-42 m_setSpellID
uint32 items_to_triggerspell [ 8 ]; // 43-50 m_setThreshold
uint32 required_skill_id ; // 51 m_requiredSkill
uint32 required_skill_value ; // 52 m_requiredSkillRank
2008-10-11 14:16:25 -05:00
};
2009-03-15 17:54:24 -06:00
#define MAX_LOCK_CASE 8
2008-10-11 14:16:25 -05:00
struct LockEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
2009-03-15 17:54:24 -06:00
uint32 Type [ MAX_LOCK_CASE ]; // 1-8 m_Type
uint32 Index [ MAX_LOCK_CASE ]; // 9-16 m_Index
uint32 Skill [ MAX_LOCK_CASE ]; // 17-24 m_Skill
//uint32 Action[MAX_LOCK_CASE]; // 25-32 m_Action
2008-10-11 14:16:25 -05:00
};
struct MailTemplateEntry
{
uint32 ID ; // 0
//char* subject[16]; // 1-16
// 17 name flags, unused
//char* content[16]; // 18-33
};
struct MapEntry
{
2008-12-24 09:58:26 -06:00
uint32 MapID ; // 0
2008-10-11 14:16:25 -05:00
//char* internalname; // 1 unused
2008-12-24 09:58:26 -06:00
uint32 map_type ; // 2
// 3 0 or 1 for battlegrounds (not arenas)
char * name [ 16 ]; // 4-19
2008-10-11 14:16:25 -05:00
// 20 name flags, unused
2008-12-24 09:58:26 -06:00
uint32 linked_zone ; // 21 common zone for instance and continent map
//char* hordeIntro[16]; // 23-37 text for PvP Zones
// 38 intro text flags
//char* allianceIntro[16]; // 39-54 text for PvP Zones
// 55 intro text flags
uint32 multimap_id ; // 56
// 57
//chat* unknownText1[16]; // 58-73 unknown empty text fields, possible normal Intro text.
// 74 text flags
//chat* heroicIntroText[16]; // 75-90 heroic mode requirement text
// 91 text flags
//chat* unknownText2[16]; // 92-107 unknown empty text fields
// 108 text flags
int32 entrance_map ; // 109 map_id of entrance map
float entrance_x ; // 110 entrance x coordinate (if exist single entry)
float entrance_y ; // 111 entrance y coordinate (if exist single entry)
uint32 resetTimeRaid ; // 112
uint32 resetTimeHeroic ; // 113
// 114 all 0
// 115 -1, 0 and 720
uint32 addon ; // 116 (0-original maps,1-tbc addon)
// 117 some kind of time?
2008-10-11 14:16:25 -05:00
// Helpers
2008-10-20 12:23:56 -05:00
uint32 Expansion () const { return addon ; }
2008-10-11 14:16:25 -05:00
bool IsDungeon () const { return map_type == MAP_INSTANCE || map_type == MAP_RAID ; }
bool Instanceable () const { return map_type == MAP_INSTANCE || map_type == MAP_RAID || map_type == MAP_BATTLEGROUND || map_type == MAP_ARENA ; }
bool IsRaid () const { return map_type == MAP_RAID ; }
bool IsBattleGround () const { return map_type == MAP_BATTLEGROUND ; }
bool IsBattleArena () const { return map_type == MAP_ARENA ; }
bool IsBattleGroundOrArena () const { return map_type == MAP_BATTLEGROUND || map_type == MAP_ARENA ; }
2009-01-22 22:44:27 -06:00
bool SupportsHeroicMode () const { return resetTimeHeroic != 0 ; }
2008-10-11 14:16:25 -05:00
bool HasResetTime () const { return resetTimeHeroic || resetTimeRaid ; }
bool IsMountAllowed () const
{
2008-12-26 18:02:59 -06:00
return ! IsDungeon () ||
2009-01-22 22:44:27 -06:00
MapID == 209 || MapID == 269 || MapID == 309 || // TanarisInstance, CavernsOfTime, Zul'gurub
MapID == 509 || MapID == 534 || MapID == 560 || // AhnQiraj, HyjalPast, HillsbradPast
2009-01-24 11:28:00 -06:00
MapID == 568 || MapID == 580 || MapID == 615 || // ZulAman, Sunwell Plateau, Obsidian Sanctrum
MapID == 616 ; // Eye Of Eternity
2008-10-11 14:16:25 -05:00
}
2008-12-24 09:58:26 -06:00
bool IsContinent () const
{
return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571 ;
}
2008-10-11 14:16:25 -05:00
};
2009-04-05 16:58:20 -05:00
struct MovieEntry
{
uint32 Id ; // 0 index
//char* filename; // 1
//uint32 unk2; // 2 always 100
};
2008-10-11 14:16:25 -05:00
struct QuestSortEntry
{
2008-12-24 09:58:26 -06:00
uint32 id ; // 0 m_ID
//char* name[16]; // 1-16 m_SortName_lang
// 17 name flags
2008-10-11 14:16:25 -05:00
};
struct RandomPropertiesPointsEntry
{
//uint32 Id; // 0 hidden key
uint32 itemLevel ; // 1
uint32 EpicPropertiesPoints [ 5 ]; // 2-6
uint32 RarePropertiesPoints [ 5 ]; // 7-11
uint32 UncommonPropertiesPoints [ 5 ]; // 12-16
};
2008-12-24 09:58:26 -06:00
struct ScalingStatDistributionEntry
{
uint32 Id ;
uint32 StatMod [ 10 ];
uint32 Modifier [ 10 ];
uint32 MaxLevel ;
};
struct ScalingStatValuesEntry
{
uint32 Id ;
uint32 Level ;
uint32 Multiplier [ 17 ];
};
2008-10-11 14:16:25 -05:00
//struct SkillLineCategoryEntry{
2008-12-24 09:58:26 -06:00
// uint32 id; // 0 m_ID
// char* name[16]; // 1-17 m_name_lang
// // 18 string flag
// uint32 displayOrder; // 19 m_sortIndex
2008-10-11 14:16:25 -05:00
//};
//struct SkillRaceClassInfoEntry{
2008-12-24 09:58:26 -06:00
// uint32 id; // 0 m_ID
// uint32 skillId; // 1 m_skillID
// uint32 raceMask; // 2 m_raceMask
// uint32 classMask; // 3 m_classMask
// uint32 flags; // 4 m_flags
// uint32 reqLevel; // 5 m_minLevel
// uint32 skillTierId; // 6 m_skillTierID
// uint32 skillCostID; // 7 m_skillCostIndex
2008-10-11 14:16:25 -05:00
//};
//struct SkillTiersEntry{
2008-12-24 09:58:26 -06:00
// uint32 id; // 0 m_ID
// uint32 skillValue[16]; // 1-17 m_cost
// uint32 maxSkillValue[16]; // 18-32 m_valueMax
2008-10-11 14:16:25 -05:00
//};
struct SkillLineEntry
{
2008-12-24 09:58:26 -06:00
uint32 id ; // 0 m_ID
int32 categoryId ; // 1 m_categoryID
//uint32 skillCostID; // 2 m_skillCostsID
char * name [ 16 ]; // 3-18 m_displayName_lang
// 19 string flags
//char* description[16]; // 20-35 m_description_lang
// 36 string flags
uint32 spellIcon ; // 37 m_spellIconID
//char* alternateVerb[16]; // 38-53 m_alternateVerb_lang
// 54 string flags
// 55 m_canLink
2008-10-11 14:16:25 -05:00
};
struct SkillLineAbilityEntry
{
2008-12-24 09:58:26 -06:00
uint32 id ; // 0 m_ID
uint32 skillId ; // 1 m_skillLine
uint32 spellId ; // 2 m_spell
uint32 racemask ; // 3 m_raceMask
uint32 classmask ; // 4 m_classMask
//uint32 racemaskNot; // 5 m_excludeRace
//uint32 classmaskNot; // 6 m_excludeClass
uint32 req_skill_value ; // 7 m_minSkillLineRank
uint32 forward_spellid ; // 8 m_supercededBySpell
uint32 learnOnGetSkill ; // 9 m_acquireMethod
uint32 max_value ; // 10 m_trivialSkillLineRankHigh
uint32 min_value ; // 11 m_trivialSkillLineRankLow
//uint32 characterPoints[2]; // 12-13 m_characterPoints[2]
2008-10-11 14:16:25 -05:00
};
struct SoundEntriesEntry
{
2008-12-24 09:58:26 -06:00
uint32 Id ; // 0 m_ID
//uint32 Type; // 1 m_soundType
//char* InternalName; // 2 m_name
//char* FileName[10]; // 3-12 m_File[10]
//uint32 Unk13[10]; // 13-22 m_Freq[10]
//char* Path; // 23 m_DirectoryBase
// 24 m_volumeFloat
// 25 m_flags
// 26 m_minDistance
// 27 m_distanceCutoff
// 28 m_EAXDef
2008-10-11 14:16:25 -05:00
};
2009-04-06 13:31:14 +02:00
#define MAX_SPELL_EFFECTS 3
2008-10-11 14:16:25 -05:00
struct SpellEntry
{
2008-12-24 09:58:26 -06:00
uint32 Id ; // 0 m_ID
uint32 Category ; // 1 m_category
uint32 Dispel ; // 2 m_dispelType
uint32 Mechanic ; // 3 m_mechanic
uint32 Attributes ; // 4 m_attribute
uint32 AttributesEx ; // 5 m_attributesEx
uint32 AttributesEx2 ; // 6 m_attributesExB
uint32 AttributesEx3 ; // 7 m_attributesExC
uint32 AttributesEx4 ; // 8 m_attributesExD
uint32 AttributesEx5 ; // 9 m_attributesExE
//uint32 AttributesEx6; // 10 m_attributesExF not used
uint32 Stances ; // 11 m_shapeshiftMask
uint32 StancesNot ; // 12 m_shapeshiftExclude
uint32 Targets ; // 13 m_targets
uint32 TargetCreatureType ; // 14 m_targetCreatureType
uint32 RequiresSpellFocus ; // 15 m_requiresSpellFocus
uint32 FacingCasterFlags ; // 16 m_facingCasterFlags
uint32 CasterAuraState ; // 17 m_casterAuraState
uint32 TargetAuraState ; // 18 m_targetAuraState
uint32 CasterAuraStateNot ; // 19 m_excludeCasterAuraState
uint32 TargetAuraStateNot ; // 20 m_excludeTargetAuraState
2009-01-03 10:56:00 -06:00
uint32 casterAuraSpell ; // 21 m_casterAuraSpell
uint32 targetAuraSpell ; // 22 m_targetAuraSpell
uint32 excludeCasterAuraSpell ; // 23 m_excludeCasterAuraSpell
uint32 excludeTargetAuraSpell ; // 24 m_excludeTargetAuraSpell
2008-12-24 09:58:26 -06:00
uint32 CastingTimeIndex ; // 25 m_castingTimeIndex
uint32 RecoveryTime ; // 26 m_recoveryTime
uint32 CategoryRecoveryTime ; // 27 m_categoryRecoveryTime
uint32 InterruptFlags ; // 28 m_interruptFlags
uint32 AuraInterruptFlags ; // 29 m_auraInterruptFlags
uint32 ChannelInterruptFlags ; // 30 m_channelInterruptFlags
uint32 procFlags ; // 31 m_procTypeMask
uint32 procChance ; // 32 m_procChance
uint32 procCharges ; // 33 m_procCharges
uint32 maxLevel ; // 34 m_maxLevel
uint32 baseLevel ; // 35 m_baseLevel
uint32 spellLevel ; // 36 m_spellLevel
uint32 DurationIndex ; // 37 m_durationIndex
uint32 powerType ; // 38 m_powerType
uint32 manaCost ; // 39 m_manaCost
uint32 manaCostPerlevel ; // 40 m_manaCostPerLevel
uint32 manaPerSecond ; // 41 m_manaPerSecond
uint32 manaPerSecondPerLevel ; // 42 m_manaPerSecondPerLeve
uint32 rangeIndex ; // 43 m_rangeIndex
float speed ; // 44 m_speed
//uint32 modalNextSpell; // 45 m_modalNextSpell not used
uint32 StackAmount ; // 46 m_cumulativeAura
uint32 Totem [ 2 ]; // 47-48 m_totem
int32 Reagent [ 8 ]; // 49-56 m_reagent
uint32 ReagentCount [ 8 ]; // 57-64 m_reagentCount
int32 EquippedItemClass ; // 65 m_equippedItemClass (value)
int32 EquippedItemSubClassMask ; // 66 m_equippedItemSubclass (mask)
int32 EquippedItemInventoryTypeMask ; // 67 m_equippedItemInvTypes (mask)
2009-04-06 13:31:14 +02:00
uint32 Effect [ MAX_SPELL_EFFECTS ]; // 68-70 m_effect
int32 EffectDieSides [ MAX_SPELL_EFFECTS ]; // 71-73 m_effectDieSides
uint32 EffectBaseDice [ MAX_SPELL_EFFECTS ]; // 74-76 m_effectBaseDice
float EffectDicePerLevel [ MAX_SPELL_EFFECTS ]; // 77-79 m_effectDicePerLevel
float EffectRealPointsPerLevel [ MAX_SPELL_EFFECTS ]; // 80-82 m_effectRealPointsPerLevel
int32 EffectBasePoints [ MAX_SPELL_EFFECTS ]; // 83-85 m_effectBasePoints (don't must be used in spell/auras explicitly, must be used cached Spell::m_currentBasePoints)
uint32 EffectMechanic [ MAX_SPELL_EFFECTS ]; // 86-88 m_effectMechanic
uint32 EffectImplicitTargetA [ MAX_SPELL_EFFECTS ]; // 89-91 m_implicitTargetA
uint32 EffectImplicitTargetB [ MAX_SPELL_EFFECTS ]; // 92-94 m_implicitTargetB
uint32 EffectRadiusIndex [ MAX_SPELL_EFFECTS ]; // 95-97 m_effectRadiusIndex - spellradius.dbc
uint32 EffectApplyAuraName [ MAX_SPELL_EFFECTS ]; // 98-100 m_effectAura
uint32 EffectAmplitude [ MAX_SPELL_EFFECTS ]; // 101-103 m_effectAuraPeriod
float EffectMultipleValue [ MAX_SPELL_EFFECTS ]; // 104-106 m_effectAmplitude
uint32 EffectChainTarget [ MAX_SPELL_EFFECTS ]; // 107-109 m_effectChainTargets
uint32 EffectItemType [ MAX_SPELL_EFFECTS ]; // 110-112 m_effectItemType
int32 EffectMiscValue [ MAX_SPELL_EFFECTS ]; // 113-115 m_effectMiscValue
int32 EffectMiscValueB [ MAX_SPELL_EFFECTS ]; // 116-118 m_effectMiscValueB
uint32 EffectTriggerSpell [ MAX_SPELL_EFFECTS ]; // 119-121 m_effectTriggerSpell
float EffectPointsPerComboPoint [ MAX_SPELL_EFFECTS ]; // 122-124 m_effectPointsPerCombo
flag96 EffectSpellClassMask [ MAX_SPELL_EFFECTS ]; //
2008-12-24 09:58:26 -06:00
uint32 SpellVisual [ 2 ]; // 134-135 m_spellVisualID
uint32 SpellIconID ; // 136 m_spellIconID
uint32 activeIconID ; // 137 m_activeIconID
2009-02-02 18:55:03 +01:00
//uint32 spellPriority; // 138 not used
2008-12-24 09:58:26 -06:00
char * SpellName [ 16 ]; // 139-154 m_name_lang
//uint32 SpellNameFlag; // 155 not used
char * Rank [ 16 ]; // 156-171 m_nameSubtext_lang
//uint32 RankFlags; // 172 not used
//char* Description[16]; // 173-188 m_description_lang not used
//uint32 DescriptionFlags; // 189 not used
//char* ToolTip[16]; // 190-205 m_auraDescription_lang not used
//uint32 ToolTipFlags; // 206 not used
uint32 ManaCostPercentage ; // 207 m_manaCostPct
uint32 StartRecoveryCategory ; // 208 m_startRecoveryCategory
uint32 StartRecoveryTime ; // 209 m_startRecoveryTime
uint32 MaxTargetLevel ; // 210 m_maxTargetLevel
uint32 SpellFamilyName ; // 211 m_spellClassSet
2009-02-02 17:01:56 +01:00
flag96 SpellFamilyFlags ; // 212-214
2008-12-24 09:58:26 -06:00
uint32 MaxAffectedTargets ; // 215 m_maxTargets
uint32 DmgClass ; // 216 m_defenseType
uint32 PreventionType ; // 217 m_preventionType
//uint32 StanceBarOrder; // 218 m_stanceBarOrder not used
float DmgMultiplier [ 3 ]; // 219-221 m_effectChainAmplitude
//uint32 MinFactionId; // 222 m_minFactionID not used
//uint32 MinReputation; // 223 m_minReputation not used
//uint32 RequiredAuraVision; // 224 m_requiredAuraVision not used
uint32 TotemCategory [ 2 ]; // 225-226 m_requiredTotemCategoryID
2009-01-02 11:03:43 -06:00
int32 AreaGroupId ; // 227 m_requiredAreaGroupId
2008-12-24 09:58:26 -06:00
uint32 SchoolMask ; // 228 m_schoolMask
uint32 runeCostID ; // 229 m_runeCostID
//uint32 spellMissileID; // 230 m_spellMissileID not used
2008-10-11 14:16:25 -05:00
2009-03-29 17:21:06 -06:00
// helpers
int32 CalculateSimpleValue ( uint8 eff ) const { return EffectBasePoints [ eff ] + int32 ( EffectBaseDice [ eff ]); }
2008-10-11 14:16:25 -05:00
private :
// prevent creating custom entries (copy data from original in fact)
SpellEntry ( SpellEntry const & ); // DON'T must have implementation
};
typedef std :: set < uint32 > SpellCategorySet ;
typedef std :: map < uint32 , SpellCategorySet > SpellCategoryStore ;
typedef std :: set < uint32 > PetFamilySpellsSet ;
typedef std :: map < uint32 , PetFamilySpellsSet > PetFamilySpellsStore ;
struct SpellCastTimesEntry
{
uint32 ID ; // 0
int32 CastTime ; // 1
//float CastTimePerLevel; // 2 unsure / per skill?
//int32 MinCastTime; // 3 unsure
};
struct SpellFocusObjectEntry
{
uint32 ID ; // 0
//char* Name[16]; // 1-15 unused
// 16 string flags, unused
};
// stored in SQL table
struct SpellThreatEntry
{
uint32 spellId ;
int32 threat ;
};
struct SpellRadiusEntry
{
uint32 ID ;
2009-02-14 15:56:04 +01:00
float radiusHostile ;
//uint32 Unk //always 0
float radiusFriend ;
2008-10-11 14:16:25 -05:00
};
struct SpellRangeEntry
{
uint32 ID ;
2009-02-14 15:56:04 +01:00
float minRangeHostile ;
float minRangeFriend ;
float maxRangeHostile ;
float maxRangeFriend ; //friend means unattackable unit here
2008-12-04 23:00:35 -06:00
uint32 type ;
2009-02-14 15:56:04 +01:00
//char* Name[16]; // 7-23 unused
// 24 string flags, unused
//char* Name2[16]; // 25-40 unused
// 41 string flags, unused
2008-10-11 14:16:25 -05:00
};
2008-12-24 09:58:26 -06:00
struct SpellRuneCostEntry
{
uint32 ID ; // 0
uint32 RuneCost [ 3 ]; // 1-3 (0=blood, 1=frost, 2=unholy)
uint32 runePowerGain ; // 4
bool NoRuneCost () const { return RuneCost [ 0 ] == 0 && RuneCost [ 1 ] == 0 && RuneCost [ 2 ] == 0 ; }
bool NoRunicPowerGain () const { return runePowerGain == 0 ; }
};
2008-10-11 14:16:25 -05:00
struct SpellShapeshiftEntry
{
uint32 ID ; // 0
//uint32 buttonPosition; // 1 unused
//char* Name[16]; // 2-17 unused
//uint32 NameFlags; // 18 unused
uint32 flags1 ; // 19
int32 creatureType ; // 20 <=0 humanoid, other normal creature types
//uint32 unk1; // 21 unused
uint32 attackSpeed ; // 22
//uint32 modelID; // 23 unused, alliance modelid (where horde case?)
//uint32 unk2; // 24 unused
//uint32 unk3; // 25 unused
//uint32 unk4; // 26 unused
//uint32 unk5; // 27 unused
//uint32 unk6; // 28 unused
//uint32 unk7; // 29 unused
//uint32 unk8; // 30 unused
//uint32 unk9; // 31 unused
//uint32 unk10; // 32 unused
//uint32 unk11; // 33 unused
//uint32 unk12; // 34 unused
};
struct SpellDurationEntry
{
uint32 ID ;
int32 Duration [ 3 ];
};
struct SpellItemEnchantmentEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
//uint32 charges; // 1 m_charges
uint32 type [ 3 ]; // 2-4 m_effect[3]
uint32 amount [ 3 ]; // 5-7 m_effectPointsMin[3]
//uint32 amount2[3] // 8-10 m_effectPointsMax[3]
uint32 spellid [ 3 ]; // 11-13 m_effectArg[3]
2009-02-03 19:12:17 -06:00
char * description [ 16 ]; // 14-29 m_name_lang[16]
//uint32 descriptionFlags; // 30 name flags
uint32 aura_id ; // 31 m_itemVisual
uint32 slot ; // 32 m_flags
uint32 GemID ; // 33 m_src_itemID
uint32 EnchantmentCondition ; // 34 m_condition_id
//uint32 requiredSkill; // 35 m_requiredSkillID
//uint32 requiredSkillValue; // 36 m_requiredSkillRank
2008-10-11 14:16:25 -05:00
};
struct SpellItemEnchantmentConditionEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
uint8 Color [ 5 ]; // 1-5 m_lt_operandType[5]
//uint32 LT_Operand[5]; // 6-10 m_lt_operand[5]
uint8 Comparator [ 5 ]; // 11-15 m_operator[5]
uint8 CompareColor [ 5 ]; // 15-20 m_rt_operandType[5]
uint32 Value [ 5 ]; // 21-25 m_rt_operand[5]
//uint8 Logic[5] // 25-30 m_logic[5]
2008-10-11 14:16:25 -05:00
};
struct StableSlotPricesEntry
{
uint32 Slot ;
uint32 Price ;
};
2009-03-18 20:54:39 -06:00
struct SummonPropertiesEntry
2008-12-24 09:58:26 -06:00
{
uint32 Id ; // 0
2009-03-19 14:41:30 -06:00
uint32 Category ; // 1, 0 - can't be controlled?, 1 - something guardian?, 2 - pet?, 3 - something controllable?, 4 - taxi/mount?
2009-03-25 16:20:30 -06:00
uint32 Faction ; // 2, 14 rows > 0
2008-12-24 09:58:26 -06:00
uint32 Type ; // 3, see enum
uint32 Slot ; // 4, 0-6
uint32 Flags ; // 5
2009-03-18 20:54:39 -06:00
};
2008-12-24 09:58:26 -06:00
2009-03-21 14:55:10 -06:00
#define MAX_TALENT_RANK 5
#define MAX_PET_TALENT_RANK 3 // use in calculations, expected <= MAX_TALENT_RANK
2008-10-11 14:16:25 -05:00
struct TalentEntry
{
uint32 TalentID ; // 0
uint32 TalentTab ; // 1 index in TalentTab.dbc (TalentTabEntry)
uint32 Row ; // 2
uint32 Col ; // 3
2009-03-21 14:55:10 -06:00
uint32 RankID [ MAX_TALENT_RANK ]; // 4-8
2008-10-11 14:16:25 -05:00
// 9-12 not used, always 0, maybe not used high ranks
uint32 DependsOn ; // 13 index in Talent.dbc (TalentEntry)
// 14-15 not used
uint32 DependsOnRank ; // 16
2008-12-24 09:58:26 -06:00
// 17-18 not used
//uint32 unk1; // 19, 0 or 1
//uint32 unk2; // 20, all 0
//uint32 unkFlags1; // 21, related to hunter pet talents
//uint32 unkFlags2; // 22, related to hunter pet talents
2008-10-11 14:16:25 -05:00
};
struct TalentTabEntry
{
2008-12-24 09:58:26 -06:00
uint32 TalentTabID ; // 0
//char* name[16]; // 1-16, unused
2008-10-11 14:16:25 -05:00
//uint32 nameFlags; // 17, unused
//unit32 spellicon; // 18
// 19 not used
2008-12-24 09:58:26 -06:00
uint32 ClassMask ; // 20
uint32 petTalentMask ; // 21
uint32 tabpage ; // 22
//char* internalname; // 23
2008-10-11 14:16:25 -05:00
};
struct TaxiNodesEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
uint32 map_id ; // 1 m_ContinentID
float x ; // 2 m_x
float y ; // 3 m_y
float z ; // 4 m_z
//char* name[16]; // 5-21 m_Name_lang
// 22 string flags
uint32 MountCreatureID [ 2 ]; // 23-24 m_MountCreatureID[2]
2008-10-11 14:16:25 -05:00
};
2008-11-20 16:16:57 -06:00
struct TaxiPathEntry
{
2008-12-24 09:58:26 -06:00
uint32 ID ; // 0 m_ID
uint32 from ; // 1 m_FromTaxiNode
uint32 to ; // 2 m_ToTaxiNode
uint32 price ; // 3 m_Cost
2008-11-20 16:16:57 -06:00
};
struct TaxiPathNodeEntry
2008-10-11 14:16:25 -05:00
{
2008-12-24 09:58:26 -06:00
// 0 m_ID
uint32 path ; // 1 m_PathID
uint32 index ; // 2 m_NodeIndex
uint32 mapid ; // 3 m_ContinentID
float x ; // 4 m_LocX
float y ; // 5 m_LocY
float z ; // 6 m_LocZ
uint32 actionFlag ; // 7 m_flags
uint32 delay ; // 8 m_delay
// 9 m_arrivalEventID
// 10 m_departureEventID
2008-10-11 14:16:25 -05:00
};
struct TotemCategoryEntry
{
uint32 ID ; // 0
//char* name[16]; // 1-16
// 17 string flags, unused
uint32 categoryType ; // 18 (one for specialization)
uint32 categoryMask ; // 19 (compatibility mask for same type: different for totems, compatible from high to low for rods)
};
2008-12-24 09:58:26 -06:00
struct VehicleEntry
{
uint32 m_ID ; // 0
uint32 m_flags ; // 1
float m_turnSpeed ; // 2
float m_pitchSpeed ; // 3
float m_pitchMin ; // 4
float m_pitchMax ; // 5
uint32 m_seatID [ 8 ]; // 6-13
float m_mouseLookOffsetPitch ; // 14
float m_cameraFadeDistScalarMin ; // 15
float m_cameraFadeDistScalarMax ; // 16
float m_cameraPitchOffset ; // 17
int m_powerType [ 3 ]; // 18-20
int m_powerToken [ 3 ]; // 21-23
float m_facingLimitRight ; // 24
float m_facingLimitLeft ; // 25
float m_msslTrgtTurnLingering ; // 26
float m_msslTrgtPitchLingering ; // 27
float m_msslTrgtMouseLingering ; // 28
float m_msslTrgtEndOpacity ; // 29
float m_msslTrgtArcSpeed ; // 30
float m_msslTrgtArcRepeat ; // 31
float m_msslTrgtArcWidth ; // 32
float m_msslTrgtImpactRadius [ 2 ]; // 33-34
char * m_msslTrgtArcTexture ; // 35
char * m_msslTrgtImpactTexture ; // 36
char * m_msslTrgtImpactModel [ 2 ]; // 37-38
float m_cameraYawOffset ; // 39
uint32 m_uiLocomotionType ; // 40
float m_msslTrgtImpactTexRadius ; // 41
uint32 m_uiSeatIndicatorType ; // 42
};
2009-01-22 22:44:27 -06:00
struct VehicleSeatEntry
2008-12-24 09:58:26 -06:00
{
uint32 m_ID ; // 0
uint32 m_flags ; // 1
int32 m_attachmentID ; // 2
float m_attachmentOffsetX ; // 3
float m_attachmentOffsetY ; // 4
float m_attachmentOffsetZ ; // 5
float m_enterPreDelay ; // 6
float m_enterSpeed ; // 7
float m_enterGravity ; // 8
float m_enterMinDuration ; // 9
float m_enterMaxDuration ; // 10
float m_enterMinArcHeight ; // 11
float m_enterMaxArcHeight ; // 12
int32 m_enterAnimStart ; // 13
int32 m_enterAnimLoop ; // 14
int32 m_rideAnimStart ; // 15
int32 m_rideAnimLoop ; // 16
int32 m_rideUpperAnimStart ; // 17
int32 m_rideUpperAnimLoop ; // 18
float m_exitPreDelay ; // 19
float m_exitSpeed ; // 20
float m_exitGravity ; // 21
float m_exitMinDuration ; // 22
float m_exitMaxDuration ; // 23
float m_exitMinArcHeight ; // 24
float m_exitMaxArcHeight ; // 25
int32 m_exitAnimStart ; // 26
int32 m_exitAnimLoop ; // 27
int32 m_exitAnimEnd ; // 28
float m_passengerYaw ; // 29
float m_passengerPitch ; // 30
float m_passengerRoll ; // 31
int32 m_passengerAttachmentID ; // 32
int32 m_vehicleEnterAnim ; // 33
int32 m_vehicleExitAnim ; // 34
int32 m_vehicleRideAnimLoop ; // 35
int32 m_vehicleEnterAnimBone ; // 36
int32 m_vehicleExitAnimBone ; // 37
int32 m_vehicleRideAnimLoopBone ; // 38
float m_vehicleEnterAnimDelay ; // 39
float m_vehicleExitAnimDelay ; // 40
uint32 m_vehicleAbilityDisplay ; // 41
uint32 m_enterUISoundID ; // 42
uint32 m_exitUISoundID ; // 43
int32 m_uiSkin ; // 44
uint32 m_flagsB ; // 45
};
2008-10-11 14:16:25 -05:00
struct WorldMapAreaEntry
{
2008-12-24 09:58:26 -06:00
//uint32 ID; // 0
uint32 map_id ; // 1
uint32 area_id ; // 2 index (continent 0 areas ignored)
//char* internal_name // 3
float y1 ; // 4
float y2 ; // 5
float x1 ; // 6
float x2 ; // 7
2008-10-11 14:16:25 -05:00
int32 virtual_map_id ; // 8 -1 (map_id have correct map) other: virtual map where zone show (map_id - where zone in fact internally)
2009-04-12 17:42:16 -05:00
// int32 dungeonMap_id; // 9 pointer to DungeonMap.dbc (owerride x1,x2,y1,y2 coordinates)
2008-10-11 14:16:25 -05:00
};
struct WorldSafeLocsEntry
{
uint32 ID ; // 0
uint32 map_id ; // 1
float x ; // 2
float y ; // 3
float z ; // 4
//char* name[16] // 5-20 name, unused
// 21 name flags, unused
};
2008-12-24 09:58:26 -06:00
struct WorldMapOverlayEntry
{
uint32 ID ; // 0
2009-03-26 14:02:11 -06:00
uint32 areatableID [ 4 ]; // 2-5
2008-12-24 09:58:26 -06:00
};
2008-10-11 14:16:25 -05:00
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
#if defined( __GNUC__ )
#pragma pack()
#else
#pragma pack(pop)
#endif
// Structures not used for casting to loaded DBC data and not required then packing
struct TalentSpellPos
{
TalentSpellPos () : talent_id ( 0 ), rank ( 0 ) {}
TalentSpellPos ( uint16 _talent_id , uint8 _rank ) : talent_id ( _talent_id ), rank ( _rank ) {}
uint16 talent_id ;
uint8 rank ;
};
typedef std :: map < uint32 , TalentSpellPos > TalentSpellPosMap ;
struct TaxiPathBySourceAndDestination
{
TaxiPathBySourceAndDestination () : ID ( 0 ), price ( 0 ) {}
TaxiPathBySourceAndDestination ( uint32 _id , uint32 _price ) : ID ( _id ), price ( _price ) {}
uint32 ID ;
uint32 price ;
};
typedef std :: map < uint32 , TaxiPathBySourceAndDestination > TaxiPathSetForSource ;
typedef std :: map < uint32 , TaxiPathSetForSource > TaxiPathSetBySource ;
struct TaxiPathNode
{
TaxiPathNode () : mapid ( 0 ), x ( 0 ), y ( 0 ), z ( 0 ), actionFlag ( 0 ), delay ( 0 ) {}
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 ) {}
uint32 mapid ;
float x ;
float y ;
float z ;
uint32 actionFlag ;
uint32 delay ;
};
typedef std :: vector < TaxiPathNode > TaxiPathNodeList ;
typedef std :: vector < TaxiPathNodeList > TaxiPathNodesByPath ;
2008-12-24 09:58:26 -06:00
#define TaxiMaskSize 12
2008-10-11 14:16:25 -05:00
typedef uint32 TaxiMask [ TaxiMaskSize ];
#endif
2009-02-17 20:07:49 -06:00