So I was brainstorming on how to do a clansystem, and the structure seemed basic enough. You got a clan datum, setters/getters, New() to set leader/name/whatever, etc.
Now, the problems I am foreseeing have to do with saving.
- members list containing mobs (rollback bugs)
- loading/saving clans AND their properties in seperate files, as well as preferably a clan list
- clans calling New() all over again when being loaded
So what's the idea way to implement saving/loading in a clan system without the above happening?
EDIT: So far I've managed to make everything functional by saving things as text, making the clans on world/New(), and on mob Login(), search if the clan with the name his clan var (which is now text) exists, if so, set that clan as his clan.
Bit messy, but it works.