colony monitor: print table keys
This commit is contained in:
parent
437b8f1a91
commit
bdb6a7f860
@ -1,6 +1,7 @@
|
||||
local function _printTable(table, tabs)
|
||||
for key, value in pairs(table) do
|
||||
if type(value) == "table" then
|
||||
print(string.rep(" ", tabs) .. key .. ":")
|
||||
_printTable(value, tabs + 1)
|
||||
else
|
||||
print(string.rep(" ", tabs) .. key .. ": " .. value)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user