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
Source
Network.csDECLARATION
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.
Properties
#public string Address { get; init; }Address to pass to Network.Connect ("192.168.1.20:7777").
#public string Name { get; init; }The server_name rule.
#public string Game { get; init; }The game_name rule.
#public string Map { get; init; }The loaded map.
#public uint Players { get; init; }Connected players (bots included).
#public uint Bots { get; init; }Server bots among the players.
#public uint MaxPlayers { get; init; }The max_players rule.
#public uint PingMilliseconds { get; init; }Round trip of the discovery answer.
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.