diff options
Diffstat (limited to 'src/model/MapData.ts')
-rw-r--r-- | src/model/MapData.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/model/MapData.ts b/src/model/MapData.ts new file mode 100644 index 0000000..54894c0 --- /dev/null +++ b/src/model/MapData.ts @@ -0,0 +1,20 @@ +'use strict'; + + +interface Input { + tiles: {[key: string]: {file: string}}; + collision: string[]; + layers: string[][][]; +} + +export default class MapData { + tiles: {[key: string]: {file: string}}; + public collision: string[]; + public layers: string[][][]; + + constructor(data: Input) { + this.tiles = data.tiles; + this.collision = data.collision; + this.layers = data.layers; + } +} |