wowdev / WoWDBDefs

Client database definitions for World of Warcraft
Other
254 stars 95 forks source link

unk_8c/unk_90 flags are parent columns #13

Closed bloerwald closed 6 years ago

bloerwald commented 6 years ago

from https://github.com/wowdev/renderservice/issues/10 via @Shauren:

    bool HasParentLookup;
    uint ParentIdColumn;
    uint ParentIdHotfixColumn;
MMOSimca commented 6 years ago

HasParentLookup = 1 and (int, not uint) ParentIdColumn = -1, then the column specified by ParentIdHotfixColumn is the column we use for $relation$ attributes.

HasParentLookup = 1 and ParentIdColumn > 0, then the column specified by ParentIdHotfixColumn is... something else. We can debate what to name but I'm not convinced parent is the right name.

I'd also suggest these 3 fields be renamed/retyped as such:

bool HasIndexLookup;
int IndexIdColumnInFile;
int IndexIdColumnInClient;
Shauren commented 6 years ago

HasParentLookup = 1 and ParentIdColumn > 0, then the column specified by ParentIdHotfixColumn is...

In this case its always equal to ParentIdColumn

as for "hotfix" - its used for hotfixes (ClientDbReply, ClientHotfixMessage, ClientAvailableHotfixes) - the stuff that goes into DBCache.bin

bloerwald commented 6 years ago

see pull request for updated merge of parent and relation and generalised annotations.