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
32typedef enum
33{
40
42void MapLibrary_Init(void);
43
46
__variant(float table, string name, optional __variant deflt, optional float requiretype, optional float index) hash_get
void MapLibrary_Init(void)
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.
Definition: maplibrary.qc:95
int MapLibrary_GetMapCount(void)
Returns the total amount of maps available.
Definition: maplibrary.qc:177
__variant MapLibrary_GetInfo(int, mapType_t)
Retrieve information about a given mapID.
Definition: maplibrary.qc:183
mapType_t
Definition: maplibrary.h:33
@ MAPINFO_NAME
(string) Name of the map.
Definition: maplibrary.h:34
@ MAPINFO_TITLE
(string) Title of the map.
Definition: maplibrary.h:35
@ MAPINFO_TYPE
(string) Type of map.
Definition: maplibrary.h:37
@ MAPINFO_AUTHOR
(string) Author of the map.
Definition: maplibrary.h:36
@ MAPINFO_PREVIEW
(string) URL to a preview of the map.
Definition: maplibrary.h:38