cleaned trading parsers

This commit is contained in:
Dank074 2021-06-11 23:41:44 -05:00
parent d0754d22c4
commit 00c571ea86
9 changed files with 59 additions and 59 deletions

View File

@ -9,14 +9,14 @@ export class TradingAcceptEvent extends MessageEvent implements IMessageEvent
super(callBack, TradingAcceptParser); 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 public getParser(): TradingAcceptParser

View File

@ -9,9 +9,9 @@ export class TradingCloseEvent extends MessageEvent implements IMessageEvent
super(callBack, TradingCloseParser); super(callBack, TradingCloseParser);
} }
public get _Str_4963(): number public get userID(): number
{ {
return this.getParser()._Str_4963; return this.getParser().userID;
} }
public getParser(): TradingCloseParser public getParser(): TradingCloseParser

View File

@ -10,44 +10,44 @@ export class TradingListItemEvent extends MessageEvent implements IMessageEvent
super(callBack, TradingListItemParser); 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 public getParser(): TradingListItemParser

View File

@ -9,24 +9,24 @@ export class TradingOpenEvent extends MessageEvent implements IMessageEvent
super(callBack, TradingOpenParser); 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 public getParser(): TradingOpenParser

View File

@ -24,12 +24,12 @@ export class TradingAcceptParser implements IMessageParser
return true; return true;
} }
public get _Str_4963(): number public get userID(): number
{ {
return this._userID; return this._userID;
} }
public get _Str_15794(): boolean public get userAccepts(): boolean
{ {
return this._userAccepts; return this._userAccepts;
} }

View File

@ -3,7 +3,7 @@ import { IMessageParser } from '../../../../../../core/communication/messages/IM
export class TradingCloseParser implements IMessageParser export class TradingCloseParser implements IMessageParser
{ {
public static _Str_16410: number = 1; public static ERROR_WHILE_COMMIT: number = 1;
private _userId: number; private _userId: number;
private _reason: number; private _reason: number;
@ -23,7 +23,7 @@ export class TradingCloseParser implements IMessageParser
return true; return true;
} }
public get _Str_4963(): number public get userID(): number
{ {
return this._userId; return this._userId;
} }

View File

@ -64,42 +64,42 @@ export class TradingListItemParser implements IMessageParser
return true; return true;
} }
public get _Str_15162(): number public get firstUserID(): number
{ {
return this._firstUserID; return this._firstUserID;
} }
public get _Str_17841(): ItemDataStructure[] public get firstUserItemArray(): ItemDataStructure[]
{ {
return this._firstUserItemArray; return this._firstUserItemArray;
} }
public get _Str_14946(): number public get firstUserNumItems(): number
{ {
return this._firstUserNumItems; return this._firstUserNumItems;
} }
public get _Str_15709(): number public get firstUserNumCredits(): number
{ {
return this._firstUserNumCredits; return this._firstUserNumCredits;
} }
public get _Str_18215(): number public get secondUserID(): number
{ {
return this._secondUserID; return this._secondUserID;
} }
public get _Str_17465(): ItemDataStructure[] public get secondUserItemArray(): ItemDataStructure[]
{ {
return this._secondUserItemArray; return this._secondUserItemArray;
} }
public get _Str_13801(): number public get secondUserNumItems(): number
{ {
return this._secondUserNumItems; return this._secondUserNumItems;
} }
public get _Str_9138(): number public get secondUserNumCredits(): number
{ {
return this._secondUserNumCredits; return this._secondUserNumCredits;
} }

View File

@ -3,11 +3,11 @@ import { IMessageParser } from '../../../../../../core/communication/messages/IM
export class TradingOpenFailedParser implements IMessageParser export class TradingOpenFailedParser implements IMessageParser
{ {
public static _Str_18150: number = 7; public static REASON_YOU_ARE_ALREADY_TRADING: number = 7;
public static _Str_18383: number = 8; public static REASON_OTHER_USER_ALREADY_TRADING: number = 8;
private _reason: number; private _reason: number;
private _Str_10068: string; private _otherUserName: string;
public flush(): boolean public flush(): boolean
{ {
@ -19,7 +19,7 @@ export class TradingOpenFailedParser implements IMessageParser
if(!wrapper) return false; if(!wrapper) return false;
this._reason = wrapper.readInt(); this._reason = wrapper.readInt();
this._Str_10068 = wrapper.readString(); this._otherUserName = wrapper.readString();
return true; return true;
} }
@ -29,8 +29,8 @@ export class TradingOpenFailedParser implements IMessageParser
return this._reason; return this._reason;
} }
public get _Str_17035(): string public get otherUserName(): string
{ {
return this._Str_10068; return this._otherUserName;
} }
} }

View File

@ -30,22 +30,22 @@ export class TradingOpenParser implements IMessageParser
return true; return true;
} }
public get _Str_4963(): number public get userID(): number
{ {
return this._userId; return this._userId;
} }
public get _Str_16764(): boolean public get userCanTrade(): boolean
{ {
return this._userCanTrade; return this._userCanTrade;
} }
public get _Str_17613(): number public get otherUserID(): number
{ {
return this._otherUserId; return this._otherUserId;
} }
public get _Str_13374(): boolean public get otherUserCanTrade(): boolean
{ {
return this._otherUserCanTrade; return this._otherUserCanTrade;
} }