WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

Make luabind classes compatible with type.lua #35

Open Supermario1313 opened 2 years ago

Supermario1313 commented 2 years ago

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