__index is fired whenever Lua tries to index an object in a table.
We use that to redirect calls to the new table we made.
I’m not great at explaining it, but this guide should do a better job I believe:
__index is fired whenever Lua tries to index an object in a table.
We use that to redirect calls to the new table we made.
I’m not great at explaining it, but this guide should do a better job I believe: