UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

19 lines (18 loc) 492 B
/** * two dimensional string mapper * * It's used to construct things like tilemap. */ export declare class TwoDimensionalStringMapper { /** * map string to T * * it will throw error if the string is not in the map * @param array two dimensional string array * @param converter converter functions * @returns mapped array */ static map<T>(array: string[], converter: { [key: string]: (column: number, row: number) => T; }): T[][]; }