Feature/gamecenter packets

This commit is contained in:
skeletor 2022-11-03 02:11:33 +00:00
parent bbcc363ab8
commit 17b0878b3c
15 changed files with 195 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -47,6 +47,14 @@ export class OutgoingHeader
public static RESETRESOLUTIONACHIEVEMENTMESSAGE = 3144; public static RESETRESOLUTIONACHIEVEMENTMESSAGE = 3144;
public static GETWEEKLYGAMEREWARDWINNERS = 1054; public static GETWEEKLYGAMEREWARDWINNERS = 1054;
public static GAME2GETACCOUNTGAMESTATUSMESSAGE = 11; public static GAME2GETACCOUNTGAMESTATUSMESSAGE = 11;
public static GAME2CHECKGAMEDIRECTORYSTATUSMESSAGE = 3259;
public static GAME2EXITGAMEMESSAGE = 1445;
public static GAME2GAMECHATMESSAGE = 2502;
public static GAME2LOADSTAGEREADYMESSAGE = 2415;
public static GAME2PLAYAGAINMESSAGE = 3196;
public static GAME2REQUESTFULLSTATUSUPDATEMESSAGE = 1598;
public static GAME2GETWEEKLYFRIENDSLEADERBOARD = 1232;
public static GAME2GETWEEKLYLEADERBOARD = 2565;
public static GET_GIFT_WRAPPING_CONFIG = 418; public static GET_GIFT_WRAPPING_CONFIG = 418;
public static GROUP_ADMIN_ADD = 2894; public static GROUP_ADMIN_ADD = 2894;
public static GROUP_ADMIN_REMOVE = 722; public static GROUP_ADMIN_REMOVE = 722;

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2ExitGameMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2ExitGameMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2ExitGameMessageComposer>;
constructor(exitToRoomBeforeGame = true)
{
this._data = [ exitToRoomBeforeGame ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2GameChatMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2GameChatMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2GameChatMessageComposer>;
constructor(chatLine: string)
{
this._data = [ chatLine ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2LoadStageReadyMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2LoadStageReadyMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2LoadStageReadyMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2PlayAgainMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2PlayAgainMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2PlayAgainMessageComposer>;
constructor()
{
this._data = [ ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1,4 @@
export * from './Game2ExitGameMessageComposer';
export * from './Game2GameChatMessageComposer';
export * from './Game2LoadStageReadyMessageComposer';
export * from './Game2PlayAgainMessageComposer';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2CheckGameDirectoryStatusMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2CheckGameDirectoryStatusMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2CheckGameDirectoryStatusMessageComposer>;
constructor()
{
this._data = [ ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -1 +1,2 @@
export * from './Game2CheckGameDirectoryStatusMessageComposer';
export * from './Game2GetAccountGameStatusMessageComposer'; export * from './Game2GetAccountGameStatusMessageComposer';

View File

@ -1,3 +1,5 @@
export * from './arena';
export * from './directory'; export * from './directory';
export * from './ingame';
export * from './lobby'; export * from './lobby';
export * from './score'; export * from './score';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2RequestFullStatusUpdateMessageComposer implements IMessageComposer<ConstructorParameters<typeof Game2RequestFullStatusUpdateMessageComposer>>
{
private _data: ConstructorParameters<typeof Game2RequestFullStatusUpdateMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1 @@
export * from './Game2RequestFullStatusUpdateMessageComposer';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2GetWeeklyFriendsLeaderboardComposer implements IMessageComposer<ConstructorParameters<typeof Game2GetWeeklyFriendsLeaderboardComposer>>
{
private _data: ConstructorParameters<typeof Game2GetWeeklyFriendsLeaderboardComposer>;
constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:number, _arg_6:number)
{
this._data = [ k, _arg_2, _arg_3, _arg_4, _arg_5, _arg_6 ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class Game2GetWeeklyLeaderboardComposer implements IMessageComposer<ConstructorParameters<typeof Game2GetWeeklyLeaderboardComposer>>
{
private _data: ConstructorParameters<typeof Game2GetWeeklyLeaderboardComposer>;
constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:number, _arg_6:number)
{
this._data = [ k, _arg_2, _arg_3, _arg_4, _arg_5, _arg_6 ];
}
dispose(): void
{
this._data = null;
}
public getMessageArray()
{
return this._data;
}
}

View File

@ -1,2 +1,4 @@
export * from './Game2GetWeeklyFriendsLeaderboardComposer';
export * from './Game2GetWeeklyLeaderboardComposer';
export * from './GetWeeklyGameRewardComposer'; export * from './GetWeeklyGameRewardComposer';
export * from './GetWeeklyGameRewardWinnersComposer'; export * from './GetWeeklyGameRewardWinnersComposer';