OpenFusion/src/Racing.hpp

26 lines
477 B
C++
Raw Normal View History

2020-11-28 13:29:06 +00:00
#pragma once
#include "core/Core.hpp"
#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;
int mode, ticketSlot;
2020-11-28 16:20:37 +00:00
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();
}