Lua enum

When you start scripting with lua you may notice that its functional range is some how reduced to a very tiny set of essential basics. One thing you might be missing is an enum type. But we could implement something very close. Before we start I want to recommend the online demo at lua.org. Just paste your lua code into the lua-shell window and press “run” to see if it works. A very simple enum function could be something like Continue reading Lua enum