C# Class BeardedManStudios.Network.HostInfo

This is the main class for holding host information for the server browser, master server, and so forth
Datei anzeigen Open project: drakelinglabs/unityarmada Class Usage Examples

Public Properties

Property Type Description
comment string
connectedPlayers int
connectionType string
gameType string
ipAddress string
lastPing System.DateTime
maxPlayers int
name string
natPort ushort
password string
port ushort
sceneName string

Public Methods

Method Description
HostInfo ( ) : System

Default constructor

Ping ( ) : void

Set the ping to current time

SetPing ( int pingTime ) : void

Sets the value of the PingTime

Method Details

HostInfo() public method

Default constructor
public HostInfo ( ) : System
return System

Ping() public method

Set the ping to current time
public Ping ( ) : void
return void

SetPing() public method

Sets the value of the PingTime
public SetPing ( int pingTime ) : void
pingTime int The ping time in milliseconds
return void

Property Details

comment public_oe property

Extra string for loading screen texts and what not
public string comment
return string

connectedPlayers public_oe property

Player count of all connected players
public int connectedPlayers
return int

connectionType public_oe property

The type of connection that the server is running
public string connectionType
return string

gameType public_oe property

The type of game that this server is running
public string gameType
return string

ipAddress public_oe property

Ip address of the HostInfo
public string ipAddress
return string

lastPing public_oe property

Last ping sent
public DateTime,System lastPing
return System.DateTime

maxPlayers public_oe property

Maximum allowed players
public int maxPlayers
return int

name public_oe property

The name that the server owner designated for this server
public string name
return string

natPort public_oe property

This is the port that is to be used for nat hole punching
public ushort natPort
return ushort

password public_oe property

The password that is used for the server
public string password
return string

port public_oe property

Port being used
public ushort port
return ushort

sceneName public_oe property

The name of the scene that the server is currently on
public string sceneName
return string