Method | Description | |
---|---|---|
AsyncConnect ( String username, String password ) : void |
Starts connecting with username and password
|
|
AsyncFindNearbyServer ( ) : void |
Async finds new server
|
|
AsyncFindNearbyServer ( System.Boolean newServer ) : void |
Starts finding a nearby server asynchronously
|
|
Authenticate ( |
Starts authenticating the user
|
|
Connect ( |
Connects to an endpoint
|
|
Disconnect ( String message ) : void |
Disconnects client and resets connecting status
|
|
Initialize ( ) : void |
Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
|
|
Loop ( ) : void |
|
|
SetupLobby ( ) : void |
Setups lobby events
|
Method | Description | |
---|---|---|
CancelConnect ( ) : void |
Cancells any running connections
|
|
Game_Exiting ( object sender, |
On Game Exiting, stop server
|
|
NetLobby_OnDenied ( string reason ) : void |
Runs when handshake is denied
|
|
NetLobby_OnError ( string reason ) : void |
Runs when handshake error occrus
|
|
NetLobby_OnExpired ( string reason ) : void |
Runs when handshake expired
|
|
NetLobby_OnSucces ( string reason ) : void |
Runs when lobby succes
|
|
NetworkManager ( ) : System |
Constructor for this component
|
|
SetPlayerId ( String id ) : void |
When player protocol has got user info, set the id
|
|
SetStep ( AuthenticationStatus status ) : void |
Sets authentication setp
|
|
_foundAServerCallbackMethod ( object sender, |
Event handler for completion of server retrieval
|
public AsyncConnect ( String username, String password ) : void | ||
username | String | username |
password | String | password |
return | void |
public AsyncFindNearbyServer ( System.Boolean newServer ) : void | ||
newServer | System.Boolean | |
return | void |
public Authenticate ( |
||
connection | ||
username | String | |
password | String | |
return | void |
public Connect ( |
||
endPoint | ||
return | void |
public Disconnect ( String message ) : void | ||
message | String | message to disconnect with |
return | void |