I'm a Software Engineer professionally, and I have a background in Python so I'm familiar with scripting languages like Lua, but I'm completely at a loss as to how Lua States work. From my limited understanding of Lua, everything is a table--Ok, that's fine, I guess you could consider a class a table of bindings and functions, I buy that.
So then it follows that a Lua state is essentially just a table? Can I think of these as instances, in an Object-Oriented sense? Also, I'm having trouble performing any introspection on Lua states. For example, the InGameTopOptionsMenu references Controls (a table I think?). But printing the key value pairs of the table gives me nothing meaningful (I think nothing at all, to be honest). It seems like Lua states are basically contexts, but I can't for the life of my tell how these variables are injected (like Controls, UI, Events).
Any info would be helpful in this regard--It seems like there's a bit of a lack of info on the Lua side of things at the moment.
So then it follows that a Lua state is essentially just a table? Can I think of these as instances, in an Object-Oriented sense? Also, I'm having trouble performing any introspection on Lua states. For example, the InGameTopOptionsMenu references Controls (a table I think?). But printing the key value pairs of the table gives me nothing meaningful (I think nothing at all, to be honest). It seems like Lua states are basically contexts, but I can't for the life of my tell how these variables are injected (like Controls, UI, Events).
Any info would be helpful in this regard--It seems like there's a bit of a lack of info on the Lua side of things at the moment.