i have one more question about below code
that code is Skin_getAttachment function
i wonder why need slotIndex.
it looks like attachment is dependent on slot.
thx. have a good day..
Attachment* Skin_getAttachment (const Skin* self, int slotIndex, const char* name) {
const _Entry* entry = SUB_CAST(_Internal, self) ->entries;
while (entry) {
if (entry->slotIndex == slotIndex && strcmp(entry->name, name) == 0) return entry->attachment;
entry = entry->next;
}
return 0;
}