2020-11-28 13:29:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CNShardServer.hpp"
|
|
|
|
|
2020-11-28 14:16:14 +00:00
|
|
|
struct EPInfo {
|
|
|
|
int zoneX, zoneY, EPID, maxScore;
|
|
|
|
};
|
|
|
|
|
2020-11-28 16:20:37 +00:00
|
|
|
struct EPRace {
|
|
|
|
int ringCount, mode, ticketSlot;
|
|
|
|
time_t startTime;
|
|
|
|
};
|
|
|
|
|
2020-11-28 13:29:06 +00:00
|
|
|
namespace RacingManager {
|
|
|
|
|
2020-11-28 14:16:14 +00:00
|
|
|
extern std::map<int32_t, EPInfo> EPData;
|
2020-11-28 16:20:37 +00:00
|
|
|
extern std::map<CNSocket*, EPRace> EPRaces;
|
2020-11-28 14:16:14 +00:00
|
|
|
|
2020-11-28 13:29:06 +00:00
|
|
|
void init();
|
2020-11-28 16:20:37 +00:00
|
|
|
|
|
|
|
void racingStart(CNSocket* sock, CNPacketData* data);
|
|
|
|
void racingGetPod(CNSocket* sock, CNPacketData* data);
|
|
|
|
void racingCancel(CNSocket* sock, CNPacketData* data);
|
|
|
|
void racingEnd(CNSocket* sock, CNPacketData* data);
|
2020-11-28 13:29:06 +00:00
|
|
|
}
|