C# Class ServerInfoManager

Inheritance: IDisposable
Afficher le fichier Open project: buronix/LLApi-Basic-Implementation Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
PlayerStatusUpdate ( String UserName, bool connectedStatus, float ServerTime ) : void

Send an Update to all Clients of the Status Connection of a Player

Order: String UserName bool ConnectedStatus float ServerTime

ServerInfoManager ( GameServer, gameServer ) : System.Collections.Generic
Start ( int workerCount ) : void
addMessageToQueue ( InputMessage, message ) : void

Private Methods

Méthode Description
DisconnectRequest ( InputMessage, message ) : void

Disconnect the User from The System

Order: String TokenID

DisconnectResponse ( int connectionID, bool success, string detailMessage ) : void

Return the DisconnectResponse to the client

Order: String success String detailMessage float serverTime

HandleMessage ( InputMessage, message ) : void
LoginRequest ( InputMessage, message ) : void

Login the User in The System

Order: String UserID

LoginResponse ( int connectionID, bool success, string token, string detailMessage ) : void

Sends a response to the Login Attempt

Order: bool Success string token string detailMessage float serverTime

MessagesConsumer ( ) : void
ServerInfoRequest ( InputMessage, message ) : void

Request for Server Information

Order: String TokenID

ServerInfoResponse ( int connectionID, bool success, string detailMessage ) : void

Return Information of the Server

Order: bool success float ServerTime string detailMessage ushort ConnetedUserCount -> UserNames Length string[] UserNames

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

PlayerStatusUpdate() public méthode

Send an Update to all Clients of the Status Connection of a Player
Order: String UserName bool ConnectedStatus float ServerTime
public PlayerStatusUpdate ( String UserName, bool connectedStatus, float ServerTime ) : void
UserName String
connectedStatus bool
ServerTime float
Résultat void

ServerInfoManager() public méthode

public ServerInfoManager ( GameServer, gameServer ) : System.Collections.Generic
gameServer GameServer,
Résultat System.Collections.Generic

Start() public méthode

public Start ( int workerCount ) : void
workerCount int
Résultat void

addMessageToQueue() public méthode

public addMessageToQueue ( InputMessage, message ) : void
message InputMessage,
Résultat void