/ login-server / source / rpc / interface / GameServerOperations.ts
GameServerOperations.ts
 1  export interface L2GameServerEvent {
 2      operationId : number
 3  }
 4  
 5  export const enum L2GameServerOperations {
 6      LoginServerError,
 7      RequestServerStatus,
 8      RequestPlayerCharacters,
 9      RequestPlayerDisconnect,
10      PlayerAuthenticationOutcome,
11      AccountChangesPasswordOutcome,
12      ServerRegisteredOutcome,
13  }
14  
15  export interface L2GameLoginServerErrorEvent extends L2GameServerEvent {
16      reason: string
17      operationId: L2GameServerOperations.LoginServerError
18  }
19  
20  export interface L2GameRequestServerStatusEvent extends L2GameServerEvent {
21      operationId: L2GameServerOperations.RequestServerStatus
22  }
23  
24  export interface L2GameRequestPlayerDisconnectEvent extends L2GameServerEvent {
25      operationId: L2GameServerOperations.RequestPlayerDisconnect
26      accountName: string
27  }
28  
29  export interface L2GamePlayerAuthenticationOutcomeEvent extends L2GameServerEvent {
30      isSuccess: boolean
31      operationId: L2GameServerOperations.PlayerAuthenticationOutcome
32      accountName: string
33  }
34  
35  export interface L2GamePlayerChangesPasswordOutcomeEvent extends L2GameServerEvent {
36      isSuccess : boolean
37      message : string
38      operationId: L2GameServerOperations.AccountChangesPasswordOutcome
39      accountName: string
40  }
41  
42  export interface L2GameServerRegisteredOutcomeEvent extends L2GameServerEvent {
43      acceptedServerId: number
44      serverName: string
45      operationId: L2GameServerOperations.ServerRegisteredOutcome
46  }
47  
48  export interface L2GameRequestPlayerCharactersEvent extends L2GameServerEvent {
49      accountName: string
50      operationId: L2GameServerOperations.RequestPlayerCharacters
51  }