Nuclide
Software Development Kit for id Technology
|
Locally installed maps/levels control functions. More...
Locally installed maps/levels control functions.
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().
Classes | |
struct | mapLibrary_t |
Data holding Map Library entries. More... | |
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... | |
Enumerations | |
enum | mapType_t { MAPINFO_NAME , MAPINFO_TITLE , MAPINFO_AUTHOR , MAPINFO_TYPE , MAPINFO_PREVIEW } |
Options querying Map Library entries using MapLibrary_GetInfo() . More... | |
__variant MapLibrary_GetInfo | ( | int | mapID, |
mapType_t | infoType | ||
) |
Retrieve information about a given mapID.
See mapType_t for which fields you can query.
int MapLibrary_GetMapCount | ( | void | ) |
Returns the total amount of maps available.
void MapLibrary_Init | ( | void | ) |
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.
enum mapType_t |
Options querying Map Library entries using MapLibrary_GetInfo()
.