effectsToFile

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

Write the given EffectGroup to the destination file.

Parameters

<P>

the position type

effectFile

Destination file

effects

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