[WIP] Cacauaes començant a funcionar
This commit is contained in:
@@ -29,25 +29,6 @@ abad={}
|
||||
function abad_nop()
|
||||
end
|
||||
|
||||
-- Imprime cualquier valor, incluyendo tablas anidadas
|
||||
local function dump(value, indent)
|
||||
indent = indent or ""
|
||||
if type(value) ~= "table" then
|
||||
return tostring(value)
|
||||
end
|
||||
|
||||
local parts = {"{"}
|
||||
for k, v in pairs(value) do
|
||||
local key = (type(k) == "string") and k or "["..tostring(k).."]"
|
||||
table.insert(parts,
|
||||
string.format("%s %s = %s,",
|
||||
indent, key, dump(v, indent.." ")))
|
||||
end
|
||||
table.insert(parts, indent.."}")
|
||||
return table.concat(parts, "\n")
|
||||
end
|
||||
|
||||
|
||||
function abad_init()
|
||||
abad={ name="abad",
|
||||
x=40, y=24,
|
||||
|
||||
Reference in New Issue
Block a user