Search found 3 matches
- Thu Sep 26, 2024 12:02 pm
- Forum: Support and Development
- Topic: Trying to load classes from files with inheritance
- Replies: 5
- Views: 12059
Re: Trying to load classes from files with inheritance
After all, I was asking for an approach on solving this.
- Wed Sep 25, 2024 2:43 pm
- Forum: Support and Development
- Topic: Trying to load classes from files with inheritance
- Replies: 5
- Views: 12059
Re: Trying to load classes from files with inheritance
That was a good enough reply to get me to change the way I load entities.
The approach I use now is simply requiring a function/an object that can be called, to be returned, that itself returns a table.
With the class system, I require the base and extend it.
Thank you
The approach I use now is simply requiring a function/an object that can be called, to be returned, that itself returns a table.
With the class system, I require the base and extend it.
Thank you
- Mon Sep 23, 2024 2:36 pm
- Forum: Support and Development
- Topic: Trying to load classes from files with inheritance
- Replies: 5
- Views: 12059
Trying to load classes from files with inheritance
Apologies if I'm not doing this right, I registered my account mere minutes prior to writing this post. I use 30log for classes in my game, which represent objects in the world. In my case, all objects are loaded from their own files in a folder called "entities" and each file is provided ...