mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Add single-player local combat system with auto-attack, NPC aggro, and death
This commit is contained in:
parent
b16578e2b9
commit
ed5d10ec01
6 changed files with 273 additions and 4 deletions
|
|
@ -788,6 +788,13 @@ void NpcManager::initialize(pipeline::AssetManager* am,
|
|||
loadedModels.size(), " unique models");
|
||||
}
|
||||
|
||||
uint32_t NpcManager::findRenderInstanceId(uint64_t guid) const {
|
||||
for (const auto& npc : npcs) {
|
||||
if (npc.guid == guid) return npc.renderInstanceId;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void NpcManager::update(float deltaTime, rendering::CharacterRenderer* cr) {
|
||||
if (!cr) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue