# vaxaxas/skjh architecture

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

- Interactive diagram: https://gitdiagram.com/vaxaxas/skjh
- Repository: https://github.com/vaxaxas/skjh

## Overview

SKJH is a Windows C++ framework for inspecting and modifying Unity IL2CPP game state, with external-process and injected-DLL modes. The runtime entry starts a menu orchestrator; documented subsystems cover IL2CPP binding, memory access, entity/game features, telemetry pausing, and overlay rendering. The sampled ESP implementation reads game state and projects entities for display. Some branches are included from README capabilities, but their internal call paths are not fully evidenced in the excerpts, so those links are omitted.

Main entry points: [`src/context.cpp`](https://github.com/vaxaxas/skjh/blob/main/src/context.cpp) (IL2CPP context), [`src/menu.cpp`](https://github.com/vaxaxas/skjh/blob/main/src/menu.cpp) (Lifecycle orchestrator), [`src/esp.cpp`](https://github.com/vaxaxas/skjh/blob/main/src/esp.cpp) (ESP overlay), [`src/entities.h`](https://github.com/vaxaxas/skjh/blob/main/src/entities.h) (Entity wrappers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and binding"]
  node_entry["Runtime entry<br/>[dllmain.cpp]"]
  node_orchestrator["Lifecycle orchestrator<br/>[menu.cpp]"]
  node_context["IL2CPP context<br/>[context.cpp]"]
  node_logger["Runtime logging<br/>[logging.h]"]
end

subgraph group_game["Game state and features"]
  node_entities["Entity wrappers<br/>[entities.h]"]
  node_features["Feature monitoring<br/>[features.cpp]"]
  node_evasion["Telemetry pausing<br/>[evasion.cpp]"]
end

subgraph group_visual["Overlay and controls"]
  node_esp["ESP overlay<br/>[esp.cpp]"]
  node_projection["Screen projection"]
  node_gui["Interactive menu<br/>[gui.cpp]"]
  node_window["Window and GDI<br/>[window_utils.cpp]"]
end

subgraph group_foundation["Memory and data"]
  node_memory["Process memory<br/>[memory.h]"]
  node_offsets["IL2CPP offsets<br/>[offsets.h]"]
  node_sdk["SDK layouts<br/>[sdk_types.h]"]
end

node_user(("Operator"))
node_game_process["Unity game"]

node_user -->|"starts"| node_entry
node_entry -->|"launches"| node_orchestrator
node_orchestrator -->|"binds runtime"| node_context
node_orchestrator -.->|"starts monitoring"| node_features
node_orchestrator -.->|"starts pausing"| node_evasion
node_orchestrator -.->|"starts menu"| node_gui
node_context -->|"uses process access"| node_memory
node_context -->|"uses RVAs"| node_offsets
node_context -->|"binds game"| node_game_process
node_entities -->|"reads and writes"| node_memory
node_entities -->|"calls component API"| node_context
node_entities -->|"uses field offsets"| node_offsets
node_features -.->|"uses wrappers"| node_entities
node_features -.->|"reads feature state"| node_context
node_evasion -->|"uses game bindings"| node_context
node_evasion -->|"accesses process"| node_memory
node_esp -->|"reads player and camera"| node_context
node_esp -->|"reads entity data"| node_memory
node_esp -->|"projects positions"| node_projection
node_esp -->|"finds and tracks window"| node_window
node_gui -->|"uses window helpers"| node_window
node_gui -.->|"controls overlay"| node_esp
node_gui -.->|"exposes entity features"| node_entities
node_sdk -->|"validates layouts"| node_offsets

click node_entry "https://github.com/vaxaxas/skjh/blob/main/dllmain.cpp"
click node_orchestrator "https://github.com/vaxaxas/skjh/blob/main/src/menu.cpp"
click node_context "https://github.com/vaxaxas/skjh/blob/main/src/context.cpp"
click node_memory "https://github.com/vaxaxas/skjh/blob/main/src/memory.h"
click node_offsets "https://github.com/vaxaxas/skjh/blob/main/src/offsets.h"
click node_sdk "https://github.com/vaxaxas/skjh/blob/main/src/sdk_types.h"
click node_entities "https://github.com/vaxaxas/skjh/blob/main/src/entities.h"
click node_features "https://github.com/vaxaxas/skjh/blob/main/src/features.cpp"
click node_evasion "https://github.com/vaxaxas/skjh/blob/main/src/evasion.cpp"
click node_esp "https://github.com/vaxaxas/skjh/blob/main/src/esp.cpp"
click node_projection "https://github.com/vaxaxas/skjh/blob/main/src/math_projection.cpp"
click node_gui "https://github.com/vaxaxas/skjh/blob/main/src/gui.cpp"
click node_window "https://github.com/vaxaxas/skjh/blob/main/src/window_utils.cpp"
click node_logger "https://github.com/vaxaxas/skjh/blob/main/src/logging.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_entry,node_orchestrator,node_context,node_logger toneBlue
class node_entities,node_features,node_evasion toneAmber
class node_esp,node_projection,node_gui,node_window toneMint
class node_memory,node_offsets,node_sdk toneRose
class node_user,node_game_process toneIndigo
```

## Components

### Runtime and binding

- [Runtime entry](https://github.com/vaxaxas/skjh/blob/main/dllmain.cpp): `dllmain.cpp`
- [Lifecycle orchestrator](https://github.com/vaxaxas/skjh/blob/main/src/menu.cpp): `src/menu.cpp`
- [IL2CPP context](https://github.com/vaxaxas/skjh/blob/main/src/context.cpp): `src/context.cpp`
- [Runtime logging](https://github.com/vaxaxas/skjh/blob/main/src/logging.h): `src/logging.h`

### Game state and features

- [Entity wrappers](https://github.com/vaxaxas/skjh/blob/main/src/entities.h): `src/entities.h`
- [Feature monitoring](https://github.com/vaxaxas/skjh/blob/main/src/features.cpp): `src/features.cpp`
- [Telemetry pausing](https://github.com/vaxaxas/skjh/blob/main/src/evasion.cpp): `src/evasion.cpp`

### Overlay and controls

- [ESP overlay](https://github.com/vaxaxas/skjh/blob/main/src/esp.cpp): `src/esp.cpp`
- [Screen projection](https://github.com/vaxaxas/skjh/blob/main/src/math_projection.cpp): `src/math_projection.cpp`
- [Interactive menu](https://github.com/vaxaxas/skjh/blob/main/src/gui.cpp): `src/gui.cpp`
- [Window and GDI](https://github.com/vaxaxas/skjh/blob/main/src/window_utils.cpp): `src/window_utils.cpp`

### Memory and data

- [Process memory](https://github.com/vaxaxas/skjh/blob/main/src/memory.h): `src/memory.h`
- [IL2CPP offsets](https://github.com/vaxaxas/skjh/blob/main/src/offsets.h): `src/offsets.h`
- [SDK layouts](https://github.com/vaxaxas/skjh/blob/main/src/sdk_types.h): `src/sdk_types.h`

### Other components

- **Operator**
- **Unity game**

## Connections

- Operator → Runtime entry: starts (evidence: `README.md`)
- Runtime entry → Lifecycle orchestrator: launches (evidence: `dllmain.cpp`)
- Lifecycle orchestrator → IL2CPP context: binds runtime (evidence: `README.md`)
- Lifecycle orchestrator → Feature monitoring: starts monitoring
- Lifecycle orchestrator → Telemetry pausing: starts pausing
- Lifecycle orchestrator → Interactive menu: starts menu
- IL2CPP context → Process memory: uses process access (evidence: `src/context.cpp`)
- IL2CPP context → IL2CPP offsets: uses RVAs (evidence: `src/context.cpp`)
- IL2CPP context → Unity game: binds game (evidence: `README.md`)
- Entity wrappers → Process memory: reads and writes (evidence: `src/entities.h`)
- Entity wrappers → IL2CPP context: calls component API (evidence: `src/entities.h`)
- Entity wrappers → IL2CPP offsets: uses field offsets (evidence: `src/entities.h`)
- Feature monitoring → Entity wrappers: uses wrappers (evidence: `src/features.cpp`)
- Feature monitoring → IL2CPP context: reads feature state
- Telemetry pausing → IL2CPP context: uses game bindings (evidence: `src/evasion.cpp`)
- Telemetry pausing → Process memory: accesses process (evidence: `src/evasion.cpp`)
- ESP overlay → IL2CPP context: reads player and camera (evidence: `src/esp.cpp`)
- ESP overlay → Process memory: reads entity data (evidence: `src/esp.cpp`)
- ESP overlay → Screen projection: projects positions (evidence: `src/esp.cpp`)
- ESP overlay → Window and GDI: finds and tracks window (evidence: `src/esp.cpp`)
- Interactive menu → Window and GDI: uses window helpers (evidence: `src/gui.cpp`)
- Interactive menu → ESP overlay: controls overlay
- Interactive menu → Entity wrappers: exposes entity features (evidence: `src/gui.cpp`)
- SDK layouts → IL2CPP offsets: validates layouts (evidence: `src/sdk_types.h`)
