diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 21:55:41 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-31 21:55:41 +0100 |
commit | 1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98 (patch) | |
tree | 49e75c0cd3f3da715697106ab20e7d7f51bb9a61 /src/model | |
parent | 31c131289c6b37a08ea66e988eaded1cd9c9c72c (diff) | |
download | rpgedit-1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98.tar rpgedit-1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98.zip |
Switch from characters to numerical tile IDs
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/data/MapData.ts | 14 |
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; |