KROYSDOCS
HomeWhat's newv0.1.0
SCRIPTING API / Other / NetworkServerInfo

NetworkServerInfo

A server found on the local network: its address, names, map, player counts and ping (Network.GetServers).

Kindrecord struct
NamespaceKroys.EngineScripting
Members9
SourceNetwork.cs
DECLARATION

Declaration

Namespace Kroys.EngineScripting.

Declaration
public readonly record struct NetworkServerInfo( string Address, string Name, string Game, string Map, uint Players, uint Bots, uint MaxPlayers, uint PingMilliseconds)
REFERENCE

Members

Constructors
#public NetworkServerInfo(string Address, string Name, string Game, string Map, uint Players, uint Bots, uint MaxPlayers, uint PingMilliseconds)
A server found on the local network: its address, names, map, player counts and ping (Network.GetServers).
Address
Address to pass to Network.Connect ("192.168.1.20:7777").
Name
The server_name rule.
Game
The game_name rule.
Map
The loaded map.
Players
Connected players (bots included).
Bots
Server bots among the players.
MaxPlayers
The max_players rule.
PingMilliseconds
Round trip of the discovery answer.
constructor
Properties
#public string Address { get; init; }
Address to pass to Network.Connect ("192.168.1.20:7777").
property
#public string Name { get; init; }
The server_name rule.
property
#public string Game { get; init; }
The game_name rule.
property
#public string Map { get; init; }
The loaded map.
property
#public uint Players { get; init; }
Connected players (bots included).
property
#public uint Bots { get; init; }
Server bots among the players.
property
#public uint MaxPlayers { get; init; }
The max_players rule.
property
#public uint PingMilliseconds { get; init; }
Round trip of the discovery answer.
property
Signatures
public NetworkServerInfo(string Address, string Name, string Game, string Map, uint Players, uint Bots, uint MaxPlayers, uint PingMilliseconds)
public string Address { get; init; }
public string Name { get; init; }
public string Game { get; init; }
public string Map { get; init; }
public uint Players { get; init; }
public uint Bots { get; init; }
public uint MaxPlayers { get; init; }
public uint PingMilliseconds { get; init; }

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.