From a5f288ca3f4621ad60ed270a2e95ef8acc6c90d2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 27 Sep 2014 16:25:26 +0200 Subject: Add Lua scripting context --- resources/script/test.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 resources/script/test.lua (limited to 'resources/script') diff --git a/resources/script/test.lua b/resources/script/test.lua new file mode 100644 index 0000000..f78cf13 --- /dev/null +++ b/resources/script/test.lua @@ -0,0 +1,14 @@ +function print_table(foo, bar) + for k, v in pairs(foo) do + print(bar .. k, v) + + if type(v) == 'table' and bar .. k ~= '_G' then + print_table(v, bar .. k .. '.') + end + end +end + +print_table(_G, '') + +print(getmetatable('').__index) +print(string) -- cgit v1.2.3