effectGroupsToFile

open fun <P : Position2D<out P>?> effectGroupsToFile(effectFile: File, effects: List<EffectGroup<P>>)

Write the given list of EffectGroups to the destination file.

Parameters

<P>

the position type

effectFile

Destination file

effects

List of group of effects

Throws

com.google.gson.JsonIOException

If there was a problem writing to the writer

If the file exists but is a directory rather than a regular file, does not exist but cannot be created, cannot be opened for any other reason, or another I/O error occurs