DB/ItemClass: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 3: Line 3:
   uint32_t m_classID;
   uint32_t m_classID;
   uint32_t m_subclassMapID;
   uint32_t m_subclassMapID;
   uint32_t m_flags;
   uint32_t m_flags; // 1 or 0. Used to indicate if the record is weapon related <code>InitWeaponSubclasses() -> LocateWeaponSubclass()</code>
   {{Template:Type|langstringref}} m_className_lang;
   {{Template:Type|langstringref}} m_className_lang;
   uint32_t m_generatedID;
   uint32_t m_generatedID;
  };
  };
==Structure==
==Structure==
  '''Column Field Type Notes'''  
  '''Column Field Type Notes'''  

Revision as of 11:55, 5 September 2017

0.5.3.3368

struct ItemClassRec {
  uint32_t m_classID;
  uint32_t m_subclassMapID;
  uint32_t m_flags;  // 1 or 0. Used to indicate if the record is weapon related InitWeaponSubclasses() -> LocateWeaponSubclass()
  langstringref m_className_lang;
  uint32_t m_generatedID;
};

Structure

Column	Field 		Type 		Notes 
1 	ID 		Integer 	
2 	Subclass? 	Integer 	pointing back to an other ID ;)
3 	isWeapon? 	Boolean 	Only set on id=2 (name="Weapon", subclass=2)
4-20 	Name 		String + Loc	

6.0.1.18179

struct ItemClassRec {
  uint32_t m_classID;
  uint32_t m_flags;
  float m_priceModifier;
  langstringref m_className_lang;
};