Hey Guys,
I'm at that stage where I need to write my save load system. Just wondering if you guys are doing anything tricky and cool.
My current plan is to just iterate over each of my "entities" and save off every field value. For Objects within other objects I plan to just recursively step down through them recoding each objects state.
I'm not sure if I want to have one central function that understands the structure of every type, or if I should add a method to each object that returns data that can be stuffed in a save game some how.
Perhaps I could just pass the file handle around and let every object write its own data to disk.
Anybody have any experience with this?
I'm at that stage where I need to write my save load system. Just wondering if you guys are doing anything tricky and cool.
My current plan is to just iterate over each of my "entities" and save off every field value. For Objects within other objects I plan to just recursively step down through them recoding each objects state.
I'm not sure if I want to have one central function that understands the structure of every type, or if I should add a method to each object that returns data that can be stuffed in a save game some how.
Perhaps I could just pass the file handle around and let every object write its own data to disk.
Anybody have any experience with this?