# easyhax/easysharp architecture

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

- Interactive diagram: https://gitdiagram.com/easyhax/easysharp
- Repository: https://github.com/easyhax/easysharp

## Overview

EasySharp is an internal CSGO modification with a skin changer as its documented product feature, plus aim assistance and visual customization. The main runtime initializes game interfaces and skin data, creates the configuration UI, and installs hooks; hook callbacks dispatch feature behavior. The separate Injector loads the DLL into the game process. The graph also preserves the menu, profile, and skin-data branches. Some paths are based on SOURCE INDEX references rather than sampled implementations, so unsampled subsystem internals and their links are not expanded.

Main entry points: [`EasySharp/Main.cs`](https://github.com/easyhax/easysharp/blob/master/EasySharp/Main.cs) (Runtime initialization), [`EasySharp/Hooks/Hooks.cs`](https://github.com/easyhax/easysharp/blob/master/EasySharp/Hooks/Hooks.cs) (Hook callbacks), [`EasySharp/Features/SkinChanger/SkinChanger.cs`](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/SkinChanger.cs) (Skin application), [`Injector/main.cs`](https://github.com/easyhax/easysharp/blob/master/Injector/main.cs) (DLL injector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and runtime"]
  node_injector["DLL injector<br/>[main.cs]"]
  node_runtime["Runtime initialization<br/>[Main.cs]"]
  node_hooks["Hook callbacks<br/>[Hooks.cs]"]
  node_hookengine["Hook engine<br/>[HookEngine.cs]"]
  node_proxyhook["Proxy hooks<br/>[ProxyHook.cs]"]
end

subgraph group_interop["Game interop"]
  node_interfaces["Game interfaces"]
  node_interfacefactory["Interface factory<br/>[Interface.cs]"]
  node_memory["Memory and interop<br/>[Memory.cs]"]
  node_offsets["Game offsets<br/>[Offset.cs]"]
  node_netvars["Netvar manager<br/>[NetvarManager.cs]"]
end

subgraph group_skins["Skin customization"]
  node_skinchanger["Skin application<br/>[SkinChanger.cs]"]
  node_sequence["Knife sequences<br/>[FixSequence.cs]"]
  node_skin_dump["Skin catalog<br/>[DumpSkins.cs]"]
  node_parser["Skin parser<br/>[Parser.cs]"]
  node_customskins["Custom skin data<br/>[CustomSkins.cs]"]
end

subgraph group_features["Gameplay and visuals"]
  node_aimbot["Aim assistance<br/>[Aimbot.cs]"]
  node_triggerbot["Trigger bot<br/>[TriggerBot.cs]"]
  node_featureutils["Player targeting<br/>[Utils.cs]"]
  node_chams["Model chams<br/>[chams.cs]"]
end

subgraph group_ui["Configuration UI"]
  node_mainform["Main menu<br/>[Form1.cs]"]
  node_skinmenus["Weapon and knife menus<br/>[weapons.cs]"]
  node_profile["Profiles<br/>[profile.cs]"]
  node_haxmenu["Aim settings<br/>[hax.cs]"]
end

node_user(("User"))
node_game["CSGO process"]
node_target["Target process"]

node_user -->|"launches"| node_injector
node_injector -->|"injects DLL"| node_target
node_injector -->|"loads entrypoint"| node_runtime
node_runtime -->|"creates interfaces"| node_interfacefactory
node_interfacefactory -.->|"resolves game APIs"| node_interfaces
node_runtime -->|"dumps skins"| node_skin_dump
node_runtime -->|"creates menu"| node_mainform
node_runtime -->|"initializes hooks"| node_hooks
node_runtime -->|"uses hook engine"| node_hookengine
node_runtime -->|"uses proxy hooks"| node_proxyhook
node_hooks -->|"installs detours"| node_hookengine
node_hooks -->|"dispatches skin updates"| node_skinchanger
node_hooks -->|"dispatches sequence fix"| node_sequence
node_hooks -->|"dispatches aim"| node_aimbot
node_hooks -->|"renders chams"| node_chams
node_aimbot -->|"selects target"| node_featureutils
node_skin_dump -->|"parses skin names"| node_parser
node_mainform -->|"configures"| node_skinchanger
node_skinmenus -->|"configures"| node_skinchanger
node_profile -->|"manages presets"| node_skinchanger
node_haxmenu -.->|"sets aim options"| node_aimbot
node_triggerbot -.->|"checks target"| node_target

click node_injector "https://github.com/easyhax/easysharp/blob/master/Injector/main.cs"
click node_runtime "https://github.com/easyhax/easysharp/blob/master/EasySharp/Main.cs"
click node_hooks "https://github.com/easyhax/easysharp/blob/master/EasySharp/Hooks/Hooks.cs"
click node_hookengine "https://github.com/easyhax/easysharp/blob/master/EasySharp/Hooks/HookEngine.cs"
click node_proxyhook "https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/ProxyHook.cs"
click node_interfaces "https://github.com/easyhax/easysharp/tree/master/EasySharp/Interfaces"
click node_interfacefactory "https://github.com/easyhax/easysharp/blob/master/EasySharp/Interface.cs"
click node_memory "https://github.com/easyhax/easysharp/blob/master/EasySharp/Memory.cs"
click node_offsets "https://github.com/easyhax/easysharp/blob/master/EasySharp/Offset.cs"
click node_netvars "https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/NetvarManager.cs"
click node_aimbot "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Legit/Aimbot.cs"
click node_triggerbot "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Legit/TriggerBot.cs"
click node_featureutils "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Utils.cs"
click node_chams "https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/chams.cs"
click node_skinchanger "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/SkinChanger.cs"
click node_sequence "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/FixSequence.cs"
click node_skin_dump "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/DumpSkins.cs"
click node_parser "https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/Parser.cs"
click node_customskins "https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/CustomSkins.cs"
click node_mainform "https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/Form1.cs"
click node_skinmenus "https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/weapons.cs"
click node_profile "https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/profile.cs"
click node_haxmenu "https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/hax.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_injector,node_runtime,node_hooks,node_hookengine,node_proxyhook,node_user toneBlue
class node_interfaces,node_interfacefactory,node_memory,node_offsets,node_netvars toneAmber
class node_skinchanger,node_sequence,node_skin_dump,node_parser,node_customskins toneMint
class node_aimbot,node_triggerbot,node_featureutils,node_chams toneRose
class node_mainform,node_skinmenus,node_profile,node_haxmenu,node_game,node_target toneIndigo
```

## Components

### Launch and runtime

- [DLL injector](https://github.com/easyhax/easysharp/blob/master/Injector/main.cs): `Injector/main.cs`
- [Runtime initialization](https://github.com/easyhax/easysharp/blob/master/EasySharp/Main.cs): `EasySharp/Main.cs`
- [Hook callbacks](https://github.com/easyhax/easysharp/blob/master/EasySharp/Hooks/Hooks.cs): `EasySharp/Hooks/Hooks.cs`
- [Hook engine](https://github.com/easyhax/easysharp/blob/master/EasySharp/Hooks/HookEngine.cs): `EasySharp/Hooks/HookEngine.cs`
- [Proxy hooks](https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/ProxyHook.cs): `EasySharp/Utils/ProxyHook.cs`

### Game interop

- [Game interfaces](https://github.com/easyhax/easysharp/tree/master/EasySharp/Interfaces): `EasySharp/Interfaces`
- [Interface factory](https://github.com/easyhax/easysharp/blob/master/EasySharp/Interface.cs): `EasySharp/Interface.cs`
- [Memory and interop](https://github.com/easyhax/easysharp/blob/master/EasySharp/Memory.cs): `EasySharp/Memory.cs`
- [Game offsets](https://github.com/easyhax/easysharp/blob/master/EasySharp/Offset.cs): `EasySharp/Offset.cs`
- [Netvar manager](https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/NetvarManager.cs): `EasySharp/Utils/NetvarManager.cs`

### Skin customization

- [Skin application](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/SkinChanger.cs): `EasySharp/Features/SkinChanger/SkinChanger.cs`
- [Knife sequences](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/FixSequence.cs): `EasySharp/Features/SkinChanger/FixSequence.cs`
- [Skin catalog](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/DumpSkins.cs): `EasySharp/Features/SkinChanger/DumpSkins.cs`
- [Skin parser](https://github.com/easyhax/easysharp/blob/master/EasySharp/Utils/Parser.cs): `EasySharp/Utils/Parser.cs`
- [Custom skin data](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/SkinChanger/CustomSkins.cs): `EasySharp/Features/SkinChanger/CustomSkins.cs`

### Gameplay and visuals

- [Aim assistance](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Legit/Aimbot.cs): `EasySharp/Features/Legit/Aimbot.cs`
- [Trigger bot](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Legit/TriggerBot.cs): `EasySharp/Features/Legit/TriggerBot.cs`
- [Player targeting](https://github.com/easyhax/easysharp/blob/master/EasySharp/Features/Utils.cs): `EasySharp/Features/Utils.cs`
- [Model chams](https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/chams.cs): `EasySharp/Gui/chams.cs`

### Configuration UI

- [Main menu](https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/Form1.cs): `EasySharp/Gui/Form1.cs`
- [Weapon and knife menus](https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/weapons.cs): `EasySharp/Gui/weapons.cs`
- [Profiles](https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/profile.cs): `EasySharp/Gui/profile.cs`
- [Aim settings](https://github.com/easyhax/easysharp/blob/master/EasySharp/Gui/hax.cs): `EasySharp/Gui/hax.cs`

### Other components

- **User**
- **CSGO process**
- **Target process**

## Connections

- User → DLL injector: launches
- DLL injector → Target process: injects DLL (evidence: `Injector/main.cs`)
- DLL injector → Runtime initialization: loads entrypoint (evidence: `Injector/main.cs`)
- Runtime initialization → Interface factory: creates interfaces (evidence: `EasySharp/Main.cs`)
- Interface factory → Game interfaces: resolves game APIs (evidence: `EasySharp/Interface.cs`)
- Runtime initialization → Skin catalog: dumps skins (evidence: `EasySharp/Main.cs`)
- Runtime initialization → Main menu: creates menu (evidence: `EasySharp/Main.cs`)
- Runtime initialization → Hook callbacks: initializes hooks (evidence: `EasySharp/Main.cs`)
- Runtime initialization → Hook engine: uses hook engine (evidence: `EasySharp/Main.cs`)
- Runtime initialization → Proxy hooks: uses proxy hooks (evidence: `EasySharp/Main.cs`)
- Hook callbacks → Hook engine: installs detours (evidence: `EasySharp/Hooks/Hooks.cs`)
- Hook callbacks → Skin application: dispatches skin updates (evidence: `EasySharp/Hooks/Hooks.cs`)
- Hook callbacks → Knife sequences: dispatches sequence fix (evidence: `EasySharp/Hooks/Hooks.cs`)
- Hook callbacks → Aim assistance: dispatches aim (evidence: `EasySharp/Hooks/Hooks.cs`)
- Hook callbacks → Model chams: renders chams (evidence: `EasySharp/Hooks/Hooks.cs`)
- Aim assistance → Player targeting: selects target (evidence: `EasySharp/Features/Legit/Aimbot.cs`)
- Skin catalog → Skin parser: parses skin names (evidence: `EasySharp/Features/SkinChanger/DumpSkins.cs`)
- Main menu → Skin application: configures (evidence: `EasySharp/Gui/Form1.cs`)
- Weapon and knife menus → Skin application: configures (evidence: `EasySharp/Gui/weapons.cs`)
- Profiles → Skin application: manages presets (evidence: `EasySharp/Gui/profile.cs`)
- Aim settings → Aim assistance: sets aim options
- Trigger bot → Target process: checks target
