mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(component): implement CCharacterComponent::UpdateItemAU
This commit is contained in:
parent
bc929cbb46
commit
c46fc09ad3
@ -1379,7 +1379,23 @@ void CCharacterComponent::UpdateItemAL(ITEM_SLOT itemSlot, const ItemDisplayInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::UpdateItemAU(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
void CCharacterComponent::UpdateItemAU(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
||||||
// TODO
|
auto priority = s_itemPriority[itemSlot][SECTION_ARM_UPPER];
|
||||||
|
|
||||||
|
if (update) {
|
||||||
|
if (!this->UpdateItemDisplay(SECTION_ARM_UPPER, displayRec, priority)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this->ClearItemDisplay(SECTION_ARM_UPPER, priority);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (priority != -1) {
|
||||||
|
this->m_sectionDirty |= (1 << SECTION_ARM_UPPER);
|
||||||
|
|
||||||
|
// TODO component request logic
|
||||||
|
|
||||||
|
this->m_flags &= ~0x8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::UpdateItemFO(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
void CCharacterComponent::UpdateItemFO(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user