DB/Material: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (Structure: Corrected iRefID)
mNo edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Header Info ==
==0.5.3.3368, 1.12.1.5875==
Records.....................8
  struct MaterialRec {
  Fields......................3
  uint32_t m_materialID;
  Record Size................12
  uint32_t m_flags; // see 6.0.1.18179
String Block Size...........1
  uint32_t m_foleySoundID;
 
  };
==Structure==
==6.0.1.18179==
 
  struct MaterialRec {
  Column Field Type
  uint32_t m_ID;
1 ID Integer
  uint32_t m_flags;                                                  // 1: isMetal, impact_type = item_class == 4 ? (!(flags & 2) ? (flags & 4 ? 1 : 0) : 2) : 0
2 Flags Integer 1, 2, 4
  {{Template:Type/foreign_key|table=SoundEntries}} m_foleySoundID;
3 [[SoundEntries.dbc|FoleySound]] iRefID
  {{Template:Type/foreign_key|table=SoundEntries}} m_sheatheSoundID;
3 [[SoundEntries.dbc|SheathSound]] iRefID
  {{Template:Type/foreign_key|table=SoundEntries}} m_unsheatheSoundID;
  3 [[SoundEntries.dbc|UnSheathSound]] iRefID
  };


[[Category:DBC]]
[[Category:DBC]]
[[Category:DBC_Alpha]]
[[Category:DBC_Vanilla]]
[[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Latest revision as of 15:47, 12 October 2017

0.5.3.3368, 1.12.1.5875

struct MaterialRec {
  uint32_t m_materialID;
  uint32_t m_flags; // see 6.0.1.18179
  uint32_t m_foleySoundID;
};

6.0.1.18179

struct MaterialRec {
  uint32_t m_ID;
  uint32_t m_flags;                                                  // 1: isMetal, impact_type = item_class == 4 ? (!(flags & 2) ? (flags & 4 ? 1 : 0) : 2) : 0
  foreign_key<uint32_t, &SoundEntriesRec::m_ID> m_foleySoundID;
  foreign_key<uint32_t, &SoundEntriesRec::m_ID> m_sheatheSoundID;
  foreign_key<uint32_t, &SoundEntriesRec::m_ID> m_unsheatheSoundID;
};