import IMMOClientMutator from "../../../mmocore/IMMOClientMutator" ; import GameClient from "../../GameClient" ; import PartySmallWindowAll from "../../incoming/game/PartySmallWindowAll" ; export default class PartySmallWindowAllMutator extends IMMOClientMutator < GameClient , PartySmallWindowAll > { update ( packet ) { this . Client . PartyList . clear ( ) ; packet . PartyMembers . forEach ( ( char ) => { this . Client . PartyList . add ( char ) ; this . fire ( "PartySmallWindow" , { member : char , action : "add-all" , } ) ; } ) ; } }