summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-08 12:23:05 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-08 12:23:05 +0100
commit8ee24fdbdfb2f64899e68d44e4c4f236c8c34e86 (patch)
treeadd8e6a3d892f2d03bc8602a753b14f55879a2c8 /src/model
parent4de2a6636a4de682edc5c3bbd4d1f5e940e879a3 (diff)
downloadrpgedit-8ee24fdbdfb2f64899e68d44e4c4f236c8c34e86.tar
rpgedit-8ee24fdbdfb2f64899e68d44e4c4f236c8c34e86.zip
Add support for subtiles
Diffstat (limited to 'src/model')
-rw-r--r--src/model/MapData.ts7
-rw-r--r--src/model/TileData.ts7
2 files changed, 12 insertions, 2 deletions
diff --git a/src/model/MapData.ts b/src/model/MapData.ts
index 14f2586..351632f 100644
--- a/src/model/MapData.ts
+++ b/src/model/MapData.ts
@@ -1,14 +1,17 @@
'use strict';
+import TileData from './TileData';
+
+
interface Input {
- tiles: {[key: string]: {file: string}};
+ tiles: {[key: string]: TileData};
collision: string[];
layers: string[][][];
}
export default class MapData {
- tiles: {[key: string]: {file: string}};
+ tiles: {[key: string]: TileData};
collision: string[];
layers: string[][][];
diff --git a/src/model/TileData.ts b/src/model/TileData.ts
new file mode 100644
index 0000000..b736e5d
--- /dev/null
+++ b/src/model/TileData.ts
@@ -0,0 +1,7 @@
+'use strict';
+
+
+export default class TileData {
+ file: string;
+ subtile: number;
+}