summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/data/MapData.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/model/data/MapData.ts b/src/model/data/MapData.ts
index 0f14f50..0c44d94 100644
--- a/src/model/data/MapData.ts
+++ b/src/model/data/MapData.ts
@@ -1,21 +1,21 @@
import {mapFromObject} from '../../util';
interface Input {
- readonly tiles: {[key: string]: string};
- readonly collision: string[];
- readonly layers: string[][][];
+ readonly tiles: string[];
+ readonly collision: boolean[][];
+ readonly layers: number[][][];
}
export default class MapData {
- public readonly tiles: Map<string, string>;
- public readonly collision: string[];
- public readonly layers: string[][][];
+ public readonly tiles: string[];
+ public readonly collision: boolean[][];
+ public readonly layers: number[][][];
public readonly width: number;
public readonly height: number;
constructor(data: Input) {
- this.tiles = mapFromObject(data.tiles);
+ this.tiles = data.tiles;
this.collision = data.collision;
this.layers = data.layers;