export enum SpaceBonus { TITANIUM , STEEL , PLANT , DRAW_CARD , HEAT , OCEAN , MEGACREDITS , ANIMAL , MICROBE , POWER , DATA , SCIENCE , ENERGY_PRODUCTION } const TO_STRING_MAP = new Map ( [ [ SpaceBonus . TITANIUM , 'Titanium' ] , [ SpaceBonus . STEEL , 'Steel' ] , [ SpaceBonus . PLANT , 'Plant' ] , [ SpaceBonus . DRAW_CARD , 'Card' ] , [ SpaceBonus . HEAT , 'Heat' ] , [ SpaceBonus . OCEAN , 'Ocean' ] , [ SpaceBonus . MEGACREDITS , 'M€' ] , [ SpaceBonus . ANIMAL , 'Animal' ] , [ SpaceBonus . MICROBE , 'Microbe' ] , [ SpaceBonus . POWER , 'Power' ] , [ SpaceBonus . DATA , 'Data' ] , [ SpaceBonus . SCIENCE , 'Science' ] , [ SpaceBonus . ENERGY_PRODUCTION , 'Energy Production' ] , ] ) ; export namespace SpaceBonus { export function toString ( spaceBonus ) { return TO_STRING_MAP . get ( spaceBonus ) || `(unnamed space bonus, id ${ spaceBonus })` ; } }