C# Class OpenStory.Server.Accounts.AccountServer

Represents an in-memory account activity server.
Inheritance: OpenStory.Server.Processing.GameServerBase, IAccountService
Afficher le fichier Open project: shoftee/OpenStory

Méthodes publiques

Méthode Description
AccountServer ( IClock clock ) : System

Initializes a new instance of the AccountServer class.

TryKeepAlive ( int accountId, System.TimeSpan &lag ) : bool
TryRegisterCharacter ( int accountId, int characterId ) : bool
TryRegisterSession ( int accountId, int &sessionId ) : bool
TryUnregisterSession ( int accountId ) : bool

Method Details

AccountServer() public méthode

Initializes a new instance of the AccountServer class.
public AccountServer ( IClock clock ) : System
clock IClock
Résultat System

TryKeepAlive() public méthode

public TryKeepAlive ( int accountId, System.TimeSpan &lag ) : bool
accountId int
lag System.TimeSpan
Résultat bool

TryRegisterCharacter() public méthode

public TryRegisterCharacter ( int accountId, int characterId ) : bool
accountId int
characterId int
Résultat bool

TryRegisterSession() public méthode

public TryRegisterSession ( int accountId, int &sessionId ) : bool
accountId int
sessionId int
Résultat bool

TryUnregisterSession() public méthode

public TryUnregisterSession ( int accountId ) : bool
accountId int
Résultat bool