commonMain.mahjongutils.entry.coder.ResultEncoder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mahjong-utils-entry Show documentation
Show all versions of mahjong-utils-entry Show documentation
Provider a union entry for Mahjong Utils (for Japanese Riichi Mahjong)
package mahjongutils.entry.coder
import kotlin.reflect.KType
import mahjongutils.entry.Result
internal interface ResultEncoder {
fun encodeData(result: DATA, dataType: KType): RAW_RESULT
fun encodeResult(result: Result, dataType: KType): RAW_RESULT
}