Hello,
I want to design my gamemode in an Object-Oriented way. To do so, I have created a resources called Classes where each file maps a Class definition.
To give you an insight of my code, here's the code of my Database.lua file which defines a set of rules and properties for SQL management.
This guide has inspired my code : https://www.lua.org/pil/16.html
In my meta.xml, I have exported the _db function.
Now, in another resource, here's how I use my db object.
However, I have an error telling me that db_file_path is not defined (equal to nil).
Therefore, I wonder how I can call an object instantiated in a particular resource FROM another resource.
Thanks for you help!