DB/Material: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== | ==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== | ==6.0.1.18179== | ||
struct MaterialRec { | struct MaterialRec { | ||
uint32_t m_ID; | uint32_t m_ID; | ||
uint32_t m_flags; | uint32_t m_flags; // 1: isMetal, impact_type = item_class == 4 ? (!(flags & 2) ? (flags & 4 ? 1 : 0) : 2) : 0 | ||
{{Template:Type/foreign_key|table=SoundEntries}} m_foleySoundID; | |||
{{Template:Type/foreign_key|table=SoundEntries}} m_sheatheSoundID; | |||
{{Template:Type/foreign_key|table=SoundEntries}} m_unsheatheSoundID; | |||
}; | }; | ||
==Flags== | |||
{| class="wikitable" | |||
|- | |||
! Index !! EnumeratedString 365 | |||
|- | |||
| 0 || Is Chain | |||
|- | |||
| 1 || Is Metal | |||
|- | |||
| 2 || Is Plate | |||
|} | |||
"Type" would probably be a more appropriate type - has anyone seen multiple bits set? -Warpten | |||
[[Category:DBC]] | [[Category:DBC]] | ||
[[Category:DBC_Alpha]] | |||
[[Category:DBC_Vanilla]] | |||
[[Category:DBC_WotLK]] | [[Category:DBC_WotLK]] | ||
[[Category:DBC_WoD]][[Category:6.0.1.18179]] | [[Category:DBC_WoD]][[Category:6.0.1.18179]] |
Latest revision as of 23:47, 26 June 2024
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; };
Flags
Index | EnumeratedString 365 |
---|---|
0 | Is Chain |
1 | Is Metal |
2 | Is Plate |
"Type" would probably be a more appropriate type - has anyone seen multiple bits set? -Warpten