LunaLua icon indicating copy to clipboard operation
LunaLua copied to clipboard

Make luabind classes compatible with type.lua

Open Supermario1313 opened this issue 3 years ago • 0 comments

type(...) is now compatible with luabind classes like Level, Path or Scenery.

Example using the following Lua code in map.lua:

function onDraw()
    Text.print(type(Level.get()[1]), 66, 130)
end

Before: 2022-02-27_02_58_07

After: 2022-02-27_04_15_33

Supermario1313 avatar Feb 28 '22 16:02 Supermario1313