---
# System prepended metadata

title: Game Networking
tags: [Jeffistance, Documentation]

---

Game Networking
===

[TOC]

## Main Model

```sequence
Server->Client: StartGameMessage(GameState)
Note over Client: Setup game
Client->Server: EveryoneReadyMessage
Note left of Server: Game loop starts
Note over Server: GameState changes
Server->Client: UpdateGameStateMessage(GameState)
Note over Client: Switch on phase
Client->Server: PlayerInteractionMessage
Note over Server: GameState updates accordingly
Note over Server: Repeat until game over
```

###### tags: `Jeffistance` `Documentation`
