Skip to content

Commit

Permalink
#101: The ServerHandshake now includes the GameSetup containing i…
Browse files Browse the repository at this point in the history
…nformation about the current game setup.
  • Loading branch information
flemming-n-larsen committed Aug 20, 2024
1 parent 9884949 commit 031584d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion VERSIONS.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 📦 0.24.2

#### 🚀 Improvements

- Server:
- #101: The `ServerHandshake` now includes the `GameSetup` containing information about the current game setup.

## 📦 0.24.1 - Support for local IP addresses - 13-Jul-2024

#### 🚀 Improvements
Expand Down Expand Up @@ -27,7 +34,7 @@
- Java archive (jar) files:
- The jar files containing javadoc documentation and source files was not given the correct name when they were
built and published to the repositories.

## 📦 0.23.2 - Bug fixed booting + enabling/disabling bot directories - 21-May-2024

#### 🪲 Bug Fixes
Expand Down
3 changes: 3 additions & 0 deletions schema/schemas/server-handshake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ properties:
type: string
minItems: 1
uniqueItems: true
gameSetup:
description: Current game setup, if a game has been started and is running on the server.
$ref: game-setup.yaml
required:
- sessionId
- variant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class ClientWebSocketsHandler(
variant = "Tank Royale"
version = VersionFileProvider.version
gameTypes = setup.gameTypes
gameSetup = gameSetup
}.also {
send(clientSocket, Gson().toJson(it))
}
Expand Down

0 comments on commit 031584d

Please sign in to comment.