TNet 3  3.0.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
TNet.TNAutoJoin Class Reference

Extremely simplified "join a server" functionality. Attaching this script will make it possible to automatically join a remote server when the game starts. It's best to place this script in a clean scene with a message that displays a "Connecting, please wait..." message. More...

Inheritance diagram for TNet.TNAutoJoin:

Public Member Functions

void Connect ()
 Connect to the server. More...
 

Public Attributes

string serverAddress = "127.0.0.1"
 
int serverPort = 5127
 
string firstLevel = "Example 1"
 
int channelID = 1
 
bool persistent = false
 
string disconnectLevel
 
bool allowUDP = true
 
bool connectOnStart = true
 

Static Public Attributes

static TNAutoJoin instance
 

Detailed Description

Extremely simplified "join a server" functionality. Attaching this script will make it possible to automatically join a remote server when the game starts. It's best to place this script in a clean scene with a message that displays a "Connecting, please wait..." message.

Member Function Documentation

void TNet.TNAutoJoin.Connect ( )

Connect to the server.

Member Data Documentation

bool TNet.TNAutoJoin.allowUDP = true
int TNet.TNAutoJoin.channelID = 1
bool TNet.TNAutoJoin.connectOnStart = true
string TNet.TNAutoJoin.disconnectLevel
string TNet.TNAutoJoin.firstLevel = "Example 1"
TNAutoJoin TNet.TNAutoJoin.instance
static
bool TNet.TNAutoJoin.persistent = false
string TNet.TNAutoJoin.serverAddress = "127.0.0.1"
int TNet.TNAutoJoin.serverPort = 5127

The documentation for this class was generated from the following file: