2020-11-28 13:29:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-07-16 23:19:40 +00:00
|
|
|
#include "core/Core.hpp"
|
2021-04-14 02:17:21 +00:00
|
|
|
|
2022-07-16 23:19:40 +00:00
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
|
|
|
#include <set>
|
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 {
|
2021-12-16 02:34:15 +00:00
|
|
|
std::set<int> collectedRings;
|
2021-04-14 02:17:21 +00:00
|
|
|
int mode, ticketSlot;
|
2020-11-28 16:20:37 +00:00
|
|
|
time_t startTime;
|
|
|
|
};
|
|
|
|
|
2021-03-16 22:29:13 +00:00
|
|
|
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();
|
|
|
|
}
|