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

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

## Overview

The inspected runtime is a small C# host: it accepts a config path as an argument, checks that the file exists, logs the loaded profile, and exits. The README advertises modding, wallet, and mnemonic features, but the sampled source does not implement or connect them, so they are not represented as runtime components.

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

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_host["Loader host"]
end

node_user(("Launcher"))
node_filesystem[("Filesystem")]
node_console["Console"]

node_user -->|"starts with arguments"| node_host
node_host -->|"checks config path"| node_filesystem
node_host -->|"logs profile"| node_console

click node_host "https://github.com/r3lexa/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.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_host toneBlue
class node_user,node_console toneIndigo
class node_filesystem toneAmber
```

## Components

### Runtime

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

### Other components

- **Launcher**
- **Filesystem**
- **Console**

## Connections

- Launcher → Loader host: starts with arguments (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
- Loader host → Filesystem: checks config path (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
- Loader host → Console: logs profile (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
