mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-04-01 17:20:04 +00:00
Add basic Monkey Skyway functionality
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "CNShardServer.hpp"
|
||||
#include "NPCManager.hpp"
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#define LERP_GAP 5000
|
||||
|
||||
struct WarpLocation;
|
||||
|
||||
struct TransportRoute {
|
||||
int type, start, end, cost, mssSpeed, mssRouteNum;
|
||||
@@ -13,9 +20,13 @@ struct TransportLocation {
|
||||
namespace TransportManager {
|
||||
extern std::map<int32_t, TransportRoute> Routes;
|
||||
extern std::map<int32_t, TransportLocation> Locations;
|
||||
extern std::map<int32_t, std::vector<WarpLocation>> SkywayPaths;
|
||||
extern std::unordered_map<CNSocket*, std::queue<WarpLocation>> SkywayQueue;
|
||||
|
||||
void init();
|
||||
|
||||
void transportRegisterLocationHandler(CNSocket* sock, CNPacketData* data);
|
||||
void transportWarpHandler(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
void tickSkywaySystem(CNServer* serv, time_t currTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user