# julianozelrose/tr-aod-saveedit architecture

> Architecture diagram of the GitHub repository julianozelrose/tr-aod-saveedit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/julianozelrose/tr-aod-saveedit
- Repository: https://github.com/julianozelrose/tr-aod-saveedit

## Overview

TR-AoD-SaveEdit is a Windows desktop prototype for editing Tomb Raider: The Angel of Darkness savegames. The user selects the game directory, the editor populates its save list, loads and interprets a selected save, and lets the user change items, weapons, ammunition, and health before saving; backups are created automatically. The sampled source shows save parsing, compression routines, inventory state, and entity metadata concentrated in MainForm.cs. The README documents the user workflow and backup behavior; unsampled save-writing details are not expanded beyond that evidence.

Main entry points: [`TR-AoD-SaveEdit/MainForm.cs`](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs) (Save data parsing), [`TR-AoD-SaveEdit/Program.cs`](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Program.cs) (Application entry), [`TR-AoD-SaveEdit/AboutForm.cs`](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/AboutForm.cs) (About dialog), [`TR-AoD-SaveEdit/Savegame.cs`](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Savegame.cs) (Save and item records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop interface"]
  node_entry["Application entry<br/>[Program.cs]"]
  node_main["Editor window<br/>[MainForm.cs]"]
  node_about["About dialog<br/>[AboutForm.cs]"]
end

subgraph group_saveflow["Savegame workflow"]
  node_savefiles["Game save files"]
  node_saveflow_ui["Save selection and editing<br/>[MainForm.cs]"]
  node_save_codec["Compression handling<br/>[MainForm.cs]"]
  node_save_parse["Save data parsing<br/>[MainForm.cs]"]
  node_save_write["Save updates and backups<br/>[MainForm.cs]"]
end

subgraph group_domain["Game data"]
  node_save_model["Save and item records<br/>[Savegame.cs]"]
  node_inventory["Item identifiers<br/>[Inventory.cs]"]
  node_entity["Entity metadata<br/>[EntityMock.cs]"]
end

node_user(("Player"))

node_user -->|"starts"| node_entry
node_entry -->|"opens"| node_main
node_user -->|"selects and edits"| node_saveflow_ui
node_saveflow_ui -->|"lists and loads"| node_savefiles
node_save_parse -->|"uses records"| node_save_model
node_save_parse -->|"uses metadata"| node_entity
node_save_parse -.->|"uses item IDs"| node_inventory
node_saveflow_ui -->|"saves edits"| node_save_write
node_save_write -->|"backs up and updates"| node_savefiles
node_main -->|"opens"| node_about

click node_entry "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Program.cs"
click node_main "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs"
click node_about "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/AboutForm.cs"
click node_saveflow_ui "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs"
click node_save_codec "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs"
click node_save_parse "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs"
click node_save_write "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs"
click node_save_model "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Savegame.cs"
click node_inventory "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Inventory.cs"
click node_entity "https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/EntityMock.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_entry,node_main,node_about toneBlue
class node_savefiles,node_saveflow_ui,node_save_codec,node_save_parse,node_save_write toneAmber
class node_save_model,node_inventory,node_entity toneMint
class node_user toneIndigo
```

## Components

### Desktop interface

- [Application entry](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Program.cs): `TR-AoD-SaveEdit/Program.cs`
- [Editor window](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs): `TR-AoD-SaveEdit/MainForm.cs`
- [About dialog](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/AboutForm.cs): `TR-AoD-SaveEdit/AboutForm.cs`

### Savegame workflow

- **Game save files**
- [Save selection and editing](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs): `TR-AoD-SaveEdit/MainForm.cs`
- [Compression handling](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs): `TR-AoD-SaveEdit/MainForm.cs`
- [Save data parsing](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs): `TR-AoD-SaveEdit/MainForm.cs`
- [Save updates and backups](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/MainForm.cs): `TR-AoD-SaveEdit/MainForm.cs`

### Game data

- [Save and item records](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Savegame.cs): `TR-AoD-SaveEdit/Savegame.cs`
- [Item identifiers](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/Inventory.cs): `TR-AoD-SaveEdit/Inventory.cs`
- [Entity metadata](https://github.com/julianozelrose/tr-aod-saveedit/blob/master/TR-AoD-SaveEdit/EntityMock.cs): `TR-AoD-SaveEdit/EntityMock.cs`

### Other components

- **Player**

## Connections

- Player → Application entry: starts (evidence: `TR-AoD-SaveEdit/Program.cs`)
- Application entry → Editor window: opens (evidence: `TR-AoD-SaveEdit/Program.cs`)
- Player → Save selection and editing: selects and edits (evidence: `README.md`)
- Save selection and editing → Game save files: lists and loads (evidence: `README.md`)
- Save data parsing → Save and item records: uses records (evidence: `TR-AoD-SaveEdit/MainForm.cs`)
- Save data parsing → Entity metadata: uses metadata (evidence: `TR-AoD-SaveEdit/MainForm.cs`)
- Save data parsing → Item identifiers: uses item IDs (evidence: `TR-AoD-SaveEdit/MainForm.cs`)
- Save selection and editing → Save updates and backups: saves edits (evidence: `README.md`)
- Save updates and backups → Game save files: backs up and updates (evidence: `README.md`)
- Editor window → About dialog: opens (evidence: `TR-AoD-SaveEdit/MainForm.cs`)
