# bestprojectteam/bestclient architecture

> Architecture diagram of the GitHub repository bestprojectteam/bestclient, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bestprojectteam/bestclient
- Repository: https://github.com/bestprojectteam/bestclient

## Overview

BestClient is a customized DDNet game client, extending the normal multiplayer experience with comfort, customization, social, editing, and competitive features. The main user workflow is to launch the client, configure or use its in-game tools, connect to a compatible DDNet server, and play; the game client processes network snapshots and presents the game. The README also documents distinct branches for clans, collaborative map editing, voice, practice, HUD customization, and mini-games. Several feature implementation files are not in the supplied tree, so their nodes use supported enclosing directories and their undocumented runtime wiring is omitted.

Main entry points: [`src/game/client/components/menus.h`](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/menus.h) (Menus), [`src/game/client/gameclient.cpp`](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/gameclient.cpp) (Game Client), [`src/game/server/gamecontroller.cpp`](https://github.com/bestprojectteam/bestclient/blob/main/src/game/server/gamecontroller.cpp) (Gameplay Systems), [`src/game/client/components/bestclient/menus_bestclient.cpp`](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/bestclient/menus_bestclient.cpp) (BestClient Settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client Runtime"]
  node_menus["Menus<br/>[menus.h]"]
  node_gameclient["Game Client<br/>[gameclient.cpp]"]
  node_gameplay["Gameplay Systems<br/>[gamecontroller.cpp]"]
end

subgraph group_custom["Customization"]
  node_settings["BestClient Settings"]
  node_visuals["Visual Features"]
  node_input["Input Tools<br/>[inputs.h]"]
  node_hud["HUD Editor"]
end

subgraph group_social["Social Features"]
  node_clans["Clans"]
  node_voice["Voice Chat"]
end

subgraph group_creation["Creation and Games"]
  node_multimapping["Multimapping"]
  node_assets["Assets Editor"]
  node_practice["Fast Practice"]
  node_minigames["Mini-games"]
end

node_player(("Player"))
node_ddnet(("DDNet Server"))

node_player -.->|"opens"| node_menus
node_menus -.->|"configures"| node_gameclient
node_gameclient -.->|"connects to"| node_ddnet
node_ddnet -.->|"sends snapshots"| node_gameclient
node_gameclient -.->|"plays against"| node_gameplay
node_menus -.->|"opens tabs"| node_settings
node_gameclient -.->|"renders"| node_visuals
node_gameclient -.->|"uses inputs"| node_input
node_menus -.->|"opens editor"| node_hud
node_menus -.->|"opens clans"| node_clans
node_gameclient -.->|"uses voice"| node_voice
node_menus -.->|"opens editor"| node_multimapping
node_menus -.->|"opens editor"| node_assets
node_menus -.->|"toggles practice"| node_practice
node_menus -.->|"opens games"| node_minigames

click node_menus "https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/menus.h"
click node_gameclient "https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/gameclient.cpp"
click node_gameplay "https://github.com/bestprojectteam/bestclient/blob/main/src/game/server/gamecontroller.cpp"
click node_settings "https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/bestclient/menus_bestclient.cpp"
click node_visuals "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_input "https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/bestclient/inputs.h"
click node_hud "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_clans "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_voice "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_multimapping "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_assets "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_practice "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"
click node_minigames "https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_menus,node_gameclient,node_gameplay toneBlue
class node_settings,node_visuals,node_input,node_hud toneAmber
class node_clans,node_voice,node_ddnet toneMint
class node_multimapping,node_assets,node_practice,node_minigames toneRose
class node_player toneIndigo
```

## Components

### Client Runtime

- [Menus](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/menus.h): `src/game/client/components/menus.h`
- [Game Client](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/gameclient.cpp): `src/game/client/gameclient.cpp`
- [Gameplay Systems](https://github.com/bestprojectteam/bestclient/blob/main/src/game/server/gamecontroller.cpp): `src/game/server/gamecontroller.cpp`

### Customization

- [BestClient Settings](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/bestclient/menus_bestclient.cpp): `src/game/client/components/bestclient/menus_bestclient.cpp`
- [Visual Features](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`
- [Input Tools](https://github.com/bestprojectteam/bestclient/blob/main/src/game/client/components/bestclient/inputs.h): `src/game/client/components/bestclient/inputs.h`
- [HUD Editor](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`

### Social Features

- [Clans](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`
- [Voice Chat](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`

### Creation and Games

- [Multimapping](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`
- [Assets Editor](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`
- [Fast Practice](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`
- [Mini-games](https://github.com/bestprojectteam/bestclient/tree/main/src/game/client/components/bestclient): `src/game/client/components/bestclient`

### Other components

- **Player**
- **DDNet Server**

## Connections

- Player → Menus: opens
- Menus → Game Client: configures (evidence: `src/game/client/gameclient.cpp`)
- Game Client → DDNet Server: connects to
- DDNet Server → Game Client: sends snapshots
- Game Client → Gameplay Systems: plays against
- Menus → BestClient Settings: opens tabs
- Game Client → Visual Features: renders (evidence: `src/game/client/gameclient.cpp`)
- Game Client → Input Tools: uses inputs (evidence: `src/game/client/gameclient.cpp`)
- Menus → HUD Editor: opens editor
- Menus → Clans: opens clans
- Game Client → Voice Chat: uses voice (evidence: `src/game/client/gameclient.cpp`)
- Menus → Multimapping: opens editor
- Menus → Assets Editor: opens editor
- Menus → Fast Practice: toggles practice
- Menus → Mini-games: opens games
