3#include "game/system/GhostFile.hh"
40 std::array<Player, 12> players;
45 typedef std::function<void(
RaceConfig *,
void *)> InitCallback;
52 [[nodiscard]]
const Scenario &raceScenario()
const {
53 return m_raceScenario;
56 [[nodiscard]] Scenario &raceScenario() {
57 return m_raceScenario;
60 void setGhost(
const u8 *rkg) {
64 static void RegisterInitCallback(
const InitCallback &callback,
void *arg) {
69 static RaceConfig *CreateInstance();
70 static void DestroyInstance();
72 [[nodiscard]]
static RaceConfig *Instance() {
78 ~RaceConfig()
override;
80 Scenario m_raceScenario;
83 static RaceConfig *s_instance;
An interface for ensuring certain structures and classes are destroyed with the heap.
Initializes the player with parameters specified in the provided ghost file.
static void * s_onInitCallbackArg
The argument sent into the callback. This is expected to be reinterpret_casted.
void initGhost()
Initializes the ghost.
static InitCallback s_onInitCallback
Host-agnostic way of initializing RaceConfig. The type of the first player must be set to either Loca...
void initControllers()
Initializes the controllers.
High-level handling for generic system operations, such as input reading, race configuration,...