mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Merge branch 'incoming-game2-user-left-game' of https://github.com/oobjectt/nitro-renderer into oobjectt-incoming-game2-user-left-game
This commit is contained in:
commit
16d95cb43f
File diff suppressed because one or more lines are too long
@ -37,6 +37,7 @@ export class IncomingHeader
|
|||||||
public static GAME_CENTER_STATUS = 2893;
|
public static GAME_CENTER_STATUS = 2893;
|
||||||
public static GAME_CENTER_IN_ARENA_QUEUE = 872;
|
public static GAME_CENTER_IN_ARENA_QUEUE = 872;
|
||||||
public static GAME_CENTER_STOP_COUNTER = 3191;
|
public static GAME_CENTER_STOP_COUNTER = 3191;
|
||||||
|
public static GAME_CENTER_USER_LEFT_GAME = 3138;
|
||||||
public static GAMESTATUSMESSAGE = 3805;
|
public static GAMESTATUSMESSAGE = 3805;
|
||||||
public static GAMEACHIEVEMENTS = 1689;
|
public static GAMEACHIEVEMENTS = 1689;
|
||||||
public static GAMEINVITE = 904;
|
public static GAMEINVITE = 904;
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../../events';
|
||||||
|
import { Game2UserLeftGameMessageParser } from '../../../parser';
|
||||||
|
|
||||||
|
export class Game2UserLeftGameMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, Game2UserLeftGameMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): Game2UserLeftGameMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as Game2UserLeftGameMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
export * from './Game2AccountGameStatusMessageEvent';
|
export * from './Game2AccountGameStatusMessageEvent';
|
||||||
export * from './Game2InArenaQueueMessageEvent';
|
export * from './Game2InArenaQueueMessageEvent';
|
||||||
export * from './Game2StopCounterMessageEvent';
|
export * from './Game2StopCounterMessageEvent';
|
||||||
|
export * from './Game2UserLeftGameMessageEvent';
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class Game2UserLeftGameMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _userId: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
this._userId = -1;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._userId = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get userId():number
|
||||||
|
{
|
||||||
|
return this._userId;
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
export * from './Game2AccountGameStatusMessageParser';
|
export * from './Game2AccountGameStatusMessageParser';
|
||||||
export * from './Game2InArenaQueueMessageParser';
|
export * from './Game2InArenaQueueMessageParser';
|
||||||
export * from './Game2StopCounterMessageParser';
|
export * from './Game2StopCounterMessageParser';
|
||||||
|
export * from './Game2UserLeftGameMessageParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user