# mywilliam211/slay-the-spire-2-mod-loader architecture

> Architecture diagram of the GitHub repository mywilliam211/slay-the-spire-2-mod-loader, 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/mywilliam211/slay-the-spire-2-mod-loader
- Repository: https://github.com/mywilliam211/slay-the-spire-2-mod-loader

## Overview

The checked-in runtime is a minimal C# host, not the mod loader or wallet/recovery system described by the README. Its entry point optionally checks a supplied path and initializes the host; initialization verifies that the file exists and logs the profile path. The Go package file only exposes version and portal constants. The README advertises much broader capabilities, but the sampled source does not substantiate them; no links to those features are inferred.

Main entry points: [`src/SlayTheSpire2ModLoaderHost.cs`](https://github.com/mywilliam211/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs) (Loader host)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Launcher user"))
node_host["Loader host"]
node_config["Config file"]
node_console["Console output"]
node_metadata["Package metadata<br/>[doc.go]"]

node_user -->|"launches"| node_host
node_host -->|"checks existence"| node_config
node_host -->|"logs profile"| node_console

click node_host "https://github.com/mywilliam211/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs"
click node_metadata "https://github.com/mywilliam211/slay-the-spire-2-mod-loader/blob/main/doc.go"

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_host,node_metadata toneTeal
class node_config,node_console toneIndigo
```

## Components

### Other components

- **Launcher user**
- [Loader host](https://github.com/mywilliam211/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs): `src/SlayTheSpire2ModLoaderHost.cs`
- **Config file**
- **Console output**
- [Package metadata](https://github.com/mywilliam211/slay-the-spire-2-mod-loader/blob/main/doc.go): `doc.go`

## Connections

- Launcher user → Loader host: launches (evidence: `README.md`)
- Loader host → Config file: checks existence (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
- Loader host → Console output: logs profile (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
