import { GameState } from '../../../models/decktracker/game-state' ; import { GameEvent } from '../../../models/game-event' ; import { EventParser } from './event-parser' ; export class QuestDestroyedParser implements EventParser { applies ( gameEvent , state ) { return state && gameEvent . type === GameEvent . QUEST_DESTROYED ; } async parse ( currentState , gameEvent ) { return currentState ; } event ( ) { return GameEvent . QUEST_DESTROYED ; } }