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