From adcf258551e8c21ef46c2061e8289c3adb442221 Mon Sep 17 00:00:00 2001 From: BenDol Date: Mon, 2 Jun 2014 10:05:26 +1200 Subject: [PATCH] Forgot to add this. --- modules/gamelib/util.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/gamelib/util.lua diff --git a/modules/gamelib/util.lua b/modules/gamelib/util.lua new file mode 100644 index 00000000..e3abf073 --- /dev/null +++ b/modules/gamelib/util.lua @@ -0,0 +1,11 @@ +function postostring(pos) + return pos.x .. " " .. pos.y .. " " .. pos.z +end + +function dirtostring(dir) + for k,v in pairs(Directions) do + if v == dir then + return k + end + end +end \ No newline at end of file