# mikhailma649/half-sword-physics-mod-menu-trainer architecture

> Architecture diagram of the GitHub repository mikhailma649/half-sword-physics-mod-menu-trainer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mikhailma649/half-sword-physics-mod-menu-trainer
- Repository: https://github.com/mikhailma649/half-sword-physics-mod-menu-trainer

## Overview

This is a small Windows C++ runtime: its main loop polls Insert and End hotkeys, toggling menu state or stopping the process. The header defines runtime configuration, but the sampled loop does not use it. README claims about radar, profiles, rendering, and other trainer features are not reflected in the available source, so they are not represented as implemented subsystems.

Main entry points: [`src/half_sword_physics_mod_menu_core.cpp`](https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/src/half_sword_physics_mod_menu_core.cpp) (Hotkey polling)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Runtime loop"]
node_hotkeys["Hotkey polling"]
node_windows["Windows key state"]
node_config["Runtime configuration"]

node_main -->|"calls"| node_hotkeys
node_hotkeys -->|"reads key state"| node_windows
node_user -.->|"presses keys"| node_windows

click node_main "https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/src/half_sword_physics_mod_menu_core.cpp"
click node_hotkeys "https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/src/half_sword_physics_mod_menu_core.cpp"
click node_config "https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/include/half_sword_physics_mod_menu_runtime.hpp"

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_user toneBlue
class node_main,node_hotkeys,node_config toneTeal
class node_windows toneIndigo
```

## Components

### Other components

- **User**
- [Runtime loop](https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/src/half_sword_physics_mod_menu_core.cpp): `src/half_sword_physics_mod_menu_core.cpp`
- [Hotkey polling](https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/src/half_sword_physics_mod_menu_core.cpp): `src/half_sword_physics_mod_menu_core.cpp`
- **Windows key state**
- [Runtime configuration](https://github.com/MikhailMa649/half-sword-physics-mod-menu-trainer/blob/main/include/half_sword_physics_mod_menu_runtime.hpp): `include/half_sword_physics_mod_menu_runtime.hpp`

## Connections

- Runtime loop → Hotkey polling: calls (evidence: `src/half_sword_physics_mod_menu_core.cpp`)
- Hotkey polling → Windows key state: reads key state (evidence: `src/half_sword_physics_mod_menu_core.cpp`)
- User → Windows key state: presses keys
