import { Uint64LE } from 'int64-buffer' ; import { InPacketBase } from 'packets/in/packet' ; class export class InLoginPacket extends InPacketBase { public nexonUsername : string ; public gameUsername : string ; public unk00 : number ; public password : string ; public hddHwid : Buffer ; public netCafeId : string ; public unk01 : number ; public userSn : Uint64LE ; public unk02 : string ; public unk03 : number ; public isLeague : number ; public unk04 : number ; public unk05 : string ; public unk06 : string ; public unk07 : string ; /**
     * parses the packet's data
     */ protected parse ( ) { super . parse ( ) ; this . nexonUsername = this . readString ( ) ; this . gameUsername = this . readString ( ) ; this . unk00 = this . readUInt8 ( ) ; this . password = this . readLongString ( ) ; this . hddHwid = this . readArray ( 16 ) ; this . netCafeId = this . readUInt32 ( true ) . toString ( ) ; this . unk01 = this . readUInt32 ( ) ; this . userSn = this . readUInt64 ( ) ; this . unk02 = this . readLongString ( ) ; this . unk03 = this . readUInt8 ( ) ; this . isLeague = this . readUInt8 ( ) ; this . unk04 = this . readUInt8 ( ) ; this . unk05 = this . readString ( ) ; this . unk06 = this . readString ( ) ; this . unk07 = this . readString ( ) ; } }