Nuclide
Software Development Kit for id Tech
maplibrary.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
37typedef enum
38{
45
47typedef struct
48{
49 string name;
50 string title;
51 string author;
52 string type;
53 string preview;
55
57void MapLibrary_Init(void);
58
61
63__variant MapLibrary_GetInfo(int, mapType_t);
64 // end of maplibrary
void MapLibrary_Init(void)
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.
Definition: maplibrary.qc:86
int MapLibrary_GetMapCount(void)
Returns the total amount of maps available.
Definition: maplibrary.qc:168
__variant MapLibrary_GetInfo(int, mapType_t)
Retrieve information about a given mapID.
Definition: maplibrary.qc:174
mapType_t
Options querying Map Library entries using MapLibrary_GetInfo().
Definition: maplibrary.h:38
@ MAPINFO_NAME
(string) Name of the map.
Definition: maplibrary.h:39
@ MAPINFO_TITLE
(string) Title of the map.
Definition: maplibrary.h:40
@ MAPINFO_TYPE
(string) Type of map.
Definition: maplibrary.h:42
@ MAPINFO_AUTHOR
(string) Author of the map.
Definition: maplibrary.h:41
@ MAPINFO_PREVIEW
(string) URL to a preview of the map.
Definition: maplibrary.h:43
Data holding Map Library entries.
Definition: maplibrary.h:48
string type
Definition: maplibrary.h:52
string author
Definition: maplibrary.h:51
string title
Definition: maplibrary.h:50
string name
Definition: maplibrary.h:49
string preview
Definition: maplibrary.h:53