Nuclide
Software Development Kit for id Technology
modserver.h
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
31/* Emscripten builds and mods? Forgetaboutit! */
32#ifndef WEBMENU
33
35#define MODSERVER_REQ_LIST 100
37#define MODSERVER_REQ_ITEM 101
39#define MODSERVER_REQ_PKGNAMES 102
40
41#define ModServer_URI_Callback URI_Get_Callback
42
45
48void ModServer_Refresh(void);
49
56void ModServer_ParseList(string data);
57
63void ModServer_ParseItem(string data);
64
66void ModServer_URI_Callback(float id, float code, string data, int resourcebytes);
67#endif
68 // end of modserver
void ModServer_ParseItem(string data)
Function that interprets a mod-item entry.
Definition: modserver.qc:87
var int g_iModServerReqCount
Definition: modserver.h:44
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:41
void ModServer_ParseList(string data)
Function that interprets a mod-list.
Definition: modserver.qc:49
#define ModServer_URI_Callback
Definition: modserver.h:41
var int g_iModServerLoading
Definition: modserver.h:43