C# Класс BeardedManStudios.Network.HostInfo

This is the main class for holding host information for the server browser, master server, and so forth
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
HostInfo ( ) : System

Default constructor

Ping ( ) : void

Set the ping to current time

SetPing ( int pingTime ) : void

Sets the value of the PingTime

Описание методов

HostInfo() публичный Метод

Default constructor
public HostInfo ( ) : System
Результат System

Ping() публичный Метод

Set the ping to current time
public Ping ( ) : void
Результат void

SetPing() публичный Метод

Sets the value of the PingTime
public SetPing ( int pingTime ) : void
pingTime int The ping time in milliseconds
Результат void

Описание свойств

comment публичное свойство

Extra string for loading screen texts and what not
public string comment
Результат string

connectedPlayers публичное свойство

Player count of all connected players
public int connectedPlayers
Результат int

connectionType публичное свойство

The type of connection that the server is running
public string connectionType
Результат string

gameType публичное свойство

The type of game that this server is running
public string gameType
Результат string

ipAddress публичное свойство

Ip address of the HostInfo
public string ipAddress
Результат string

lastPing публичное свойство

Last ping sent
public DateTime,System lastPing
Результат System.DateTime

maxPlayers публичное свойство

Maximum allowed players
public int maxPlayers
Результат int

name публичное свойство

The name that the server owner designated for this server
public string name
Результат string

natPort публичное свойство

This is the port that is to be used for nat hole punching
public ushort natPort
Результат ushort

password публичное свойство

The password that is used for the server
public string password
Результат string

port публичное свойство

Port being used
public ushort port
Результат ushort

sceneName публичное свойство

The name of the scene that the server is currently on
public string sceneName
Результат string