Fix NPC visibility and stabilize world transport/taxi updates

This commit is contained in:
Kelsi 2026-02-11 18:25:04 -08:00
parent 6ff27e789b
commit b0af2c928d
16 changed files with 452 additions and 173 deletions

View file

@ -1,6 +1,9 @@
#pragma once
#include <string>
#include <cstdint>
#include <unordered_map>
#include <vector>
namespace wowee {
namespace pipeline { class AssetManager; }
@ -23,6 +26,7 @@ public:
void setVolume(int volume);
int getVolume() const { return volumePercent; }
void setUnderwaterMode(bool underwater);
void preloadMusic(const std::string& mpqPath);
bool isPlaying() const { return playing; }
bool isInitialized() const { return assetManager != nullptr; }
@ -41,6 +45,8 @@ private:
std::string pendingTrack;
float fadeTimer = 0.0f;
float fadeDuration = 0.0f;
std::unordered_map<std::string, std::vector<uint8_t>> musicDataCache_;
};
} // namespace audio