summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-10-26 21:59:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-10-26 21:59:46 +0200
commitbc6d79b088154e2fca56b9c18ee5ea0bf17875f8 (patch)
tree680f5b4ea26a874fa4f52f178681ef234688480f /src/model
parentebc56db63c054702ad910987aa666d7cfb52d5cc (diff)
downloadrpgedit-bc6d79b088154e2fca56b9c18ee5ea0bf17875f8.tar
rpgedit-bc6d79b088154e2fca56b9c18ee5ea0bf17875f8.zip
model: add mutable MapState (empty for now)
Diffstat (limited to 'src/model')
-rw-r--r--src/model/data/MapData.ts (renamed from src/model/MapData.ts)2
-rw-r--r--src/model/state/MapState.ts6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/model/MapData.ts b/src/model/data/MapData.ts
index c8db35c..0f14f50 100644
--- a/src/model/MapData.ts
+++ b/src/model/data/MapData.ts
@@ -1,4 +1,4 @@
-import {mapFromObject} from '../util';
+import {mapFromObject} from '../../util';
interface Input {
readonly tiles: {[key: string]: string};
diff --git a/src/model/state/MapState.ts b/src/model/state/MapState.ts
new file mode 100644
index 0000000..2931dfb
--- /dev/null
+++ b/src/model/state/MapState.ts
@@ -0,0 +1,6 @@
+import MapData from '../data/MapData';
+
+export default class MapState {
+ public constructor(public readonly data: MapData) {
+ }
+}