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
27/* Emscripten builds and mods? Forgetaboutit! */
28#ifndef WEBMENU
29
31#define MODSERVER_REQ_LIST 100
33#define MODSERVER_REQ_ITEM 101
35#define MODSERVER_REQ_PKGNAMES 102
36
37#define ModServer_URI_Callback URI_Get_Callback
38
41
44void ModServer_Refresh(void);
45
52void ModServer_ParseList(string data);
53
59void ModServer_ParseItem(string data);
60
62void ModServer_URI_Callback(float id, float code, string data, int resourcebytes);
63#endif
void ModServer_ParseItem(string data)
Function that interprets a mod-item entry.
Definition: modserver.qc:102
var int g_iModServerReqCount
Definition: modserver.h:40
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:37
var int g_iModServerLoading
Definition: modserver.h:39