mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
cleaned trading parsers
This commit is contained in:
parent
d0754d22c4
commit
00c571ea86
@ -9,14 +9,14 @@ export class TradingAcceptEvent extends MessageEvent implements IMessageEvent
|
||||
super(callBack, TradingAcceptParser);
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this.getParser()._Str_4963;
|
||||
return this.getParser().userID;
|
||||
}
|
||||
|
||||
public get _Str_15794(): boolean
|
||||
public get userAccepts(): boolean
|
||||
{
|
||||
return this.getParser()._Str_15794;
|
||||
return this.getParser().userAccepts;
|
||||
}
|
||||
|
||||
public getParser(): TradingAcceptParser
|
||||
|
@ -9,9 +9,9 @@ export class TradingCloseEvent extends MessageEvent implements IMessageEvent
|
||||
super(callBack, TradingCloseParser);
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this.getParser()._Str_4963;
|
||||
return this.getParser().userID;
|
||||
}
|
||||
|
||||
public getParser(): TradingCloseParser
|
||||
|
@ -10,44 +10,44 @@ export class TradingListItemEvent extends MessageEvent implements IMessageEvent
|
||||
super(callBack, TradingListItemParser);
|
||||
}
|
||||
|
||||
public get _Str_15162(): number
|
||||
public get firstUserID(): number
|
||||
{
|
||||
return this.getParser()._Str_15162;
|
||||
return this.getParser().firstUserID;
|
||||
}
|
||||
|
||||
public get _Str_18215(): number
|
||||
public get secondUserID(): number
|
||||
{
|
||||
return this.getParser()._Str_18215;
|
||||
return this.getParser().secondUserID;
|
||||
}
|
||||
|
||||
public get _Str_14946(): number
|
||||
public get firstUserNumItems(): number
|
||||
{
|
||||
return this.getParser()._Str_14946;
|
||||
return this.getParser().firstUserNumItems;
|
||||
}
|
||||
|
||||
public get _Str_13801(): number
|
||||
public get secondUserNumItems(): number
|
||||
{
|
||||
return this.getParser()._Str_13801;
|
||||
return this.getParser().secondUserNumItems;
|
||||
}
|
||||
|
||||
public get _Str_15709(): number
|
||||
public get firstUserNumCredits(): number
|
||||
{
|
||||
return this.getParser()._Str_15709;
|
||||
return this.getParser().firstUserNumCredits;
|
||||
}
|
||||
|
||||
public get _Str_9138(): number
|
||||
public get secondUserNumCredits(): number
|
||||
{
|
||||
return this.getParser()._Str_9138;
|
||||
return this.getParser().secondUserNumCredits;
|
||||
}
|
||||
|
||||
public get _Str_17841(): ItemDataStructure[]
|
||||
public get firstUserItemArray(): ItemDataStructure[]
|
||||
{
|
||||
return this.getParser()._Str_17841;
|
||||
return this.getParser().firstUserItemArray;
|
||||
}
|
||||
|
||||
public get _Str_17465(): ItemDataStructure[]
|
||||
public get secondUserItemArray(): ItemDataStructure[]
|
||||
{
|
||||
return this.getParser()._Str_17465;
|
||||
return this.getParser().secondUserItemArray;
|
||||
}
|
||||
|
||||
public getParser(): TradingListItemParser
|
||||
|
@ -9,24 +9,24 @@ export class TradingOpenEvent extends MessageEvent implements IMessageEvent
|
||||
super(callBack, TradingOpenParser);
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this.getParser()._Str_4963;
|
||||
return this.getParser().userID;
|
||||
}
|
||||
|
||||
public get _Str_16764(): boolean
|
||||
public get userCanTrade(): boolean
|
||||
{
|
||||
return this.getParser()._Str_16764;
|
||||
return this.getParser().userCanTrade;
|
||||
}
|
||||
|
||||
public get _Str_17613(): number
|
||||
public get otherUserID(): number
|
||||
{
|
||||
return this.getParser()._Str_17613;
|
||||
return this.getParser().otherUserID;
|
||||
}
|
||||
|
||||
public get _Str_13374(): boolean
|
||||
public get otherUserCanTrade(): boolean
|
||||
{
|
||||
return this.getParser()._Str_13374;
|
||||
return this.getParser().otherUserCanTrade;
|
||||
}
|
||||
|
||||
public getParser(): TradingOpenParser
|
||||
|
@ -24,12 +24,12 @@ export class TradingAcceptParser implements IMessageParser
|
||||
return true;
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this._userID;
|
||||
}
|
||||
|
||||
public get _Str_15794(): boolean
|
||||
public get userAccepts(): boolean
|
||||
{
|
||||
return this._userAccepts;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import { IMessageParser } from '../../../../../../core/communication/messages/IM
|
||||
|
||||
export class TradingCloseParser implements IMessageParser
|
||||
{
|
||||
public static _Str_16410: number = 1;
|
||||
public static ERROR_WHILE_COMMIT: number = 1;
|
||||
|
||||
private _userId: number;
|
||||
private _reason: number;
|
||||
@ -23,7 +23,7 @@ export class TradingCloseParser implements IMessageParser
|
||||
return true;
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this._userId;
|
||||
}
|
||||
|
@ -64,42 +64,42 @@ export class TradingListItemParser implements IMessageParser
|
||||
return true;
|
||||
}
|
||||
|
||||
public get _Str_15162(): number
|
||||
public get firstUserID(): number
|
||||
{
|
||||
return this._firstUserID;
|
||||
}
|
||||
|
||||
public get _Str_17841(): ItemDataStructure[]
|
||||
public get firstUserItemArray(): ItemDataStructure[]
|
||||
{
|
||||
return this._firstUserItemArray;
|
||||
}
|
||||
|
||||
public get _Str_14946(): number
|
||||
public get firstUserNumItems(): number
|
||||
{
|
||||
return this._firstUserNumItems;
|
||||
}
|
||||
|
||||
public get _Str_15709(): number
|
||||
public get firstUserNumCredits(): number
|
||||
{
|
||||
return this._firstUserNumCredits;
|
||||
}
|
||||
|
||||
public get _Str_18215(): number
|
||||
public get secondUserID(): number
|
||||
{
|
||||
return this._secondUserID;
|
||||
}
|
||||
|
||||
public get _Str_17465(): ItemDataStructure[]
|
||||
public get secondUserItemArray(): ItemDataStructure[]
|
||||
{
|
||||
return this._secondUserItemArray;
|
||||
}
|
||||
|
||||
public get _Str_13801(): number
|
||||
public get secondUserNumItems(): number
|
||||
{
|
||||
return this._secondUserNumItems;
|
||||
}
|
||||
|
||||
public get _Str_9138(): number
|
||||
public get secondUserNumCredits(): number
|
||||
{
|
||||
return this._secondUserNumCredits;
|
||||
}
|
||||
|
@ -3,11 +3,11 @@ import { IMessageParser } from '../../../../../../core/communication/messages/IM
|
||||
|
||||
export class TradingOpenFailedParser implements IMessageParser
|
||||
{
|
||||
public static _Str_18150: number = 7;
|
||||
public static _Str_18383: number = 8;
|
||||
public static REASON_YOU_ARE_ALREADY_TRADING: number = 7;
|
||||
public static REASON_OTHER_USER_ALREADY_TRADING: number = 8;
|
||||
|
||||
private _reason: number;
|
||||
private _Str_10068: string;
|
||||
private _otherUserName: string;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
@ -19,7 +19,7 @@ export class TradingOpenFailedParser implements IMessageParser
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._reason = wrapper.readInt();
|
||||
this._Str_10068 = wrapper.readString();
|
||||
this._otherUserName = wrapper.readString();
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -29,8 +29,8 @@ export class TradingOpenFailedParser implements IMessageParser
|
||||
return this._reason;
|
||||
}
|
||||
|
||||
public get _Str_17035(): string
|
||||
public get otherUserName(): string
|
||||
{
|
||||
return this._Str_10068;
|
||||
return this._otherUserName;
|
||||
}
|
||||
}
|
@ -30,22 +30,22 @@ export class TradingOpenParser implements IMessageParser
|
||||
return true;
|
||||
}
|
||||
|
||||
public get _Str_4963(): number
|
||||
public get userID(): number
|
||||
{
|
||||
return this._userId;
|
||||
}
|
||||
|
||||
public get _Str_16764(): boolean
|
||||
public get userCanTrade(): boolean
|
||||
{
|
||||
return this._userCanTrade;
|
||||
}
|
||||
|
||||
public get _Str_17613(): number
|
||||
public get otherUserID(): number
|
||||
{
|
||||
return this._otherUserId;
|
||||
}
|
||||
|
||||
public get _Str_13374(): boolean
|
||||
public get otherUserCanTrade(): boolean
|
||||
{
|
||||
return this._otherUserCanTrade;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user