Nuclide
Software Development Kit for id Tech
master.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
28#define MASTER_DNS "master.frag-net.com"
30#define MASTER_PORT 27950
31
33string Master_Resolve(void);
34
37
40
42int Master_GetLANServers(void);
43
45void Master_UpdateCache(void);
46
48void Master_RefreshCache(void);
49
51void Master_ResortCache(void);
52
54void Master_GetInternetList(void);
55
57void Master_GetLANList(void);
58 // end of masterserver
60
61var float srv_fldAdress;
62var float srv_fldName;
63var float srv_fldPing;
66var float srv_fldMap;
67var float srv_fldGame;
int Master_GetTotalServers(void)
Returns the total amount of games from both LAN and Internet.
Definition: master.qc:52
void Master_GetInternetList(void)
Grab a NEW internet game list.
Definition: master.qc:152
void Master_UpdateCache(void)
Get completely new list of servers, hard-reset the cache.
Definition: master.qc:120
void Master_RefreshCache(void)
Refresh the current server cache.
Definition: master.qc:102
void Master_GetLANList(void)
Grab a NEW LAN list.
Definition: master.qc:176
int Master_GetLANServers(void)
Returns the amount of LAN servers from the last refresh.
Definition: master.qc:64
void Master_ResortCache(void)
Re-Sort the server cache without refreshing.
Definition: master.qc:137
int Master_GetInternetServers(void)
Returns the amount of internet games from the last refresh.
Definition: master.qc:70
string Master_Resolve(void)
Returns IP of master server.
Definition: master.qc:34
var float srv_fldName
Definition: master.h:62
var float srv_fldServerInfo
Definition: master.h:68
var float srv_fldPlayers
Definition: master.h:64
var float srv_fldPing
Definition: master.h:63
var float srv_fldMaxplayers
Definition: master.h:65
var float srv_fldGame
Definition: master.h:67
var float srv_fldPlayer0
Definition: master.h:69
var float srv_fldMap
Definition: master.h:66
var float srv_fldAdress
Definition: master.h:61