@firestone-hs/replay-parser
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.9.
15 lines (14 loc) • 984 B
TypeScript
import { GameTag } from '@firestone-hs/reference-data';
import { Map } from 'immutable';
import { Action } from '../../models/action/action';
import { Entity } from '../../models/game/entity';
import { PlayerEntity } from '../../models/game/player-entity';
import { EntityTag } from '../../models/parser/entity-tag';
export declare class ActionHelper {
static getOwner(entities: Map<number, Entity>, entityId: number): PlayerEntity;
static getCardId(entities: Map<number, Entity>, entityId: number, allEntitiesSoFar: Map<number, Entity>): string;
static combineActions<T extends Action>(actions: readonly Action[], shouldMerge: (a: Action, b: Action) => boolean, combiner: (a: T, b: T) => T, shouldSwap?: (a: Action, b: Action) => boolean): readonly Action[];
static getTag(tags: readonly EntityTag[], name: GameTag): number;
static mergeIntoFirstAction<T extends Action>(first: T, second: Action, newElements: T): T;
private static doCombine;
}