C# Class BeardedManStudios.Forge.Examples.StartGame

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: drakelinglabs/unityarmada

Public Properties

Property Type Description
autoStartServer bool
host string
ipAddressInput InputField
masterServerIp string
networkLatencySimulationTime int
packetDropSimulationChance float
playerCount int
port int
protocolType Networking.TransportationProtocolType
proximityBasedUpdates bool
proximityDistance float
sceneName string
serverBrowserScene string
showBandwidth bool
useNatHolePunching bool

Private Properties

Property Type Description
Awake void
ConnectTimeout void
Go void
LoadScene void
RemoveSocketReference void
UpdatePlayerCount void

Public Methods

Method Description
ServerBrowser ( ) : void
Start ( ) : void
StartClient ( ) : void
StartClientLan ( ) : void
StartServer ( ) : void

This method is called when the host server button is clicked

TCPLocal ( ) : void

Private Methods

Method Description
Awake ( ) : void
ConnectTimeout ( ) : void
Go ( ) : void
LoadScene ( ) : void
RemoveSocketReference ( ) : void
UpdatePlayerCount ( NetworkingPlayer player ) : void

This method is called when a player connects or disconnects in order to update the player count on Arbiter

Method Details

ServerBrowser() public method

public ServerBrowser ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartClient() public method

public StartClient ( ) : void
return void

StartClientLan() public method

public StartClientLan ( ) : void
return void

StartServer() public method

This method is called when the host server button is clicked
public StartServer ( ) : void
return void

TCPLocal() public method

public TCPLocal ( ) : void
return void

Property Details

autoStartServer public property

public bool autoStartServer
return bool

host public property

public string host
return string

ipAddressInput public property

public InputField ipAddressInput
return InputField

masterServerIp public property

public string masterServerIp
return string

networkLatencySimulationTime public property

public int networkLatencySimulationTime
return int

packetDropSimulationChance public property

public float packetDropSimulationChance
return float

playerCount public property

public int playerCount
return int

port public property

public int port
return int

protocolType public property

public Networking.TransportationProtocolType protocolType
return Networking.TransportationProtocolType

proximityBasedUpdates public property

public bool proximityBasedUpdates
return bool

proximityDistance public property

public float proximityDistance
return float

sceneName public property

public string sceneName
return string

serverBrowserScene public property

public string serverBrowserScene
return string

showBandwidth public property

public bool showBandwidth
return bool

useNatHolePunching public property

public bool useNatHolePunching
return bool