Nuclide
Software Development Kit for id Tech
modserver.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2022 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
30/* Emscripten builds and mods? Forgetaboutit! */
31#ifndef WEBMENU
32
34#define MODSERVER_REQ_LIST 100
36#define MODSERVER_REQ_ITEM 101
38#define MODSERVER_REQ_PKGNAMES 102
39
40#define ModServer_URI_Callback URI_Get_Callback
41
44
47void ModServer_Refresh(void);
48
55void ModServer_ParseList(string data);
56
62void ModServer_ParseItem(string data);
63
65void ModServer_URI_Callback(float id, float code, string data, int resourcebytes);
66#endif
67 // end of modserver
void ModServer_ParseItem(string data)
Function that interprets a mod-item entry.
Definition: modserver.qc:102
var int g_iModServerReqCount
Definition: modserver.h:43
void ModServer_Refresh(void)
Call this to initiate a lengthy process of updating the list of mods we can install in the custom gam...
Definition: modserver.qc:56
void ModServer_ParseList(string data)
Function that interprets a mod-list.
Definition: modserver.qc:64
#define ModServer_URI_Callback
Definition: modserver.h:40
var int g_iModServerLoading
Definition: modserver.h:42