Commit 635aafe8 authored by Jesse Bakker's avatar Jesse Bakker

Add optional reason for notification. Fixes #4

parent b378f4ff
Pipeline #29345 passed with stages
in 24 seconds
......@@ -286,9 +286,12 @@ _Notification_:
```java
class EndGameParams {
Optional<int|char> winner;
Optional<String> reason;
}
```
This message is sent when the game ends. This can be because there is a winner, because the turn limit is reached, or because a player disconnected. The reason for ending the game can be signalled through the `reason` field.
Examples:
- [Player won](examples/endGame_playerwon_notification.json)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment