# holee619/opendbo-core-df architecture

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

- Interactive diagram: https://gitdiagram.com/holee619/opendbo-core-df
- Repository: https://github.com/holee619/opendbo-core-df

## Overview

OpenDBO is a Dragon Ball Online preservation project spanning a game client, a multi-process server cluster, shared game definitions, and content tools. The principal player workflow runs from client input through avatar control and presentation, with gameplay requests handled by the server and persistent queries delegated to QueryServer. The README documents the server/database boundary; sampled code shows avatar world picking, world-path management, client storage, and player-skill query dispatch. Many runtime modules are unsampled, so their internal connections are not inferred.

Main entry points: [`DboClient/Client/Main/AvatarController.cpp`](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Client/Main/AvatarController.cpp) (Avatar control), [`DboServer/Server/GameServer/SkillManagerPc.cpp`](https://github.com/holee619/opendbo-core-df/blob/master/DboServer/Server/GameServer/SkillManagerPc.cpp) (Player skills), [`DboServer/Server/QueryServer`](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server/QueryServer) (QueryServer), [`DboServer/Server`](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server) (Other server services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Game client"]
  node_avatar["Avatar control"]
  node_gui["Game interface"]
  node_worldtools["World content tools"]
end

subgraph group_engine["Client engine"]
  node_world["World presentation"]
  node_pathdata["World path data"]
  node_simulation["Simulation core"]
  node_storage["Client preferences"]
  node_network["Client networking<br/>[NtlClientNet.cpp]"]
end

subgraph group_server["Server runtime"]
  node_gameserver["GameServer channels"]
  node_skills["Player skills<br/>[SkillManagerPc.cpp]"]
  node_skillcore["Skill management<br/>[SkillManager.cpp]"]
  node_query["QueryServer"]
  node_database[("Game databases")]
  node_servercluster["Other server services"]
end

subgraph group_shared["Shared game data"]
  node_sharedpackets["Shared packets<br/>[NtlPacketGQ.h]"]
  node_sharedtypes["Shared game types<br/>[NtlSharedType.h]"]
end

node_player(("Player"))

node_player -->|"controls"| node_avatar
node_avatar -->|"picks world"| node_world
node_avatar -->|"dispatches events"| node_simulation
node_world -->|"accesses world"| node_pathdata
node_skills -->|"sends skill query"| node_query
node_skills -->|"builds query packet"| node_sharedpackets
node_gameserver -.->|"handles gameplay"| node_skills
node_query -->|"queries persistence"| node_database
node_sharedpackets -.->|"defines protocol data"| node_sharedtypes
node_worldtools -->|"exports path data"| node_pathdata
node_servercluster -->|"includes channels"| node_gameserver
node_servercluster -->|"includes query service"| node_query

click node_avatar "https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Client/Main/AvatarController.cpp"
click node_gui "https://github.com/holee619/opendbo-core-df/tree/master/DboClient/Client/Gui"
click node_world "https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlPresentation/NtlPLSceneManager.h"
click node_pathdata "https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlPresentation/NtlWorldPathEngineManager.cpp"
click node_simulation "https://github.com/holee619/opendbo-core-df/tree/master/DboClient/Lib/NtlSimulation"
click node_storage "https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlSimulation/NtlStorageManager.cpp"
click node_network "https://github.com/holee619/opendbo-core-df/blob/master/NtlLib/Client/NtlClientNet/NtlClientNet.cpp"
click node_sharedpackets "https://github.com/holee619/opendbo-core-df/blob/master/DboShared/NtlShared2/NtlPacketGQ.h"
click node_sharedtypes "https://github.com/holee619/opendbo-core-df/blob/master/DboShared/NtlShared2/NtlSharedType.h"
click node_gameserver "https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server/GameServer"
click node_skills "https://github.com/holee619/opendbo-core-df/blob/master/DboServer/Server/GameServer/SkillManagerPc.cpp"
click node_skillcore "https://github.com/holee619/opendbo-core-df/blob/master/DboServer/Server/GameServer/SkillManager.cpp"
click node_query "https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server/QueryServer"
click node_database "https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Database"
click node_servercluster "https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server"
click node_worldtools "https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Tool/NtlWE/PathEngineExportDlg.cpp"

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_avatar,node_gui,node_worldtools toneBlue
class node_world,node_pathdata,node_simulation,node_storage,node_network toneAmber
class node_gameserver,node_skills,node_skillcore,node_query,node_database,node_servercluster toneMint
class node_sharedpackets,node_sharedtypes toneRose
class node_player toneIndigo
```

## Components

### Game client

- [Avatar control](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Client/Main/AvatarController.cpp): `DboClient/Client/Main/AvatarController.cpp`
- [Game interface](https://github.com/holee619/opendbo-core-df/tree/master/DboClient/Client/Gui): `DboClient/Client/Gui`
- [World content tools](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Tool/NtlWE/PathEngineExportDlg.cpp): `DboClient/Tool/NtlWE/PathEngineExportDlg.cpp`

### Client engine

- [World presentation](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlPresentation/NtlPLSceneManager.h): `DboClient/Lib/NtlPresentation/NtlPLSceneManager.h`
- [World path data](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlPresentation/NtlWorldPathEngineManager.cpp): `DboClient/Lib/NtlPresentation/NtlWorldPathEngineManager.cpp`
- [Simulation core](https://github.com/holee619/opendbo-core-df/tree/master/DboClient/Lib/NtlSimulation): `DboClient/Lib/NtlSimulation`
- [Client preferences](https://github.com/holee619/opendbo-core-df/blob/master/DboClient/Lib/NtlSimulation/NtlStorageManager.cpp): `DboClient/Lib/NtlSimulation/NtlStorageManager.cpp`
- [Client networking](https://github.com/holee619/opendbo-core-df/blob/master/NtlLib/Client/NtlClientNet/NtlClientNet.cpp): `NtlLib/Client/NtlClientNet/NtlClientNet.cpp`

### Server runtime

- [GameServer channels](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server/GameServer): `DboServer/Server/GameServer`
- [Player skills](https://github.com/holee619/opendbo-core-df/blob/master/DboServer/Server/GameServer/SkillManagerPc.cpp): `DboServer/Server/GameServer/SkillManagerPc.cpp`
- [Skill management](https://github.com/holee619/opendbo-core-df/blob/master/DboServer/Server/GameServer/SkillManager.cpp): `DboServer/Server/GameServer/SkillManager.cpp`
- [QueryServer](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server/QueryServer): `DboServer/Server/QueryServer`
- [Game databases](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Database): `DboServer/Database`
- [Other server services](https://github.com/holee619/opendbo-core-df/tree/master/DboServer/Server): `DboServer/Server`

### Shared game data

- [Shared packets](https://github.com/holee619/opendbo-core-df/blob/master/DboShared/NtlShared2/NtlPacketGQ.h): `DboShared/NtlShared2/NtlPacketGQ.h`
- [Shared game types](https://github.com/holee619/opendbo-core-df/blob/master/DboShared/NtlShared2/NtlSharedType.h): `DboShared/NtlShared2/NtlSharedType.h`

### Other components

- **Player**

## Connections

- Player → Avatar control: controls (evidence: `DboClient/Client/Main/AvatarController.cpp`)
- Avatar control → World presentation: picks world (evidence: `DboClient/Client/Main/AvatarController.cpp`)
- Avatar control → Simulation core: dispatches events (evidence: `DboClient/Client/Main/AvatarController.cpp`)
- World presentation → World path data: accesses world (evidence: `DboClient/Lib/NtlPresentation/NtlWorldPathEngineManager.cpp`)
- Player skills → QueryServer: sends skill query (evidence: `DboServer/Server/GameServer/SkillManagerPc.cpp`)
- Player skills → Shared packets: builds query packet (evidence: `DboServer/Server/GameServer/SkillManagerPc.cpp`)
- GameServer channels → Player skills: handles gameplay (evidence: `DboServer/Server/GameServer/SkillManagerPc.cpp`)
- QueryServer → Game databases: queries persistence (evidence: `README.md`)
- Shared packets → Shared game types: defines protocol data
- World content tools → World path data: exports path data (evidence: `DboClient/Tool/NtlWE/PathEngineExportDlg.cpp`)
- Other server services → GameServer channels: includes channels (evidence: `README.md`)
- Other server services → QueryServer: includes query service (evidence: `README.md`)
