diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-27 16:25:26 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-27 16:25:26 +0200 |
commit | a5f288ca3f4621ad60ed270a2e95ef8acc6c90d2 (patch) | |
tree | f597639777fb7a96dad2765b294a53016c65b947 /resources | |
parent | 80eccfbdb29c75d8c2d3de9ed98e686a52dd9c86 (diff) | |
download | rpgedit-a5f288ca3f4621ad60ed270a2e95ef8acc6c90d2.tar rpgedit-a5f288ca3f4621ad60ed270a2e95ef8acc6c90d2.zip |
Add Lua scripting context
Diffstat (limited to 'resources')
-rw-r--r-- | resources/script/test.lua | 14 |
1 files changed, 14 insertions, 0 deletions
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) |