summaryrefslogtreecommitdiff
path: root/asciifarm/client/keymacros.hy
diff options
context:
space:
mode:
authortroido <troido@hotmail.com>2018-04-14 18:13:19 +0200
committertroido <troido@hotmail.com>2018-04-14 18:13:19 +0200
commitaa5b7c9d753f6f140d7f55d0089e6e19028031b7 (patch)
tree6573cbda9383c9f12a625f95bd48bbd20cfd3f22 /asciifarm/client/keymacros.hy
parentb15f89a3576b98f57ff1ec083e9299c890c1f7fc (diff)
Stopped using hy for keybindings
keybindings are now a JSON format. Somehow hy errored for me, and the cleanest solution seemed not to use hy at all Thinking about it, the client was basically loading a new interpreter to optimize something that didn't need optimizing. It didn't make it more readable/writable either, and it always was a lot of hassle.
Diffstat (limited to 'asciifarm/client/keymacros.hy')
-rw-r--r--asciifarm/client/keymacros.hy25
1 files changed, 0 insertions, 25 deletions
diff --git a/asciifarm/client/keymacros.hy b/asciifarm/client/keymacros.hy
deleted file mode 100644
index 2de89e4..0000000
--- a/asciifarm/client/keymacros.hy
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-(defmacro send [data]
- `(self.client.send ~data))
-
-(defmacro inp [action]
- `(send ["input" ~action]))
-
-(defmacro move [dir]
- `(inp ["move" ~dir]))
-
-(defmacro say [text]
- `(inp ["say" ~text]))
-
-(defmacro log [text]
- `(self.client.log ~text))
-
-(defmacro chat [text]
- `(send ["chat" ~text]))
-
-(defmacro doall [actions]
- `(for [action ~actions] (action)))
-
-(defmacro log [text]
- `(self.client.log ~text))