mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Merge branch 'oobjectt-trade-no-such-item'
This commit is contained in:
commit
11dbae0435
File diff suppressed because one or more lines are too long
@ -191,6 +191,7 @@ export class IncomingHeader
|
|||||||
public static TRADE_OPEN_FAILED = 217;
|
public static TRADE_OPEN_FAILED = 217;
|
||||||
public static TRADE_OTHER_NOT_ALLOWED = 1254;
|
public static TRADE_OTHER_NOT_ALLOWED = 1254;
|
||||||
public static TRADE_YOU_NOT_ALLOWED = 3058;
|
public static TRADE_YOU_NOT_ALLOWED = 3058;
|
||||||
|
public static TRADE_NO_SUCH_ITEM = 2873;
|
||||||
public static UNIT = 374;
|
public static UNIT = 374;
|
||||||
public static UNIT_CHANGE_NAME = 2182;
|
public static UNIT_CHANGE_NAME = 2182;
|
||||||
public static UNIT_CHAT = 1446;
|
public static UNIT_CHAT = 1446;
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../../events';
|
||||||
|
import { TradingNoSuchItemParser } from '../../../parser';
|
||||||
|
|
||||||
|
export class TradingNoSuchItemEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, TradingNoSuchItemParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): TradingNoSuchItemParser
|
||||||
|
{
|
||||||
|
return this.parser as TradingNoSuchItemParser;
|
||||||
|
}
|
||||||
|
}
|
@ -3,6 +3,7 @@ export * from './TradingCloseEvent';
|
|||||||
export * from './TradingCompletedEvent';
|
export * from './TradingCompletedEvent';
|
||||||
export * from './TradingConfirmationEvent';
|
export * from './TradingConfirmationEvent';
|
||||||
export * from './TradingListItemEvent';
|
export * from './TradingListItemEvent';
|
||||||
|
export * from './TradingNoSuchItemEvent';
|
||||||
export * from './TradingNotOpenEvent';
|
export * from './TradingNotOpenEvent';
|
||||||
export * from './TradingOpenEvent';
|
export * from './TradingOpenEvent';
|
||||||
export * from './TradingOpenFailedEvent';
|
export * from './TradingOpenFailedEvent';
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class TradingNoSuchItemParser implements IMessageParser
|
||||||
|
{
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
@ -4,6 +4,7 @@ export * from './TradingCloseParser';
|
|||||||
export * from './TradingCompletedParser';
|
export * from './TradingCompletedParser';
|
||||||
export * from './TradingConfirmationParser';
|
export * from './TradingConfirmationParser';
|
||||||
export * from './TradingListItemParser';
|
export * from './TradingListItemParser';
|
||||||
|
export * from './TradingNoSuchItemParser';
|
||||||
export * from './TradingNotOpenParser';
|
export * from './TradingNotOpenParser';
|
||||||
export * from './TradingOpenFailedParser';
|
export * from './TradingOpenFailedParser';
|
||||||
export * from './TradingOpenParser';
|
export * from './TradingOpenParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user