I've been working on a mod that requires me to save some extra information in the rimworld save.
I've worked out how to save simple things, like an int or bool or string. What I need is to save something more complex, for example an object that contains:
- an array of objects that have a thingDef and an int
- some other basic data types
Wondering if there's an easy way to save this? Or should I just go and save each part of the object as a simple data type and then reassemble them into the original object on load.
Look at the various scribe classes, there's stuff to save dictionaries and lists and everything