SaveValue Class - PULSAR-Modders/pulsar-mod-loader GitHub Wiki

SaveValues are a simple way to handle mod configuration settings. All data is saved to the folder 'ModConfigs' inside the game directory in .json format, and are updated every time the stored value changes.

It is recommended a single static value is used for interacting with the value. In Most cases the value can be accessed and set via the main object, although occasionally you may need to access the SaveValue.Value field. The type is specified inside the '<>' brackets, and the key and default value are set in the constructor.

static SaveValue<string> MySaveValue = new SaveValue<string>("MyKey", "DefaultValue");
⚠️ **GitHub.com Fallback** ⚠️