summaryrefslogtreecommitdiffstats
path: root/src/app.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-06 21:39:15 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-06 21:39:15 +0100
commitb7fec57c0463e58f1ad8db126ff4879f59b057d0 (patch)
tree1fce6d1471b27a91cce16bf42f91af3d6aa9bd1e /src/app.ts
parentc64ead08a36fccc36a42b3e74362aa423cfb62ed (diff)
downloadrpgedit-b7fec57c0463e58f1ad8db126ff4879f59b057d0.tar
rpgedit-b7fec57c0463e58f1ad8db126ff4879f59b057d0.zip
Start implementing input handling
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app.ts b/src/app.ts
index d1ca3cd..e47d41f 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -9,6 +9,7 @@ _ = lodash;
import MapContext from './control/MapContext';
import MapData from './model/MapData';
+import InputHandler from './view/InputHandler';
var mapContext: MapContext;
@@ -17,8 +18,9 @@ window.onload = () => {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
- let mapDef = new MapData(JSON.parse(this.responseText));
- mapContext = new MapContext(mapDef);
+ var mapDef = new MapData(JSON.parse(this.responseText));
+ var inputHandler = new InputHandler();
+ mapContext = new MapContext(mapDef, inputHandler);
}
xhr.open('GET', 'resources/map/test.json', true);