Dictionaryconfig = new Dictionary (); config.Add("playerName", "John"); config.Add("playerScore", 500); IModHelper.WriteConfig(config, "config.txt");
playerName=John playerScore=500
Dictionaryconfig = new Dictionary (); config.Add("graphicsResolution", new { width = 1920, height = 1080 }); config.Add("audioSettings", new { volume = 50, mute = false }); IModHelper.WriteConfig(config, "config.txt");
graphicsResolution={"width":1920,"height":1080} audioSettings={"volume":50,"mute":false}Package library: This functionality is not part of the .NET Framework, but may be part of a custom library specific to the game being modded.