2020-08-19 22:21:35 +00:00
|
|
|
#ifndef _NPCMANAGER_HPP
|
|
|
|
#define _NPCMANAGER_HPP
|
|
|
|
|
|
|
|
#include "CNProtocol.hpp"
|
2020-08-20 21:43:48 +00:00
|
|
|
#include "PlayerManager.hpp"
|
|
|
|
#include "NPC.hpp"
|
2020-08-19 22:21:35 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace NPCManager {
|
2020-08-20 21:43:48 +00:00
|
|
|
extern std::map<int32_t, BaseNPC> NPCs;
|
2020-08-19 22:21:35 +00:00
|
|
|
void init();
|
|
|
|
|
2020-08-20 21:43:48 +00:00
|
|
|
void updatePlayerNPCS(CNSocket* sock, PlayerView& plr);
|
2020-08-23 15:32:25 +00:00
|
|
|
void npcWarpManager(CNSocket* sock, CNPacketData* data);
|
|
|
|
|
2020-08-19 22:21:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-23 15:32:25 +00:00
|
|
|
#endif
|