effectToFile

open fun <P : Position2D<out P>?> effectToFile(effectFile: File, effect: EffectFX<P>)

Write the given EffectFX to the destination file.

Parameters

<P>

the position type

effectFile

Destination file

effect

Effect

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