# sebastianzq3/nexus architecture

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

- Interactive diagram: https://gitdiagram.com/sebastianzq3/nexus
- Repository: https://github.com/sebastianzq3/nexus

## Overview

NEXUS is a single-file C# console game, presented as a training system. The player creates a cadet, explores generated realities, encounters events and combat, collects resources, and uses them for synthesis, crafting, and progression. The sampled code shows the console UI, exploration/event handling, and domain models all implemented in Program.cs. The excerpt is partial, so save/load details and some internal calls cannot be confidently mapped.

Main entry points: [`NEXUS/Program.cs`](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs) (Console game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_play["Game experience"]
  node_console["Console game<br/>[Program.cs]"]
  node_exploration["Reality exploration<br/>[Program.cs]"]
  node_encounters["Events and combat<br/>[Program.cs]"]
  node_progression["Synthesis and crafting<br/>[Program.cs]"]
end

subgraph group_domain["Game systems"]
  node_cadet["Cadet state<br/>[Program.cs]"]
  node_reality["Reality model<br/>[Program.cs]"]
  node_saves[("Save files<br/>[Program.cs]")]
end

node_player(("Player"))

node_player -->|"plays"| node_console
node_console -->|"runs"| node_exploration
node_exploration -->|"handles events"| node_encounters
node_console -->|"offers actions"| node_progression
node_exploration -->|"updates"| node_cadet
node_exploration -->|"reads and updates"| node_reality
node_encounters -.->|"affects stats"| node_cadet
node_progression -->|"updates inventory"| node_cadet
node_console -.->|"uses saves"| node_saves

click node_console "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_exploration "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_encounters "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_progression "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_cadet "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_reality "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs"
click node_saves "https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.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_console,node_exploration,node_encounters,node_progression toneBlue
class node_cadet,node_reality,node_saves toneAmber
class node_player toneIndigo
```

## Components

### Game experience

- [Console game](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`
- [Reality exploration](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`
- [Events and combat](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`
- [Synthesis and crafting](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`

### Game systems

- [Cadet state](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`
- [Reality model](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`
- [Save files](https://github.com/sebastianzq3/nexus/blob/master/NEXUS/Program.cs): `NEXUS/Program.cs`

### Other components

- **Player**

## Connections

- Player → Console game: plays (evidence: `NEXUS/Program.cs`)
- Console game → Reality exploration: runs (evidence: `NEXUS/Program.cs`)
- Reality exploration → Events and combat: handles events (evidence: `NEXUS/Program.cs`)
- Console game → Synthesis and crafting: offers actions (evidence: `NEXUS/Program.cs`)
- Reality exploration → Cadet state: updates (evidence: `NEXUS/Program.cs`)
- Reality exploration → Reality model: reads and updates (evidence: `NEXUS/Program.cs`)
- Events and combat → Cadet state: affects stats (evidence: `NEXUS/Program.cs`)
- Synthesis and crafting → Cadet state: updates inventory (evidence: `NEXUS/Program.cs`)
- Console game → Save files: uses saves (evidence: `NEXUS/Program.cs`)
