C# Class BeardedManStudios.Network.HostInfo

This is the main class for holding host information for the server browser, master server, and so forth
Show file 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 property

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

connectedPlayers public property

Player count of all connected players
public int connectedPlayers
return int

connectionType public property

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

gameType public property

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

ipAddress public property

Ip address of the HostInfo
public string ipAddress
return string

lastPing public property

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

maxPlayers public property

Maximum allowed players
public int maxPlayers
return int

name public property

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

natPort public property

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

password public property

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

port public property

Port being used
public ushort port
return ushort

sceneName public property

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