C# 클래스 OpenStory.Server.Accounts.ActiveAccount

Represents an active account session.
파일 보기 프로젝트 열기: shoftee/OpenStory 1 사용 예제들

공개 메소드들

메소드 설명
ActiveAccount ( int accountId, int sessionId ) : System

Initializes a new instance of the ActiveAccount class.

KeepAlive ( Instant now ) : System.Duration
RegisterCharacter ( int characterId ) : void

Registers a character ID for this active account.

UnregisterCharacter ( ) : void

Unregisters the active character.

메소드 상세

ActiveAccount() 공개 메소드

Initializes a new instance of the ActiveAccount class.
public ActiveAccount ( int accountId, int sessionId ) : System
accountId int The ID of the active account.
sessionId int The ID of the active session.
리턴 System

KeepAlive() 공개 메소드

public KeepAlive ( Instant now ) : System.Duration
now Instant
리턴 System.Duration

RegisterCharacter() 공개 메소드

Registers a character ID for this active account.
Thrown if is already assigned a value.
public RegisterCharacter ( int characterId ) : void
characterId int The character ID for this active account.
리턴 void

UnregisterCharacter() 공개 메소드

Unregisters the active character.
Thrown if has no value assigned.
public UnregisterCharacter ( ) : void
리턴 void