Generalize NPC AI stepping logic

The MobAI::Mobs map still needs to be removed.
This commit is contained in:
2021-03-31 21:05:49 +02:00
parent 3325397d17
commit 65462d01e3
7 changed files with 65 additions and 55 deletions

View File

@@ -34,7 +34,7 @@ struct WarpLocation {
};
namespace NPCManager {
extern std::map<int32_t, BaseNPC*> NPCs;
extern std::unordered_map<int32_t, BaseNPC*> NPCs;
extern std::map<int32_t, WarpLocation> Warps;
extern std::vector<WarpLocation> RespawnPoints;
extern std::vector<NPCEvent> NPCEvents;
@@ -42,6 +42,7 @@ namespace NPCManager {
extern int32_t nextId;
void init();
void queueNPCRemoval(int32_t);
void destroyNPC(int32_t);
void updateNPCPosition(int32_t, int X, int Y, int Z, uint64_t I, int angle);