diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-01-06 17:10:19 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-01-06 17:27:45 +0100 |
commit | c64ead08a36fccc36a42b3e74362aa423cfb62ed (patch) | |
tree | 5ada42f825b4ed0431f5c0426ab226aa0e7c2512 /src/model/MapData.ts | |
parent | 4fa246628bd9e5911ae998162f0bdc724cc739d2 (diff) | |
download | rpgedit-c64ead08a36fccc36a42b3e74362aa423cfb62ed.tar rpgedit-c64ead08a36fccc36a42b3e74362aa423cfb62ed.zip |
Replace all CoffeeScript code by TypeScript
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; + } +} |