2020-08-29 11:43:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CNShardServer.hpp"
|
|
|
|
|
2020-09-13 20:26:16 +00:00
|
|
|
struct TransportRoute {
|
|
|
|
int type, start, end, cost, mssSpeed, mssRouteNum;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TransportLocation {
|
|
|
|
int npcID, x, y, z;
|
|
|
|
};
|
|
|
|
|
2020-08-29 11:43:33 +00:00
|
|
|
namespace TransportManager {
|
2020-09-13 20:26:16 +00:00
|
|
|
extern std::map<int32_t, TransportRoute> Routes;
|
|
|
|
extern std::map<int32_t, TransportLocation> Locations;
|
|
|
|
|
2020-08-29 11:43:33 +00:00
|
|
|
void init();
|
|
|
|
|
|
|
|
void transportRegisterLocationHandler(CNSocket* sock, CNPacketData* data);
|
2020-09-13 20:26:16 +00:00
|
|
|
void transportWarpHandler(CNSocket* sock, CNPacketData* data);
|
2020-08-29 11:43:33 +00:00
|
|
|
}
|