mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
19 lines
774 B
C++
19 lines
774 B
C++
|
#include "CNShardServer.hpp"
|
||
|
#include "CNStructs.hpp"
|
||
|
#include "PlayerManager.hpp"
|
||
|
#include "TransportManager.hpp"
|
||
|
|
||
|
void TransportManager::init() {
|
||
|
REGISTER_SHARD_PACKET(P_CL2FE_REQ_REGIST_TRANSPORTATION_LOCATION, transportRegisterLocationHandler);
|
||
|
}
|
||
|
|
||
|
void TransportManager::transportRegisterLocationHandler(CNSocket* sock, CNPacketData* data) {
|
||
|
sP_CL2FE_REQ_REGIST_TRANSPORTATION_LOCATION* transport = (sP_CL2FE_REQ_REGIST_TRANSPORTATION_LOCATION*)data->buf;
|
||
|
|
||
|
INITSTRUCT(sP_FE2CL_REP_PC_REGIST_TRANSPORTATION_LOCATION_SUCC, resp);
|
||
|
resp.eTT = transport->eTT;
|
||
|
resp.iLocationID = transport->iLocationID;
|
||
|
|
||
|
sock->sendPacket((void*)&resp, P_FE2CL_REP_PC_REGIST_TRANSPORTATION_LOCATION_SUCC, sizeof(sP_FE2CL_REP_PC_REGIST_TRANSPORTATION_LOCATION_SUCC));
|
||
|
}
|