DB/SheatheSoundLookups: Difference between revisions
Jump to navigation
Jump to search
Barncastle (talk | contribs) mNo edit summary |
Barncastle (talk | contribs) |
||
Line 6: | Line 6: | ||
uint32_t m_classID; | uint32_t m_classID; | ||
uint32_t m_subclassID; | uint32_t m_subclassID; | ||
{{Template:Type/foreign_key|table=Material}} m_material; // always 1 = PARRYMATERIAL_METAL, 2 = PARRYMATERIAL_WOOD | |||
uint32_t m_checkMaterial; | uint32_t m_checkMaterial; // <code>InitializeSheatheSounds()</code> if set, the explicit class/subclass/material combinations are used. missing materials are not assigned a sound | ||
// if not set, entries are created for all [[DB/Material|Materials]] with the same class/subclass and sounds as the record | |||
uint32_t m_sheatheSound; | uint32_t m_sheatheSound; | ||
uint32_t m_unsheatheSound; | uint32_t m_unsheatheSound; |
Revision as of 14:55, 4 October 2017
0.5.3.3368, 1.12.1.5875, 3.3.5.12340
struct SheatheSoundLookupsRec {
uint32_t m_ID;
uint32_t m_classID;
uint32_t m_subclassID;
foreign_keyⁱ<uint32_t, &MaterialRec::m_ID> m_material; // always 1 = PARRYMATERIAL_METAL, 2 = PARRYMATERIAL_WOOD
uint32_t m_checkMaterial; // InitializeSheatheSounds()
if set, the explicit class/subclass/material combinations are used. missing materials are not assigned a sound
// if not set, entries are created for all Materials with the same class/subclass and sounds as the record
uint32_t m_sheatheSound;
uint32_t m_unsheatheSound;
};
enum PARRYMATERIALS
{
PARRYMATERIAL_WOOD = 0x0,
PARRYMATERIAL_METAL = 0x1,
NUM_PARRYMATERIALS = 0x2,
};
Structure
Column Field Type Notes 1 ID Integer 2 ClassId Integer Type... 4 = shield, 2 = weapon (probably iRefID_ItemSubClass_classID) 3 SubClassId Integer Unique ID per type, per weapon type (probably iRefID_ItemSubClass_subClassID) 4 Material Integer Theory: Grouping or type? 0 = shield, 1 = metal weapon, 2 = wood weapon 5 CheckMaterial Integer Shields are 0, everything else is 1.... 6 iRefID_SoundEntries_sheath Integer 7 iRefID_SoundEntries_unsheath Integer