Skip to content

Commit 771a651

Browse files
Fixed GUI model classes missing sessionId and bootId
1 parent 65fb866 commit 771a651

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/model/BotInfo.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ data class BotInfo(
1717
val initialPosition: InitialPosition? = null,
1818
val host: String, // bot directory name, when running locally
1919
val port: Int = -1,
20-
val sessionId: String = "",
21-
val bootId: Long? = null,
22-
20+
val sessionId: String? = null,
21+
val bootId: Long? = null
2322
) : Comparable<BotInfo> {
2423

2524
val botAddress: BotAddress

gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/model/BotState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import kotlinx.serialization.Serializable
55
@Serializable
66
data class BotState(
77
val id: Int,
8+
val sessionId: String,
9+
val bootId: Long? = null,
810
val energy: Double,
911
val x: Double,
1012
val y: Double,

gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/model/Participant.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import kotlinx.serialization.Serializable
55
@Serializable
66
data class Participant(
77
val id: Int,
8+
val sessionId: String,
9+
val bootId: Long? = null,
810
val name: String,
911
val version: String,
1012
val authors: List<String>,
1113
val description: String? = null,
1214
val homepage: String? = null,
1315
val countryCodes: List<String>,
14-
val gameTypes: Set<String>? = HashSet(),
16+
val gameTypes: Set<String> = HashSet(),
1517
val platform: String? = null,
1618
val programmingLang: String? = null,
1719
val initialPosition: InitialPosition? = null

0 commit comments

Comments
 (0)