TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
racetrackselect.h
Go to the documentation of this file.
1/***************************************************************************
2
3 file : racetrackselect.h
4 created : Mon Jun 1 20:00:00 CET 2026
5 copyright : (C) 2026 by Bernhard Wymann
6 email : berniw@bluewin.ch
7
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
22
23#ifndef _RACETRACKSELECT_H_
24#define _RACETRACKSELECT_H_
25
26#include <string>
27#include <vector>
28
29
30
39 tReTrackCandidate(const char *trackCategory, const char *trackName);
40
41 std::string category;
42 std::string name;
43};
44
45
50
51 std::string category;
52 std::string name;
53 bool fallback;
54};
55
56
64extern bool ReTrackFileExists(const char *category, const char *trackName, char *trackFile, int trackFileSize);
65
69extern std::vector<tReTrackCandidate> ReFindAvailableTracks(void);
70
83extern bool ReResolveTrackSelection(void *params, int curTrackIndex, const std::vector<tReTrackCandidate>& availableTracks, tReTrackSelection *selection, bool updateParams);
84
85
86#endif /* _RACETRACKSELECT_H_ */
bool ReResolveTrackSelection(void *params, int curTrackIndex, const std::vector< tReTrackCandidate > &availableTracks, tReTrackSelection *selection, bool updateParams)
Resolve the current race-manager track entry to an available track.
std::vector< tReTrackCandidate > ReFindAvailableTracks(void)
Find all available tracks under the current TORCS track search path.
bool ReTrackFileExists(const char *category, const char *trackName, char *trackFile, int trackFileSize)
Check whether a track XML file exists and can be parsed.
tReTrackCandidate(const char *trackCategory, const char *trackName)
Build a track candidate from category and track directory names.
std::string name
Track directory and XML base name.
std::string category
Track category directory name.
Result of resolving a race-manager track selection.
tReTrackSelection()
Create an empty selection result.
std::string name
Selected track directory and XML base name.
std::string category
Selected track category directory name.
bool fallback
true if the configured track was replaced by a fallback