C# Class GameMachine.Core.App

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: gamemachine/gamemachine Class Usage Examples

Méthodes publiques

Свойство Type Description
client Client
connected bool
disconnectTime float
echoTimeout double
gameTickInterval float
protocol Login.Protocol
remoteEcho RemoteEcho
running bool
showClientStats bool

Méthodes publiques

Méthode 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

Méthode Description
ConnectLoop ( ) : void
OnApplicationQuit ( ) : void
OnEchoReceived ( ) : void
OnPlayerConnected ( ) : void
RunOnRunningCallbacks ( ) : void
SetEchoInterval ( ) : void
Start ( ) : void
UpdateNetwork ( ) : void
UpdateStats ( ) : void

Method Details

Login() public méthode

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
Résultat void

OnAppStarted() public méthode

public OnAppStarted ( AppStarted callback ) : void
callback AppStarted
Résultat void

OnConnectionTimeout() public méthode

public OnConnectionTimeout ( ConnectionTimeout connectionTimeout ) : void
connectionTimeout ConnectionTimeout
Résultat void

Run() public méthode

public Run ( Login protocol, string host, int port, string username, int authtoken ) : void
protocol Login
host string
port int
username string
authtoken int
Résultat void

StartCoreActors() public méthode

public StartCoreActors ( ) : void
Résultat void

onRunning() public static méthode

public static onRunning ( object caller, string methodName ) : void
caller object
methodName string
Résultat void

Property Details

client public_oe property

public Client client
Résultat Client

connected public_oe property

public bool connected
Résultat bool

disconnectTime public_oe property

public float disconnectTime
Résultat float

echoTimeout public_oe property

public double echoTimeout
Résultat double

gameTickInterval public_oe static_oe property

public static float gameTickInterval
Résultat float

protocol public_oe static_oe property

public static Login.Protocol protocol
Résultat Login.Protocol

remoteEcho public_oe static_oe property

public static RemoteEcho remoteEcho
Résultat RemoteEcho

running public_oe property

public bool running
Résultat bool

showClientStats public_oe property

public bool showClientStats
Résultat bool