mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
Feature/gamecenter packets
This commit is contained in:
parent
bbcc363ab8
commit
17b0878b3c
File diff suppressed because one or more lines are too long
@ -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;
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
export * from './Game2ExitGameMessageComposer';
|
||||||
|
export * from './Game2GameChatMessageComposer';
|
||||||
|
export * from './Game2LoadStageReadyMessageComposer';
|
||||||
|
export * from './Game2PlayAgainMessageComposer';
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
|
export * from './Game2CheckGameDirectoryStatusMessageComposer';
|
||||||
export * from './Game2GetAccountGameStatusMessageComposer';
|
export * from './Game2GetAccountGameStatusMessageComposer';
|
||||||
|
@ -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';
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
export * from './Game2RequestFullStatusUpdateMessageComposer';
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -1,2 +1,4 @@
|
|||||||
|
export * from './Game2GetWeeklyFriendsLeaderboardComposer';
|
||||||
|
export * from './Game2GetWeeklyLeaderboardComposer';
|
||||||
export * from './GetWeeklyGameRewardComposer';
|
export * from './GetWeeklyGameRewardComposer';
|
||||||
export * from './GetWeeklyGameRewardWinnersComposer';
|
export * from './GetWeeklyGameRewardWinnersComposer';
|
||||||
|
Loading…
Reference in New Issue
Block a user