aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/Locraw.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/Locraw.kt')
-rw-r--r--src/main/kotlin/util/Locraw.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/kotlin/util/Locraw.kt b/src/main/kotlin/util/Locraw.kt
new file mode 100644
index 0000000..9778bc7
--- /dev/null
+++ b/src/main/kotlin/util/Locraw.kt
@@ -0,0 +1,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
+}