added basic NPCManager

This commit is contained in:
2020-08-20 16:43:48 -05:00
parent c549192f59
commit 6857f50c30
8 changed files with 100 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
#include "CNProtocol.hpp"
#include "PlayerManager.hpp"
#include "NPCManager.hpp"
#include "CNShardServer.hpp"
#include "CNShared.hpp"
@@ -145,6 +146,8 @@ void PlayerManager::updatePlayerPosition(CNSocket* sock, int X, int Y, int Z) {
players[otherSock].viewable.push_back(sock);
}
}
NPCManager::updatePlayerNPCS(sock, players[sock]);
}
void PlayerManager::enterPlayer(CNSocket* sock, CNPacketData* data) {