Forgot to add this.

This commit is contained in:
BenDol 2014-06-02 10:05:26 +12:00
parent 2df51622ba
commit adcf258551
1 changed files with 11 additions and 0 deletions

11
modules/gamelib/util.lua Normal file
View File

@ -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