Trigger player model visual update when online inventory changes

rebuildOnlineInventory() now sets a dirty flag that GameScreen checks
each frame to call updateCharacterGeosets/Textures and loadEquippedWeapons.
This commit is contained in:
Kelsi 2026-02-06 03:13:42 -08:00
parent ab1f39c73b
commit 82e63fc95d
3 changed files with 5 additions and 1 deletions

View file

@ -190,6 +190,7 @@ public:
// Inventory
Inventory& getInventory() { return inventory; }
const Inventory& getInventory() const { return inventory; }
bool consumeOnlineEquipmentDirty() { bool d = onlineEquipDirty_; onlineEquipDirty_ = false; return d; }
// Targeting
void setTarget(uint64_t guid);
@ -548,6 +549,7 @@ private:
std::unordered_set<uint32_t> pendingItemQueries_;
std::array<uint64_t, 23> equipSlotGuids_{};
std::array<uint64_t, 16> backpackSlotGuids_{};
bool onlineEquipDirty_ = false;
// ---- Phase 2: Combat ----
bool autoAttacking = false;