# dwsize-pe/pristontale-eu-main architecture

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

- Interactive diagram: https://gitdiagram.com/dwsize-pe/pristontale-eu-main
- Repository: https://github.com/dwsize-pe/pristontale-eu-main

## Overview

This repository contains Priston Tale EU client and server source. The server runtime initializes services and handles account, world, network, and game systems; the client covers gameplay, skills, presentation, and rendering. Shared files define domain data and packets used across those areas. The README identifies the project as game-server source but does not describe request flows; several subsystem links below are therefore omitted where sampled source does not establish a caller.

Main entry points: [`Server/server/server.cpp`](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/server.cpp) (Server runtime), [`game/game/SkillManager.cpp`](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/SkillManager.cpp) (Skill manager), [`game/game/Game.cpp`](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/Game.cpp) (Game client), [`shared/skill.h`](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/skill.h) (Skill data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["Server runtime"]
  node_server_runtime["Server runtime<br/>[server.cpp]"]
  node_server_core["Server services<br/>[server.h]"]
  node_account["Account service<br/>[accountserver.cpp]"]
  node_network["Network service<br/>[netserver.cpp]"]
  node_world["World service<br/>[mapserver.cpp]"]
  node_items["Item service<br/>[itemserver.cpp]"]
  node_quests["Quest service<br/>[questserver.cpp]"]
  node_combat["Server combat<br/>[DamageHandler.cpp]"]
  node_server_skills["Server skills<br/>[HNSSkill.h]"]
  node_sql[("SQL connection<br/>[SQLConnection.cpp]")]
end

subgraph group_gameplay["Client gameplay"]
  node_client["Game client<br/>[Game.cpp]"]
  node_client_skills["Skill manager<br/>[SkillManager.cpp]"]
  node_character["Character gameplay<br/>[CharacterGame.cpp]"]
  node_client_network["Client networking<br/>[SocketGame.cpp]"]
end

subgraph group_presentation["Client presentation"]
  node_particles["Particle effects"]
  node_graphics["Graphics engine"]
  node_audio["Audio engine<br/>[DXAudioEngine.cpp]"]
end

subgraph group_domain["Shared domain"]
  node_shared_packets["Packet definitions<br/>[packets.h]"]
  node_shared_character["Character data<br/>[character.h]"]
  node_shared_items["Item data<br/>[item.h]"]
  node_shared_skills["Skill data<br/>[skill.h]"]
end

node_player(("Player"))

node_server_runtime -->|"initializes"| node_sql
node_server_runtime -->|"configures connections"| node_network
node_server_runtime -->|"starts login queue"| node_account
node_server_runtime -->|"uses"| node_server_core
node_client_skills -->|"starts effects"| node_particles
node_client_skills -->|"reads character state"| node_character
node_client -.->|"renders through"| node_graphics
node_client -.->|"exchanges packets"| node_client_network
node_client_skills -.->|"uses definitions"| node_shared_skills
node_server_skills -->|"uses definitions"| node_shared_skills
node_server_runtime -->|"generates drop stats"| node_items
node_player -.->|"plays"| node_client

click node_server_runtime "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/server.cpp"
click node_server_core "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/server.h"
click node_account "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/accountserver.cpp"
click node_network "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/netserver.cpp"
click node_world "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/mapserver.cpp"
click node_items "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/itemserver.cpp"
click node_quests "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/questserver.cpp"
click node_combat "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/DamageHandler.cpp"
click node_server_skills "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/HNSSkill.h"
click node_sql "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/SQLConnection.cpp"
click node_client "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/Game.cpp"
click node_client_skills "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/SkillManager.cpp"
click node_character "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/CharacterGame.cpp"
click node_client_network "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/SocketGame.cpp"
click node_particles "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/CParticleEngine.cpp"
click node_graphics "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/DXGraphicEngine.cpp"
click node_audio "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/DXAudioEngine.cpp"
click node_shared_packets "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/packets.h"
click node_shared_character "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/character.h"
click node_shared_items "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/item.h"
click node_shared_skills "https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/skill.h"

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_server_runtime,node_server_core,node_account,node_network,node_world,node_items,node_quests,node_combat,node_server_skills,node_sql toneBlue
class node_client,node_client_skills,node_character,node_client_network toneAmber
class node_particles,node_graphics,node_audio toneMint
class node_shared_packets,node_shared_character,node_shared_items,node_shared_skills toneRose
class node_player toneIndigo
```

## Components

### Server runtime

- [Server runtime](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/server.cpp): `Server/server/server.cpp`
- [Server services](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/server.h): `Server/server/server.h`
- [Account service](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/accountserver.cpp): `Server/server/accountserver.cpp`
- [Network service](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/netserver.cpp): `Server/server/netserver.cpp`
- [World service](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/mapserver.cpp): `Server/server/mapserver.cpp`
- [Item service](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/itemserver.cpp): `Server/server/itemserver.cpp`
- [Quest service](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/questserver.cpp): `Server/server/questserver.cpp`
- [Server combat](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/DamageHandler.cpp): `Server/server/DamageHandler.cpp`
- [Server skills](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/HNSSkill.h): `Server/server/HNSSkill.h`
- [SQL connection](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/Server/server/SQLConnection.cpp): `Server/server/SQLConnection.cpp`

### Client gameplay

- [Game client](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/Game.cpp): `game/game/Game.cpp`
- [Skill manager](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/SkillManager.cpp): `game/game/SkillManager.cpp`
- [Character gameplay](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/CharacterGame.cpp): `game/game/CharacterGame.cpp`
- [Client networking](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/SocketGame.cpp): `game/game/SocketGame.cpp`

### Client presentation

- [Particle effects](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/CParticleEngine.cpp): `game/game/CParticleEngine.cpp`
- [Graphics engine](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/DXGraphicEngine.cpp): `game/game/DXGraphicEngine.cpp`
- [Audio engine](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/game/game/DXAudioEngine.cpp): `game/game/DXAudioEngine.cpp`

### Shared domain

- [Packet definitions](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/packets.h): `shared/packets.h`
- [Character data](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/character.h): `shared/character.h`
- [Item data](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/item.h): `shared/item.h`
- [Skill data](https://github.com/dwsize-pe/pristontale-eu-main/blob/master/shared/skill.h): `shared/skill.h`

### Other components

- **Player**

## Connections

- Server runtime → SQL connection: initializes (evidence: `Server/server/server.cpp`)
- Server runtime → Network service: configures connections (evidence: `Server/server/server.cpp`)
- Server runtime → Account service: starts login queue (evidence: `Server/server/server.cpp`)
- Server runtime → Server services: uses (evidence: `Server/server/server.cpp`)
- Skill manager → Particle effects: starts effects (evidence: `game/game/SkillManager.cpp`)
- Skill manager → Character gameplay: reads character state (evidence: `game/game/SkillManager.cpp`)
- Game client → Graphics engine: renders through
- Game client → Client networking: exchanges packets
- Skill manager → Skill data: uses definitions
- Server skills → Skill data: uses definitions (evidence: `Server/server/HNSSkill.h`)
- Server runtime → Item service: generates drop stats (evidence: `Server/server/server.cpp`)
- Player → Game client: plays
