Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches
maplibrary.h
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
35
45
52
54typedef struct
55{
56 string name;
57 string title;
58 string author;
59 string type;
60 string preview;
62
64typedef struct
65{
66 string name;
67 string title;
69
71void MapLibrary_Init(void);
72
74void ModeLibrary_Init(void);
75
79
81__variant MapLibrary_GetInfo(int, mapType_t);
83 // end of maplibrary
void MapLibrary_Init(void)
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.
Definition maplibrary.qc:123
__variant ModeLibrary_GetInfo(int, mapType_t)
modeType_t
Options querying Mode Library entries using ModeLibrary_GetInfo().
Definition maplibrary.h:48
int MapLibrary_GetMapCount(void)
Returns the total amount of maps available.
Definition maplibrary.qc:205
__variant MapLibrary_GetInfo(int, mapType_t)
Retrieve information about a given mapID.
Definition maplibrary.qc:210
mapType_t
Options querying Map Library entries using MapLibrary_GetInfo().
Definition maplibrary.h:38
int ModeLibrary_GetModeCount(void)
Definition maplibrary.qc:339
void ModeLibrary_Init(void)
Initialize the map library, MapLibrary_GetMapCount() will return the amount of maps available.
Definition maplibrary.qc:240
@ MODEINFO_TITLE
(string) Title of the map.
Definition maplibrary.h:50
@ MODEINFO_NAME
(string) Name of the mode.
Definition maplibrary.h:49
@ 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:55
string type
Definition maplibrary.h:59
string author
Definition maplibrary.h:58
string title
Definition maplibrary.h:57
string name
Definition maplibrary.h:56
string preview
Definition maplibrary.h:60
Data holding Mode Library entries.
Definition maplibrary.h:65
string title
Definition maplibrary.h:67
string name
Definition maplibrary.h:66