C# Class BeardedManStudios.Network.HostInfo

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

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

Default constructor
public HostInfo ( ) : System
Résultat System

Ping() public méthode

Set the ping to current time
public Ping ( ) : void
Résultat void

SetPing() public méthode

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

Property Details

comment public_oe property

Extra string for loading screen texts and what not
public string comment
Résultat string

connectedPlayers public_oe property

Player count of all connected players
public int connectedPlayers
Résultat int

connectionType public_oe property

The type of connection that the server is running
public string connectionType
Résultat string

gameType public_oe property

The type of game that this server is running
public string gameType
Résultat string

ipAddress public_oe property

Ip address of the HostInfo
public string ipAddress
Résultat string

lastPing public_oe property

Last ping sent
public DateTime,System lastPing
Résultat System.DateTime

maxPlayers public_oe property

Maximum allowed players
public int maxPlayers
Résultat int

name public_oe property

The name that the server owner designated for this server
public string name
Résultat string

natPort public_oe property

This is the port that is to be used for nat hole punching
public ushort natPort
Résultat ushort

password public_oe property

The password that is used for the server
public string password
Résultat string

port public_oe property

Port being used
public ushort port
Résultat ushort

sceneName public_oe property

The name of the scene that the server is currently on
public string sceneName
Résultat string