exportSettings

fun exportSettings(file: File, vararg settings: Settings)

Export the provided Settings to the provided File. The Settings are written as a JSONArray of JSONObjects, with each JSONObject taking the form:

{
"type": //associated SettingsType.key
"settings": //however the specific type is written to JSON
}

Parameters

file

The File to write the settings to.

settings

The vararg Settings to write.


fun exportSettings(file: File, settings: Collection<Settings>)

Export the provided Settings to the provided File. The Settings are written as a JSONArray of JSONObjects, with each JSONObject taking the form:

{
"type": //associated SettingsType.key
"settings": //however the specific type is written to JSON
}

Parameters

file

The File to write the settings to.

settings

The collection of Settings to write.