Getter/Setter of global variable in Rimworld save ?

Started by aRandomKiwi, November 16, 2018, 10:44:09 AM

Previous topic - Next topic

aRandomKiwi

Hi,

Does it exist any Getter/Setter of global variable in a Rimworld save ?
Because i manage a global counter variable (integer) in a static method (so no ExposeData stuff ) but i want this variable to be persistent across reloading.

Thanks

aRandomKiwi

I have my response, by implementing a GameComponent and the "ExposeData" method.