Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Classes
ServerInfo.h
1
/*
2
* Copyright (c) 2025 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
25
class
26
ncServerInfoManager
27
{
28
public
:
29
void
ncServerInfoManager
(
void
);
30
31
nonvirtual
void
Init(
void
);
32
nonvirtual
void
Shutdown(
void
);
33
nonvirtual
void
UpdateCache(
void
);
34
35
nonvirtual
string
HostName(
void
);
36
nonvirtual
string
HostAddress(
void
);
37
nonvirtual
string
MapName(
void
);
38
39
nonvirtual
int
MaxClients(
void
);
40
nonvirtual
int
MaxPlayers(
void
);
41
nonvirtual
int
MaxSpectators(
void
);
42
43
/* speedier for display purposes */
44
nonvirtual
string
MaxClientsString(
void
);
45
nonvirtual
string
MaxPlayersString(
void
);
46
nonvirtual
string
MaxSpectatorsString(
void
);
47
48
private
:
49
string
m_hostName;
50
string
m_hostAddress;
51
string
m_mapName;
52
int
m_maxClients;
53
int
m_maxPlayers;
54
int
m_maxSpectators;
55
string
m_maxClientsString;
56
string
m_maxPlayersString;
57
string
m_maxSpectatorsString;
58
};
ncServerInfoManager
A cache/manager for serverinfo on the client.
Definition:
ServerInfo.h:27
src
client
ServerInfo.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.