@firestone-hs/replay-parser
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.9.
19 lines (18 loc) • 960 B
TypeScript
import { Map } from 'immutable';
import { Action } from '../../models/action/action';
import { Entity } from '../../models/game/entity';
import { HistoryItem } from '../../models/history/history-item';
import { TagChangeHistoryItem } from '../../models/history/tag-change-history-item';
import { ActionParserConfig } from '../../models/models';
import { AllCardsService } from '../all-cards.service';
import { Parser } from './parser';
export declare class AttachingEnchantmentParser implements Parser {
private readonly allCards;
private readonly config;
constructor(allCards: AllCardsService, config: ActionParserConfig);
applies(item: HistoryItem): boolean;
parse(item: TagChangeHistoryItem, currentTurn: number, entitiesBeforeAction: Map<number, Entity>, history: readonly HistoryItem[]): Action[];
reduce(actions: readonly Action[]): readonly Action[];
private shouldMergeActions;
private mergeActions;
}