C# Класс GameMachine.Core.App

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
client Client
connected bool
disconnectTime float
echoTimeout double
gameTickInterval float
protocol Login.Protocol
remoteEcho RemoteEcho
running bool
showClientStats bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ConnectLoop ( ) : void
OnApplicationQuit ( ) : void
OnEchoReceived ( ) : void
OnPlayerConnected ( ) : void
RunOnRunningCallbacks ( ) : void
SetEchoInterval ( ) : void
Start ( ) : void
UpdateNetwork ( ) : void
UpdateStats ( ) : void

Описание методов

Login() публичный Метод

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
Результат void

OnAppStarted() публичный Метод

public OnAppStarted ( AppStarted callback ) : void
callback AppStarted
Результат void

OnConnectionTimeout() публичный Метод

public OnConnectionTimeout ( ConnectionTimeout connectionTimeout ) : void
connectionTimeout ConnectionTimeout
Результат void

Run() публичный Метод

public Run ( Login protocol, string host, int port, string username, int authtoken ) : void
protocol Login
host string
port int
username string
authtoken int
Результат void

StartCoreActors() публичный Метод

public StartCoreActors ( ) : void
Результат void

onRunning() публичный статический Метод

public static onRunning ( object caller, string methodName ) : void
caller object
methodName string
Результат void

Описание свойств

client публичное свойство

public Client client
Результат Client

connected публичное свойство

public bool connected
Результат bool

disconnectTime публичное свойство

public float disconnectTime
Результат float

echoTimeout публичное свойство

public double echoTimeout
Результат double

gameTickInterval публичное статическое свойство

public static float gameTickInterval
Результат float

protocol публичное статическое свойство

public static Login.Protocol protocol
Результат Login.Protocol

remoteEcho публичное статическое свойство

public static RemoteEcho remoteEcho
Результат RemoteEcho

running публичное свойство

public bool running
Результат bool

showClientStats публичное свойство

public bool showClientStats
Результат bool