From aa5b7c9d753f6f140d7f55d0089e6e19028031b7 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 14 Apr 2018 18:13:19 +0200 Subject: 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. --- asciifarm/client/keymacros.hy | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 asciifarm/client/keymacros.hy (limited to 'asciifarm/client/keymacros.hy') 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)) -- cgit