import GameClientPacket from "./GameClientPacket" ; import GameServerPacket from "../../outgoing/game/GameServerPacket" ; import L2User from "../../../entities/L2User" ; import L2ObjectCollection from "../../../entities/L2ObjectCollection" ; export default class CharSelectionInfo extends GameClientPacket { readImpl ( ) { const _id = this . readC ( ) ; const _characterPackages = new L2ObjectCollection ( ) ; const _characterPackagesSize = this . readD ( ) ; const _charMaxNumber = this . readD ( ) ; const _pad = this . readC ( ) ; for ( let i = 0 ; i < _characterPackagesSize ; i ++ ) { const char = new L2User ( ) ; char . Name = this . readS ( ) ; char . ObjectId = this . readD ( ) ; const _loginName = this . readS ( ) ; const _sessionId = this . readD ( ) ; const clanId = this . readD ( ) ; const _builderLevel = this . readD ( ) ; char . Sex = this . readD ( ) ; char . Race = this . readD ( ) ; char . BaseClassId = this . readD ( ) ; const _active = this . readD ( ) ; char . X = this . readD ( ) ; char . Y = this . readD ( ) ; char . Z = this . readD ( ) ; char . Hp = this . readF ( ) ; char . Mp = this . readF ( ) ; char . Sp = this . readD ( ) ; char . Exp = this . readQ ( ) ; char . ExpPercent = this . readF ( ) ; char . Level = this . readD ( ) ; char . Karma = this . readD ( ) ; char . PkKills = this . readD ( ) ; char . PvpKills = this . readD ( ) ; const _unknD1 = this . readD ( ) ; const _unknD2 = this . readD ( ) ; const _unknD3 = this . readD ( ) ; const _unknD4 = this . readD ( ) ; const _unknD5 = this . readD ( ) ; const _unknD6 = this . readD ( ) ; const _unknD7 = this . readD ( ) ; const _paperdoll = [ ] ; GameServerPacket . PAPERDOLL_ORDER . forEach ( ( ) => { _paperdoll . push ( this . readD ( ) ) ; } ) ; const hairStyle = this . readD ( ) ; const hairColor = this . readD ( ) ; const face = this . readD ( ) ; char . MaxHp = this . readF ( ) ; char . MaxMp = this . readF ( ) ; const _daysLeftBeforeDelete = this . readD ( ) ; char . ClassId = this . readD ( ) ; const _c3AutoSelectChar = this . readD ( ) ; const _enchantEffect = this . readC ( ) ; const augmentationId = this . readD ( ) ; const _hideTransformation = this . readD ( ) ; const _notImplementedPetId = this . readD ( ) ; const _notImplementedPetLevel = this . readD ( ) ; const _notImplementedPetMaxFood = this . readD ( ) ; const _notImplementedPetCurrentFood = this . readD ( ) ; const _notImplementedPetMaxHP = this . readF ( ) ; const _notImplementedPetMaxMP = this . readF ( ) ; char . Vitality = this . readD ( ) ; _characterPackages . add ( char ) ; } return true ; } }