summaryrefslogtreecommitdiffstats
path: root/src/model
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/model
parentc64ead08a36fccc36a42b3e74362aa423cfb62ed (diff)
downloadrpgedit-b7fec57c0463e58f1ad8db126ff4879f59b057d0.tar
rpgedit-b7fec57c0463e58f1ad8db126ff4879f59b057d0.zip
Start implementing input handling
Diffstat (limited to 'src/model')
-rw-r--r--src/model/Direction.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/Direction.ts b/src/model/Direction.ts
index a0cf45d..7f92588 100644
--- a/src/model/Direction.ts
+++ b/src/model/Direction.ts
@@ -8,6 +8,8 @@ export enum Direction {
West
};
-export function reverse(r: Direction): Direction { return (r+2) % 4; }
+export module Direction {
+ export function reverse(r: Direction): Direction { return (r+2) % 4; }
+}
export default Direction;