save

fun save(dir: String, name: String, id: Long): Boolean


fun save(dir: Path, name: String, id: Long): Boolean

Save the replay.

Return

if the replay is saved successfully.

Parameters

dir

the dir which replay file will be stored.

name

the file name (without file extension)

id

the only id of the replay, used to find the right one when different replays have the same name.