Nuclide
Software Development Kit for id Tech
|
Map library parsing and querying of metadata. More...
Go to the source code of this file.
Enumerations | |
enum | mapType_t { MAPINFO_NAME , MAPINFO_TITLE , MAPINFO_AUTHOR , MAPINFO_TYPE , MAPINFO_PREVIEW } |
Functions | |
void | MapLibrary_Init (void) |
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available. More... | |
int | MapLibrary_GetMapCount (void) |
Returns the total amount of maps available. More... | |
__variant | MapLibrary_GetInfo (int, mapType_t) |
Retrieve information about a given mapID. More... | |
Map library parsing and querying of metadata.
Menus need to be aware of what levels aka maps are available for modes like multiplayer. The MapLibrary is by configured to only parse levels from the current game directory (much like GoldSrc) and optionally can blacklist maps based on a variety of criteria which may be configurable at some point in time.
The menu needs to call MapLibrary_Init() at least once, after which you can query the total amount of maps that are available via MapLibrary_GetMapCount().
You can then iterate over the individual entries with MapLibrary_GetInfo().
enum mapType_t |
Retrieve information about a given mapID.
See mapType_t for which fields you can query.
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.