# wolkenschutz/decortreasurehunt architecture

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

- Interactive diagram: https://gitdiagram.com/wolkenschutz/decortreasurehunt
- Repository: https://github.com/wolkenschutz/decortreasurehunt

## Overview

Decor Treasure Hunt is a World of Warcraft addon that automates the daily treasure quest. The player accepts the quest, follows an automatically set waypoint to the treasure, and turns the quest in; auto-accept and turn-in can be disabled in the Addon Compartment. The README also documents login-time quest detection, native map waypoints, optional TomTom support, and localization. No source excerpts were provided, so relationships below are limited to documented behavior; file responsibilities are identified from the available filenames and README, not inspected code.

Main entry points: [`Core.lua`](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Core.lua) (Quest automation), [`Options.lua`](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Options.lua) (Addon settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_quest["Quest automation"]
  node_core["Quest automation<br/>[Core.lua]"]
  node_data["Quest data<br/>[Data.lua]"]
end

subgraph group_navigation["Treasure navigation"]
  node_waypoint["Waypoint guidance<br/>[Core.lua]"]
  node_blizzard["WoW map waypoint"]
  node_tomtom["TomTom"]
end

subgraph group_support["Addon support"]
  node_options["Addon settings<br/>[Options.lua]"]
  node_localization["Localized text<br/>[Localization.lua]"]
end

node_player(("Player"))

node_player -->|"accepts quest"| node_core
node_core -->|"sets waypoint"| node_waypoint
node_waypoint -->|"uses native system"| node_blizzard
node_waypoint -.->|"supports optionally"| node_tomtom
node_player -->|"toggles automation"| node_options
node_core -->|"turns in quest"| node_player

click node_core "https://github.com/wolkenschutz/decortreasurehunt/blob/main/Core.lua"
click node_data "https://github.com/wolkenschutz/decortreasurehunt/blob/main/Data.lua"
click node_waypoint "https://github.com/wolkenschutz/decortreasurehunt/blob/main/Core.lua"
click node_options "https://github.com/wolkenschutz/decortreasurehunt/blob/main/Options.lua"
click node_localization "https://github.com/wolkenschutz/decortreasurehunt/blob/main/Localization.lua"

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_core,node_data toneBlue
class node_waypoint,node_blizzard,node_tomtom toneAmber
class node_options,node_localization toneMint
class node_player toneIndigo
```

## Components

### Quest automation

- [Quest automation](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Core.lua): `Core.lua`
- [Quest data](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Data.lua): `Data.lua`

### Treasure navigation

- [Waypoint guidance](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Core.lua): `Core.lua`
- **WoW map waypoint**
- **TomTom**

### Addon support

- [Addon settings](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Options.lua): `Options.lua`
- [Localized text](https://github.com/wolkenschutz/decortreasurehunt/blob/main/Localization.lua): `Localization.lua`

### Other components

- **Player**

## Connections

- Player → Quest automation: accepts quest (evidence: `README.md`)
- Quest automation → Waypoint guidance: sets waypoint (evidence: `README.md`)
- Waypoint guidance → WoW map waypoint: uses native system (evidence: `README.md`)
- Waypoint guidance → TomTom: supports optionally (evidence: `README.md`)
- Player → Addon settings: toggles automation (evidence: `README.md`)
- Quest automation → Player: turns in quest (evidence: `README.md`)
