C# 클래스 BeardedManStudios.Network.HostInfo

This is the main class for holding host information for the server browser, master server, and so forth
파일 보기 프로젝트 열기: drakelinglabs/unityarmada 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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