C# Class GameMachine.Core.App

Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: gamemachine/gamemachine Class Usage Examples

Public Properties

Property Type Description
client Client
connected bool
disconnectTime float
echoTimeout double
gameTickInterval float
protocol Login.Protocol
remoteEcho RemoteEcho
running bool
showClientStats bool

Public Methods

Method Description
Login ( string gameId, string hostname, int httpPort, string username, string password, Authentication success, Authentication error ) : void
OnAppStarted ( AppStarted callback ) : void
OnConnectionTimeout ( ConnectionTimeout connectionTimeout ) : void
Run ( Login protocol, string host, int port, string username, int authtoken ) : void
StartCoreActors ( ) : void
onRunning ( object caller, string methodName ) : void

Private Methods

Method Description
ConnectLoop ( ) : void
OnApplicationQuit ( ) : void
OnEchoReceived ( ) : void
OnPlayerConnected ( ) : void
RunOnRunningCallbacks ( ) : void
SetEchoInterval ( ) : void
Start ( ) : void
UpdateNetwork ( ) : void
UpdateStats ( ) : void

Method Details

Login() public method

public Login ( string gameId, string hostname, int httpPort, string username, string password, Authentication success, Authentication error ) : void
gameId string
hostname string
httpPort int
username string
password string
success Authentication
error Authentication
return void

OnAppStarted() public method

public OnAppStarted ( AppStarted callback ) : void
callback AppStarted
return void

OnConnectionTimeout() public method

public OnConnectionTimeout ( ConnectionTimeout connectionTimeout ) : void
connectionTimeout ConnectionTimeout
return void

Run() public method

public Run ( Login protocol, string host, int port, string username, int authtoken ) : void
protocol Login
host string
port int
username string
authtoken int
return void

StartCoreActors() public method

public StartCoreActors ( ) : void
return void

onRunning() public static method

public static onRunning ( object caller, string methodName ) : void
caller object
methodName string
return void

Property Details

client public_oe property

public Client client
return Client

connected public_oe property

public bool connected
return bool

disconnectTime public_oe property

public float disconnectTime
return float

echoTimeout public_oe property

public double echoTimeout
return double

gameTickInterval public_oe static_oe property

public static float gameTickInterval
return float

protocol public_oe static_oe property

public static Login.Protocol protocol
return Login.Protocol

remoteEcho public_oe static_oe property

public static RemoteEcho remoteEcho
return RemoteEcho

running public_oe property

public bool running
return bool

showClientStats public_oe property

public bool showClientStats
return bool