DB/SoundWaterType: Difference between revisions
Jump to navigation
Jump to search
Barncastle (talk | contribs) m (Undo revision 24705 by Barncastle (talk)) |
Barncastle (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Sandbox/VersionRange|min_expansionlevel=0|max_expansionlevel=3}} | {{Template:Sandbox/VersionRange|min_expansionlevel=0|max_expansionlevel=3}} | ||
The client expects this DBC to have groups of 3 records grouped by m_soundType. Each group will have one record of each of the valid m_soundSubtype values. | |||
{{Template:SectionBox/VersionRange|max_expansionlevel=0|max_build=0.5.3.3368}} | |||
In the alpha, these groups are stored in a <code>LIQUIDINFO</code> struct. <code>HandleWaterAmbiences</code> controls what LIQUIDINFOs should be active and the LIQUIDINFOs themselves control what one of their three sounds plays. | |||
==0.5.3.3368, 1.12.1.5875== | ==0.5.3.3368, 1.12.1.5875== | ||
struct SoundWaterTypeRec { | struct SoundWaterTypeRec { | ||
uint32_t m_ID; | uint32_t m_ID; | ||
uint32_t m_soundType; | uint32_t m_soundType; // grouping key | ||
uint32_t m_soundSubtype; | uint32_t m_soundSubtype; // valid values are 0, 4 or 8. client reads as <code>(m_soundSubtype >> 2) & 3</code> | ||
{{Template:Type/foreign_key|table=SoundEntries}} m_SoundID; | {{Template:Type/foreign_key|table=SoundEntries}} m_SoundID; | ||
}; | }; | ||
Line 18: | Line 23: | ||
[[Category:DBC_Alpha]] | [[Category:DBC_Alpha]] | ||
[[Category:DBC_Vanilla]] | [[Category:DBC_Vanilla]] | ||
[[Category:DBC_BC]] | |||
[[Category:DBC_WotLK]] | [[Category:DBC_WotLK]] |
Revision as of 23:12, 3 October 2017
The client expects this DBC to have groups of 3 records grouped by m_soundType. Each group will have one record of each of the valid m_soundSubtype values.
In the alpha, these groups are stored in a LIQUIDINFO
struct. HandleWaterAmbiences
controls what LIQUIDINFOs should be active and the LIQUIDINFOs themselves control what one of their three sounds plays.
0.5.3.3368, 1.12.1.5875
struct SoundWaterTypeRec {
uint32_t m_ID;
uint32_t m_soundType; // grouping key
uint32_t m_soundSubtype; // valid values are 0, 4 or 8. client reads as (m_soundSubtype >> 2) & 3
foreign_keyⁱ<uint32_t, &SoundEntriesRec::m_ID> m_SoundID;
};
Structure
Column Field Type Notes 1 ID Integer 2 iRefID_LiquidType Integer 3 FluidSpeed BitMask Water speed. 0x0 = still; 0x4 = slow; 0x8 fast 4 iRefID_SoundEntries Integer