load warps into memory in NPCManager::init

This commit is contained in:
2020-08-23 11:26:25 -05:00
parent 0d27412d81
commit 561a809f33
4 changed files with 46 additions and 22 deletions

View File

@@ -7,8 +7,13 @@
#include <map>
struct WarpLocation {
int x, y, z;
};
namespace NPCManager {
extern std::map<int32_t, BaseNPC> NPCs;
extern std::map<int32_t, WarpLocation> Warps;
void init();
void updatePlayerNPCS(CNSocket* sock, PlayerView& plr);