# mar7thdev/march7thhoney architecture

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

- Interactive diagram: https://gitdiagram.com/mar7thdev/march7thhoney
- Repository: https://github.com/mar7thdev/march7thhoney

## Overview

March7thHoney is a playable game-server implementation for a real client, with account/login APIs, persistent player state, gameplay systems, and web administration. The principal flow is client requests reaching the server, operating on a player’s domain managers and game data, persisting changes, and returning protocol responses. The README documents broad gameplay coverage beyond the sampled code; those capabilities are represented at subsystem level. Edges are limited to relationships shown in excerpts, the source index, or the README; unsampled routing and feature internals are not inferred.

Main entry points: [`GameServer/Game/Player/PlayerInstance.cs`](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Player/PlayerInstance.cs) (Player runtime), [`GameServer/Game/Mission/MissionManager.cs`](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Mission/MissionManager.cs) (Missions and quests), [`GameServer/Server/Packet/HandlerManager.cs`](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Server/Packet/HandlerManager.cs) (Packet handlers), [`WebServer/Controllers/DispatchRoutes.cs`](https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Controllers/DispatchRoutes.cs) (Web and login APIs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Client and APIs"]
  node_packet_handlers["Packet handlers<br/>[HandlerManager.cs]"]
  node_web_routes["Web and login APIs<br/>[DispatchRoutes.cs]"]
  node_gateway["Gateway queries"]
end

subgraph group_gameplay["Gameplay systems"]
  node_inventory["Inventory and shop"]
  node_lineup["Team formation<br/>[LineupManager.cs]"]
  node_battle["Battle and scenes"]
  node_missions["Missions and quests<br/>[MissionManager.cs]"]
  node_rogue["Rogue modes<br/>[RogueManager.cs]"]
  node_challenge["Challenge modes"]
  node_gridfight["Currency War"]
end

subgraph group_state["Player state"]
  node_player["Player runtime<br/>[PlayerInstance.cs]"]
  node_player_data[("Player records<br/>[PlayerData.cs]")]
  node_database[("Database persistence<br/>[DatabaseHelper.cs]")]
end

subgraph group_data["Game data"]
  node_game_data[("Game resource data<br/>[GameData.cs]")]
  node_resource_manager["Resource loading<br/>[ResourceManager.cs]"]
end

subgraph group_admin["Operations"]
  node_commands["Admin commands<br/>[CommandManager.cs]"]
  node_muip["MUIP administration<br/>[MuipManager.cs]"]
end

node_client(("Game client"))
node_admin_user(("Administrator"))

node_client -.->|"sends requests"| node_packet_handlers
node_packet_handlers -.->|"serves player"| node_player
node_web_routes -->|"routes gateway"| node_gateway
node_gateway -->|"checks account"| node_player_data
node_player -->|"resolves state"| node_database
node_database -->|"stores records"| node_player_data
node_player -->|"wires manager"| node_rogue
node_player -->|"wires manager"| node_gridfight
node_missions -->|"updates and syncs"| node_player
node_missions -->|"reads team"| node_lineup
node_inventory -->|"reports item events"| node_missions
node_battle -->|"sends updates"| node_player
node_resource_manager -->|"loads resources"| node_game_data
node_admin_user -.->|"uses admin API"| node_muip
node_muip -->|"executes commands"| node_commands
node_admin_user -.->|"uses admin panel"| node_web_routes

click node_packet_handlers "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Server/Packet/HandlerManager.cs"
click node_player "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Player/PlayerInstance.cs"
click node_web_routes "https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Controllers/DispatchRoutes.cs"
click node_gateway "https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Handler/QueryGatewayHandler.cs"
click node_inventory "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Inventory/InventoryManager.cs"
click node_lineup "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Lineup/LineupManager.cs"
click node_battle "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Battle/SceneSkillManager.cs"
click node_missions "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Mission/MissionManager.cs"
click node_rogue "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Rogue/RogueManager.cs"
click node_gridfight "https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/GridFight/GridFightManager.cs"
click node_player_data "https://github.com/mar7thdev/march7thhoney/blob/main/Common/Database/Player/PlayerData.cs"
click node_database "https://github.com/mar7thdev/march7thhoney/blob/main/Common/Database/DatabaseHelper.cs"
click node_game_data "https://github.com/mar7thdev/march7thhoney/blob/main/Common/Data/GameData.cs"
click node_resource_manager "https://github.com/mar7thdev/march7thhoney/blob/main/Common/Data/ResourceManager.cs"
click node_commands "https://github.com/mar7thdev/march7thhoney/blob/main/Command/Command/CommandManager.cs"
click node_muip "https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Server/MuipManager.cs"

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_packet_handlers,node_web_routes,node_gateway,node_client toneBlue
class node_inventory,node_lineup,node_battle,node_missions,node_rogue,node_challenge,node_gridfight toneAmber
class node_player,node_player_data,node_database toneMint
class node_game_data,node_resource_manager toneRose
class node_commands,node_muip,node_admin_user toneIndigo
```

## Components

### Client and APIs

- [Packet handlers](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Server/Packet/HandlerManager.cs): `GameServer/Server/Packet/HandlerManager.cs`
- [Web and login APIs](https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Controllers/DispatchRoutes.cs): `WebServer/Controllers/DispatchRoutes.cs`
- [Gateway queries](https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Handler/QueryGatewayHandler.cs): `WebServer/Handler/QueryGatewayHandler.cs`

### Gameplay systems

- [Inventory and shop](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Inventory/InventoryManager.cs): `GameServer/Game/Inventory/InventoryManager.cs`
- [Team formation](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Lineup/LineupManager.cs): `GameServer/Game/Lineup/LineupManager.cs`
- [Battle and scenes](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Battle/SceneSkillManager.cs): `GameServer/Game/Battle/SceneSkillManager.cs`
- [Missions and quests](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Mission/MissionManager.cs): `GameServer/Game/Mission/MissionManager.cs`
- [Rogue modes](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Rogue/RogueManager.cs): `GameServer/Game/Rogue/RogueManager.cs`
- **Challenge modes**
- [Currency War](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/GridFight/GridFightManager.cs): `GameServer/Game/GridFight/GridFightManager.cs`

### Player state

- [Player runtime](https://github.com/mar7thdev/march7thhoney/blob/main/GameServer/Game/Player/PlayerInstance.cs): `GameServer/Game/Player/PlayerInstance.cs`
- [Player records](https://github.com/mar7thdev/march7thhoney/blob/main/Common/Database/Player/PlayerData.cs): `Common/Database/Player/PlayerData.cs`
- [Database persistence](https://github.com/mar7thdev/march7thhoney/blob/main/Common/Database/DatabaseHelper.cs): `Common/Database/DatabaseHelper.cs`

### Game data

- [Game resource data](https://github.com/mar7thdev/march7thhoney/blob/main/Common/Data/GameData.cs): `Common/Data/GameData.cs`
- [Resource loading](https://github.com/mar7thdev/march7thhoney/blob/main/Common/Data/ResourceManager.cs): `Common/Data/ResourceManager.cs`

### Operations

- [Admin commands](https://github.com/mar7thdev/march7thhoney/blob/main/Command/Command/CommandManager.cs): `Command/Command/CommandManager.cs`
- [MUIP administration](https://github.com/mar7thdev/march7thhoney/blob/main/WebServer/Server/MuipManager.cs): `WebServer/Server/MuipManager.cs`

### Other components

- **Game client**
- **Administrator**

## Connections

- Game client → Packet handlers: sends requests
- Packet handlers → Player runtime: serves player
- Web and login APIs → Gateway queries: routes gateway (evidence: `WebServer/Handler/QueryGatewayHandler.cs`)
- Gateway queries → Player records: checks account (evidence: `WebServer/Handler/QueryGatewayHandler.cs`)
- Player runtime → Database persistence: resolves state (evidence: `GameServer/Game/Player/PlayerInstance.cs`)
- Database persistence → Player records: stores records (evidence: `Common/Database/DatabaseHelper.cs`)
- Player runtime → Rogue modes: wires manager (evidence: `GameServer/Game/Player/PlayerInstance.cs`)
- Player runtime → Currency War: wires manager (evidence: `GameServer/Game/Player/PlayerInstance.cs`)
- Missions and quests → Player runtime: updates and syncs (evidence: `GameServer/Game/Mission/MissionManager.cs`)
- Missions and quests → Team formation: reads team (evidence: `GameServer/Game/Mission/MissionManager.cs`)
- Inventory and shop → Missions and quests: reports item events (evidence: `GameServer/Game/Inventory/InventoryManager.cs`)
- Battle and scenes → Player runtime: sends updates (evidence: `GameServer/Game/Battle/SceneSkillManager.cs`)
- Resource loading → Game resource data: loads resources (evidence: `Common/Data/ResourceManager.cs`)
- Administrator → MUIP administration: uses admin API
- MUIP administration → Admin commands: executes commands (evidence: `WebServer/Server/MuipManager.cs`)
- Administrator → Web and login APIs: uses admin panel
