meta-meta table is functioning correctly

This commit is contained in:
Kayne Ruse
2015-03-27 21:54:41 +11:00
parent 9a5c447d0c
commit 39f03b2da8
2 changed files with 78 additions and 3 deletions
+8 -2
View File
@@ -37,7 +37,13 @@ roomAPI.Initialize(underworld, mapSaver.Load, mapSaver.Save, mapMaker.DebugGrass
doorUtility.createDoorPair("pair 1", overworld, 0, -64, underworld, 0, 0)
--testing the metatables
local meta = getmetatable(underworld)
print("", "userdata metatable: ", meta)
print("debug")
overworld["key"] = "value"
local key = overworld["key"]
print("", "result: ", key)
local key = underworld["key"]
print("", "result: ", key)
--end test
print("Finished the lua script")