C# Class OpenStory.Server.Accounts.AccountServer

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

Public Methods

Method 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 method

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

TryKeepAlive() public method

public TryKeepAlive ( int accountId, System.TimeSpan &lag ) : bool
accountId int
lag System.TimeSpan
return bool

TryRegisterCharacter() public method

public TryRegisterCharacter ( int accountId, int characterId ) : bool
accountId int
characterId int
return bool

TryRegisterSession() public method

public TryRegisterSession ( int accountId, int &sessionId ) : bool
accountId int
sessionId int
return bool

TryUnregisterSession() public method

public TryUnregisterSession ( int accountId ) : bool
accountId int
return bool