aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util/Locraw.kt
blob: 9778bc755222b9016d7e4eddb5c9d2bd5dec6121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package moe.nea.firmament.util

import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient

@Serializable
data class Locraw(val server: String, val gametype: String? = null, val mode: String? = null, val map: String? = null) {
    @Transient
    val skyblockLocation = if (gametype == "SKYBLOCK") mode?.let(SkyBlockIsland::forMode) else null
}