step-sequence-generator
Version:
A step sequence generator for figure skating programs
18 lines (17 loc) • 879 B
TypeScript
import { ExtendedMovementCharacter } from '../../enums/movement-enums';
import { VectorKey } from '../../enums/vector-key.enum';
type ChanceRatioMap<T> = Map<T, number>;
type WeightMapType<T> = Map<T, number>;
/**
keys: типы поворотов + DIFFICULT;
values: процент от общего числа движений в массиве;
* */
type MovementChanceRatioMapType = ChanceRatioMap<ExtendedMovementCharacter>;
/**
keys: типы поворотов + DIFFICULT;
values: вес движения в массиве
* */
type MovementWeightMapType = WeightMapType<ExtendedMovementCharacter>;
type VectorKeyChanceRatioMapType = ChanceRatioMap<VectorKey>;
type VectorKeyWeightMapType = WeightMapType<VectorKey>;
export { ChanceRatioMap, WeightMapType, MovementChanceRatioMapType, MovementWeightMapType, VectorKeyChanceRatioMapType, VectorKeyWeightMapType, };