summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
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;
+}