DB/CurrencyCategory: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
m (Flags from companion app)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


{{Template:Sandbox/VersionRange|min_expansionlevel=3}}
{{Template:Sandbox/VersionRange|min_expansionlevel=3}}
==Structure==
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180 " | Field
! width="80" | Type
! width="600" | Notes
|-
|1  || ID  || Integer  ||
|-
|2  || flags || Integer  ||
|-
|3-19  || Name  || [[Loc]]  ||
|}


==6.0.1.18179==
==unknown probably wotlk, 6.0.1.18179==
  struct CurrencyCategoryRec {
  struct CurrencyCategoryRec {
   uint32_t m_ID;
   uint32_t m_ID;
   enum {
   enum {
     FLAG_less_important = 1,    // all with flag (or without?) are sorted after others
     FLAG_less_important = 1,    // all with flag are sorted after others
     FLAG_is_unused_category = 2, // the "unused" category, last one with flag is used, should only be set once
     FLAG_is_unused_category = 2, // the "unused" category, last one with flag is used, should only be set once
     FLAG_hidden = 4,            // was probably added later on (present in 6.0.1)
     FLAG_hidden = 4,            // was probably added later on (present in 6.0.1)
Line 28: Line 14:
   {{Template:Type|stringref}} m_name_lang;
   {{Template:Type|stringref}} m_name_lang;
  };
  };
===Flags===
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Value
! width="750" | Description
|-
| 0x0001 || FLAG_SORT_LAST
|-
| 0x0002 || FLAG_PLAYER_ITEM_ASSIGNMENT
|-
| 0x0004 || HIDDEN
|-
| 0x0008 || VIRTUAL
|}
[[Category:DBC]][[Category:DBC_WotLK]]
[[Category:DBC]][[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Latest revision as of 19:07, 25 November 2020

The new currency-system has categories.

≥ Wrath

unknown probably wotlk, 6.0.1.18179

struct CurrencyCategoryRec {
  uint32_t m_ID;
  enum {
    FLAG_less_important = 1,     // all with flag are sorted after others
    FLAG_is_unused_category = 2, // the "unused" category, last one with flag is used, should only be set once
    FLAG_hidden = 4,             // was probably added later on (present in 6.0.1)
  };
  uint32_t m_flags; 
  stringref m_name_lang;
};

Flags

Value Description
0x0001 FLAG_SORT_LAST
0x0002 FLAG_PLAYER_ITEM_ASSIGNMENT
0x0004 HIDDEN
0x0008 VIRTUAL