summaryrefslogtreecommitdiffstats
path: root/src/model/Direction.coffee
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-06 08:52:06 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-06 08:52:06 +0100
commit4fa246628bd9e5911ae998162f0bdc724cc739d2 (patch)
treefade72830f5bc1cc8c76e5a78a8ae65290c37a8b /src/model/Direction.coffee
parent6ed351b495db9e9b86066a419df43dd959ae94d3 (diff)
downloadrpgedit-4fa246628bd9e5911ae998162f0bdc724cc739d2.tar
rpgedit-4fa246628bd9e5911ae998162f0bdc724cc739d2.zip
Add entity rendering
Diffstat (limited to 'src/model/Direction.coffee')
-rw-r--r--src/model/Direction.coffee13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/model/Direction.coffee b/src/model/Direction.coffee
new file mode 100644
index 0000000..5c49c80
--- /dev/null
+++ b/src/model/Direction.coffee
@@ -0,0 +1,13 @@
+'use strict'
+
+
+Direction =
+ NORTH: 0
+ EAST: 1
+ SOUTH: 2
+ WEST: 3
+
+ reverse: (d) -> (d+2)%4
+
+
+module.exports = Direction