import { GameState } from '../../../models/decktracker/game-state' ; import { GameEvent } from '../../../models/game-event' ; import { DeckManipulationHelper } from './deck-manipulation-helper' ; import { EventParser } from './event-parser' ; export class MinionOnBoardAttackUpdatedParser implements EventParser { constructor ( private readonly helper ) { } applies ( gameEvent , state ) { return state && gameEvent . type === GameEvent . MINION_ON_BOARD_ATTACK_UPDATED ; } async parse ( currentState , gameEvent ) { return currentState ; } event ( ) { return GameEvent . MINION_ON_BOARD_ATTACK_UPDATED ; } }