summaryrefslogtreecommitdiffstats
path: root/resources/script/test.lua
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:12:07 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:12:07 +0100
commit0b3e29dea9863c4b5ca0c77958bbcb32a05867ca (patch)
treef96454b1c29d73ee5c083b5b2fdb988bc574542d /resources/script/test.lua
parentf05141f1f78d9e0d917b2cc07f0fb09fd7f62801 (diff)
downloadrpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.tar
rpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.zip
Some work towards scriptable events
Diffstat (limited to 'resources/script/test.lua')
-rw-r--r--resources/script/test.lua20
1 files changed, 13 insertions, 7 deletions
diff --git a/resources/script/test.lua b/resources/script/test.lua
index f78cf13..1dc1fc4 100644
--- a/resources/script/test.lua
+++ b/resources/script/test.lua
@@ -1,14 +1,20 @@
-function print_table(foo, bar)
+local 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
+ --if type(v) == 'table' and bar .. k ~= '_G' then
+ -- print_table(v, bar .. k .. '.')
+ --end
end
end
-print_table(_G, '')
+--print(getmetatable(_G))
+--setmetatable(_G, {})
+--print_table(_G, '')
-print(getmetatable('').__index)
-print(string)
+print(bar)
+print(getmetatable(bar))
+
+--print(getmetatable('').bar)
+--getmetatable('').bar = 'bar'
+--print(getmetatable('').bar)