effectsFromResources

open fun <P : Position2D<out P>?> effectsFromResources(resource: String): EffectGroup<P>

Get an EffectGroup from the specified resource file. It tries to deserialize a JSON file.

Return

Group of effects collected from the file

Parameters

<P>

the position type

resource

resource file

Throws

If the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading

com.google.gson.JsonIOException

If there was a problem reading from the Reader

com.google.gson.JsonSyntaxException

If JSON is not a valid representation for an object of type

If some other I/O error occurs