summaryrefslogtreecommitdiff
path: root/auto_yards/nodes/(-1897,10,-921).lua
blob: 98955faf31a8b5ee23e77b9f49dd69758be38440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local function tprint (tbl, indent)
  if not indent then indent = 0 end
  for k, v in pairs(tbl) do
    formatting = string.rep("--", indent) .."[".. k .. "]: "
    if type(v) == "table" then
      print(formatting)
      tprint(v, indent+1)
    elseif type(v) == 'boolean' then
      print(formatting .. tostring(v))      
    else
      print(formatting .. v)
    end
  end
end

if event.punch then tprint(S) end