mirror of
https://github.com/Smallhacker/disbrowser.git
synced 2024-06-03 03:29:29 +00:00
16 lines
391 B
Kotlin
16 lines
391 B
Kotlin
|
package com.smallhacker.disbrowser.game
|
||
|
|
||
|
import com.smallhacker.disbrowser.asm.SnesMemory
|
||
|
import com.smallhacker.disbrowser.util.JsonFile
|
||
|
|
||
|
class Game(
|
||
|
val id: String,
|
||
|
val memory: SnesMemory,
|
||
|
val gameData: GameData,
|
||
|
private val gameDataFile: JsonFile<GameData>
|
||
|
) {
|
||
|
fun saveGameData() {
|
||
|
gameData.cleanUp()
|
||
|
gameDataFile.save(gameData)
|
||
|
}
|
||
|
}
|