DB/AreaPOI: Difference between revisions
Jump to navigation
Jump to search
m (→6.0.1.18179: fix: missing array) |
m (→Icons) |
||
(27 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | |||
Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things. | Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things. | ||
== | ==Classic== | ||
===0.5.3.3368=== | |||
====Struct==== | |||
struct AreaPOIRec { | |||
uint32_t m_ID; | |||
uint32_t m_importance; | |||
uint32_t m_icon; | |||
uint32_t m_factionID; | |||
float m_x; | |||
float m_y; | |||
float m_z; | |||
uint32_t m_continentID; | |||
uint32_t m_flags; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
}; | |||
====Flags==== | |||
0x1: show (directional pointer) on minimap | |||
0x2: show minimap icon <code>UpdatePointsOfInterest</code> | |||
0x4: show on worldmap <code>CGWorldMap::GetPOIPosition</code> | |||
0x8: show on worldmap at continent zoom level (major hubs) | |||
0x10: show on worldmap at world zoom level (capital cities) | |||
===1.12.1.5875=== | |||
struct AreaPOIRec { | |||
uint32_t m_ID; | |||
uint32_t m_importance; | |||
uint32_t m_icon; | |||
uint32_t m_factionID; | |||
float m_x; | |||
float m_y; | |||
float m_z; | |||
uint32_t m_continentID; | |||
uint32_t m_flags; // &0x80: multi-state icon <code>CGLCD::UpdateMapPositions()</code> e.g. stables in AB | |||
uint32_t m_areaID; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
{{Template:Type|langstringref}} m_description_lang; | |||
uint32_t m_worldStateID; | |||
}; | |||
==Wrath== | |||
===3.0.2.8905-3.3.5.12340=== | |||
====Table==== | |||
{| style="background:#FCFCFC; color:black" | {| style="background:#FCFCFC; color:black" | ||
|- | |- | ||
Line 31: | Line 74: | ||
| 11 || AllianceIcon0% || Integer || Destroyed alliance building. | | 11 || AllianceIcon0% || Integer || Destroyed alliance building. | ||
|- style="background:#C1FFC1;" | |- style="background:#C1FFC1;" | ||
| 12 || | | 12 || FactionID || Integer || This being an icon would make no sense. Walls for cities? | ||
|- | |- | ||
| 13 || X || Float || Coordinates of the POI. Global ones. | | 13 || X || Float || Coordinates of the POI. Global ones. | ||
Line 39: | Line 82: | ||
| 15 || Z || Float || | | 15 || Z || Float || | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 16 || [[Map.dbc| | | 16 || [[Map.dbc|Map.ID]] || iRefID || And on which map that POI is. | ||
|- | |- | ||
| 17 || | | 17 || Flags || Integer || Flags defining, where this icon is shown. &4: Zone, &128: BG, &512: showInBattle(mini)Map | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 18 || [[AreaTable.dbc| | | 18 || [[AreaTable.dbc|AreaTable.ID]] || iRefID || | ||
|- | |- | ||
| 19 || Name || [[Loc]] || | | 19 || Name || [[Loc]] || | ||
Line 49: | Line 92: | ||
| 36 || Description || [[Loc]] || The alert triggered on the zone (World Event/PvP states mostly). | | 36 || Description || [[Loc]] || The alert triggered on the zone (World Event/PvP states mostly). | ||
|- | |- | ||
| 53 || | | 53 || WorldState || Integer || Most likely the value defines the icon. | ||
|- style="background:#C1FFC1;" | |- style="background:#C1FFC1;" | ||
| 54 || | | 54 || WorldMapLink || Null || (WotLK) | ||
|} | |} | ||
==6.0.1.18179== | ==Warlords== | ||
===6.0.1.18179=== | |||
====Struct==== | |||
struct AreaPOIRec { | struct AreaPOIRec { | ||
uint32_t m_ID; | |||
uint32_t m_importance; | |||
enum { | |||
ICON_normal100, // This is getting displayed normally. | |||
ICON_normal50, // Destructible building being neutral at 50%. | |||
ICON_normal0, // Destroyed neutral building. | |||
ICON_horde100, // if captured by horde | |||
ICON_horde50, | |||
ICON_horde0, | |||
ICON_alliance100, // if captured by alliance | |||
ICON_alliance50, | |||
ICON_alliance0, | |||
ICON_count, // = 9 | |||
}; | |||
uint32_t m_icon[ICON_count]; | |||
uint32_t m_factionID; | |||
float m_pos[2]; | float m_pos[2]; | ||
uint32_t m_continentID; | |||
uint32_t m_flags; | |||
uint32_t m_areaID; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
{{Template:Type|langstringref}} m_description_lang; | |||
uint32_t m_worldStateID; | |||
uint32_t m_playerConditionID; | |||
uint32_t m_worldMapLink; | |||
uint32_t m_portLocID; | |||
}; | }; | ||
==Icons== | |||
These icons are not referenced anywhere but are in the Interface\Minimap\POIICONS file which is a 256*256 file with 16*16 pixel icons. | |||
{| style="background:#FCFCFC; color:black" | {| style="background:#FCFCFC; color:black" | ||
| || + 0 || + 1 || + 2 || + 3 || + 4 || + 5 || + 6 || + 7 || + 8 || + 9 || + 10 || + 11 || + 12 || + 13 || + 14 || + 15 || | | || + 0 || + 1 || + 2 || + 3 || + 4 || + 5 || + 6 || + 7 || + 8 || + 9 || + 10 || + 11 || + 12 || + 13 || + 14 || + 15 || | ||
Line 95: | Line 151: | ||
The remaining icons are unused. | The remaining icons are unused. | ||
[[Category:DBC]] | |||
[[Category:DBC_Alpha]] | |||
[[Category: | [[Category:DBC_Vanilla]] | ||
[[Category:DBC_WotLK]][[Category:3.0.2.8905]][[Category:3.3.5.12340]] | |||
[[Category:DBC_WoD]][[Category:6.0.1.18179]] |
Latest revision as of 07:36, 17 August 2023
Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things.
Classic
0.5.3.3368
Struct
struct AreaPOIRec { uint32_t m_ID; uint32_t m_importance; uint32_t m_icon; uint32_t m_factionID; float m_x; float m_y; float m_z; uint32_t m_continentID; uint32_t m_flags; langstringrefⁱ m_name_lang; };
Flags
0x1: show (directional pointer) on minimap 0x2: show minimap iconUpdatePointsOfInterest
0x4: show on worldmapCGWorldMap::GetPOIPosition
0x8: show on worldmap at continent zoom level (major hubs) 0x10: show on worldmap at world zoom level (capital cities)
1.12.1.5875
struct AreaPOIRec {
uint32_t m_ID;
uint32_t m_importance;
uint32_t m_icon;
uint32_t m_factionID;
float m_x;
float m_y;
float m_z;
uint32_t m_continentID;
uint32_t m_flags; // &0x80: multi-state icon CGLCD::UpdateMapPositions()
e.g. stables in AB
uint32_t m_areaID;
langstringrefⁱ m_name_lang;
langstringrefⁱ m_description_lang;
uint32_t m_worldStateID;
};
Wrath
3.0.2.8905-3.3.5.12340
Table
Column | Field | Type | Notes |
---|---|---|---|
1 | ID | Integer | |
2 | importance | Integer | |
3 | NormalIcon | Integer | This is getting displayed normally. |
4 | NormalIcon50% | Integer | Destructible building being neutral at 50%. |
5 | NormalIcon0% | Integer | Destroyed neutral building. |
6 | HordeIcon | Integer | Building at 100% captured by the horde. |
7 | HordeIcon50% | Integer | Destructible building being neutral at 50%. |
8 | HordeIcon0% | Integer | Destroyed horde building. |
9 | AllianceIcon | Integer | Building at 100% captured by the alliance. |
10 | AllianceIcon50% | Integer | Destructible building being neutral at 50%. |
11 | AllianceIcon0% | Integer | Destroyed alliance building. |
12 | FactionID | Integer | This being an icon would make no sense. Walls for cities? |
13 | X | Float | Coordinates of the POI. Global ones. |
14 | Y | Float | |
15 | Z | Float | |
16 | Map.ID | iRefID | And on which map that POI is. |
17 | Flags | Integer | Flags defining, where this icon is shown. &4: Zone, &128: BG, &512: showInBattle(mini)Map |
18 | AreaTable.ID | iRefID | |
19 | Name | Loc | |
36 | Description | Loc | The alert triggered on the zone (World Event/PvP states mostly). |
53 | WorldState | Integer | Most likely the value defines the icon. |
54 | WorldMapLink | Null | (WotLK) |
Warlords
6.0.1.18179
Struct
struct AreaPOIRec { uint32_t m_ID; uint32_t m_importance; enum { ICON_normal100, // This is getting displayed normally. ICON_normal50, // Destructible building being neutral at 50%. ICON_normal0, // Destroyed neutral building. ICON_horde100, // if captured by horde ICON_horde50, ICON_horde0, ICON_alliance100, // if captured by alliance ICON_alliance50, ICON_alliance0, ICON_count, // = 9 }; uint32_t m_icon[ICON_count]; uint32_t m_factionID; float m_pos[2]; uint32_t m_continentID; uint32_t m_flags; uint32_t m_areaID; langstringrefⁱ m_name_lang; langstringrefⁱ m_description_lang; uint32_t m_worldStateID; uint32_t m_playerConditionID; uint32_t m_worldMapLink; uint32_t m_portLocID; };
Icons
These icons are not referenced anywhere but are in the Interface\Minimap\POIICONS file which is a 256*256 file with 16*16 pixel icons.
+ 0 | + 1 | + 2 | + 3 | + 4 | + 5 | + 6 | + 7 | + 8 | + 9 | + 10 | + 11 | + 12 | + 13 | + 14 | + 15 | ||
0 | none | av - mine - N | av - mine - H | av - mine - A | graveyard - N / A | city | tower | ! Flag | graveyard normal | tower - N / A | tower - H | tower - A | tower - N / H | graveyard - H | graveyard - N / H | graveyard - A | |
16 | ab - gold mine - N | ab - gold mine - N / A | ab - gold mine - A | ab - gold mine - N / H | ab - gold mine - H | ab - lumber mill - N | ab - lumber mill - N / A | ab - lumber mill - A | ab - lumber mill - N / H | ab - lumber mill - H | ab - blacksmith - N | ab - blacksmith - N / A | ab - blacksmith - A | ab - blacksmith - N / H | ab - blacksmith - H | ab - farm - N | |
32 | ab - farm - N / A | ab - farm - A | ab - farm - N / H | ab - farm - H | ab - stables - N | ab - stables - N / A | ab - stables - A | ab - stables - N / H | ab - stables - H | Naxxramas invasion | sandworm | flag - A | flag - H | flag - N | medal - A | medal - N / A | |
48 | medal - H | medal - N / H | tower - destr. 50% - A | tower - destr. - A | tower - destr. 50% - H | tower - destr. - H | tower - destr. 50% - N | tower - destr. - N | bridge? - 100% - gray | bridge? - 50% - gray | bridge? - 0% - gray | bridge? - 100% - red | bridge? - 50% - red | bridge? - 0% - red | bridge? - 100% - blue | bridge? - 50% - blue | |
64 | bridge? - 0% - blue | building - 100% - gray | building - 50% - gray | building - 0% - gray | building - 100% - red | building - 50% - red | building - 0% - red | building - 100% - blue | building - 50% - blue | building - 0% - blue | gate - 100% - gray | gate - 50% - gray | gate - 0% - gray | gate - 100% - red | gate - 50% - red | gate - 0% - red | |
80 | gate - 100% - blue | gate - 50% - blue | gate - 0% - blue | wall_ho - 100% - gray | wall_ho - 50% - gray | wall_ho - 0% - gray | wall_ho - 100% - red | wall_ho - 50% - red | wall_ho - 0% - red | wall_ho - 100% - blue | wall_ho - 50% - blue | wall_ho - 0% - blue | wall_vert - 100% - gray | wall_vert - 50% - gray | wall_vert - 0% - gray | wall_vert - 100% - red | |
96 | wall_vert - 50% - red | wall_vert - 0% - red | wall_vert - 100% - blue | wall_vert - 50% - blue | wall_vert - 0% - blue | crossed swords | gate - 100% - yellow | gate - 50% - yellow | gate - 0% - yellow | gate - 100% - violet | gate - 50% - violet | gate - 0% - violet | gate - 100% - green | gate - 50% - green | gate - 0% - green | 0 | |
112 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : |
The remaining icons are unused.