OpenFusion/src/Racing.hpp

21 lines
417 B
C++
Raw Normal View History

2020-11-28 13:29:06 +00:00
#pragma once
#include "servers/CNShardServer.hpp"
2020-11-28 13:29:06 +00:00
2020-11-28 14:16:14 +00:00
struct EPInfo {
2020-12-22 04:55:43 +00:00
int zoneX, zoneY, EPID, maxScore, maxTime;
2020-11-28 14:16:14 +00:00
};
2020-11-28 16:20:37 +00:00
struct EPRace {
int ringCount, mode, ticketSlot;
time_t startTime;
};
namespace Racing {
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-12-22 04:55:43 +00:00
extern std::map<int32_t, std::pair<std::vector<int>, std::vector<int>>> EPRewards;
2020-11-28 14:16:14 +00:00
2020-11-28 13:29:06 +00:00
void init();
}