import { GameEvent } from '../../../models/game-event' ; import { MercenariesBattleState } from '../../../models/mercenaries/mercenaries-battle-state' ; import { MercenariesParser } from './_mercenaries-parser' ; export class MercenariesTeamPlayerManualCloseParser implements MercenariesParser { public eventType = ( ) => 'MANUAL_TEAM_PLAYER_WIDGET_CLOSE' ; public applies = ( battleState ) => true ; public parse ( battleState , event ) { return battleState . update ( { playerClosedManually : true , } ) ; } }