HubInfo

Hub's informations.

Members

Aliases

GameInfo
alias GameInfo = Tuple!(string, "motd", uint[], "protocols", bool, "onlineMode", ushort, "port")
Undocumented in source.

Mixins

__anonymous
mixin IO!(serverId, reservedUUIDs, displayName, gamesInfo, online, max, language, acceptedLanguages, additionalJSON)
Undocumented in source.

Variables

ID
enum ubyte ID;
Undocumented in source.
UNLIMITED
enum int UNLIMITED;
Undocumented in source.
acceptedLanguages
string[] acceptedLanguages;

Languages accepted by the server in the same format as language. The list should always contain at least one element (the default language).

additionalJSON
JSONValue additionalJSON;

Optional informations about the server's software, social accounts, system and options.

displayName
string displayName;

Unformatted name of the server as indicated in the hub's configuration file.

gamesInfo
GameInfo[ubyte] gamesInfo;

Informations about the games supported by the hub.

language
string language;

Default server's language in format (language_COUNTRY, e.g. en_GB) and also the default language for players that don't specify their language or for the ones which language is not supported by the server.

max
int max;

Number of maximum players that can connect to the server (that is the sum of the max players of the nodes already connected). The number may change after the current node connects.

online
uint online;

Number of players currently online and connected to other nodes.

reservedUUIDs
ulong reservedUUIDs;

First number of the 4,294,967,296 (2^32) reserved by the hub to create the node's UUIDs. Every UUID generated by the node is formed by the server's id (most signicant) and the next reserved uuid (least significant). This way every UUID in the hub and in the connected nodes is always different.

serverId
ulong serverId;

Server's id, either given by a snoop system or randomly generated at runtime.

Meta