Hello,
I just have a quick question because I'm trying to parse a Tiled Editor export to a Lua file using Sol3 for C++.
The beginning of the file starts like this:
return {
version = "1.4",
luaversion = "5.1",
tiledversion = "1.4.1",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 20,…..
}
I'm still trying to figure out how to read stuff using Sol3, but I can't seem to access “return” to get the data from it. I don't know that much Lua, and doing a major brush up, but I know the basics and at first, I thought it might have been a table, but there is no ‘=’ sign (return = { }). I'm not sure what to classify this to use the proper method of finding the variables.
Hopefully, someone can clear that up for me, otherwise, I'll eventually figure it out!
Thanks!