mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 15:00:06 +00:00
3cfec7aab3
* Add transportation registration * Add S.C.A.M.P.E.R. functionality Co-authored-by: dongresource <dongresource@protonmail.com>
22 lines
490 B
C++
22 lines
490 B
C++
#pragma once
|
|
|
|
#include "CNShardServer.hpp"
|
|
|
|
struct TransportRoute {
|
|
int type, start, end, cost, mssSpeed, mssRouteNum;
|
|
};
|
|
|
|
struct TransportLocation {
|
|
int npcID, x, y, z;
|
|
};
|
|
|
|
namespace TransportManager {
|
|
extern std::map<int32_t, TransportRoute> Routes;
|
|
extern std::map<int32_t, TransportLocation> Locations;
|
|
|
|
void init();
|
|
|
|
void transportRegisterLocationHandler(CNSocket* sock, CNPacketData* data);
|
|
void transportWarpHandler(CNSocket* sock, CNPacketData* data);
|
|
}
|