Changes

Jump to navigation Jump to search
Line 90: Line 90:  
= Saving and loading data =
 
= Saving and loading data =
 
== Global data ==
 
== Global data ==
All '''ModBehaviours''' have the '''SaveSetting''' and '''LoadSetting''' method to save data globally.
+
All '''ModBehaviours''' have '''SaveSetting''' and '''LoadSetting''' methods to save data globally.
    
Note that '''SaveSetting''' and '''LoadSetting''' are generic and will call '''ToString()''' and try to convert the saved string back to the data type you specify when loading, so this will only work for simple types, like integers, floats, doubles, bools, strings, etc.
 
Note that '''SaveSetting''' and '''LoadSetting''' are generic and will call '''ToString()''' and try to convert the saved string back to the data type you specify when loading, so this will only work for simple types, like integers, floats, doubles, bools, strings, etc.

Navigation menu