# tehcheat/advancedtooltip architecture

> Architecture diagram of the GitHub repository tehcheat/advancedtooltip, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tehcheat/advancedtooltip
- Repository: https://github.com/tehcheat/advancedtooltip

## Overview

##### Main Components

a) Core Module
- "FastModsModule.cs" as the central component, as it appears to be the main entry point
- This likely handles the initialization and coordination of the tooltip system

b) Settings Management Layer
- Relationship between the main settings components:
- AdvancedTooltipSettings (base settings)
- ItemLevelSettings
- ItemModsSettings
- WeaponDpsSettings

c) Tooltip Processing System
- AdvancedTooltip as the main processing component
- ModValue as a supporting component for value calculations

**Rectangle: Core Components**
**Rounded Rectangle: Settings Components**
**Diamond: Data Models**

##### Component Relationships

**FastModsModule**
- ↓
**AdvancedTooltip ←→ ModValue**
- ↑
**Settings Hierarchy**
- AdvancedTooltipSettings
- ItemLevelSettings
- ItemModsSettings
- WeaponDpsSettings

##### Important Details

a) Data Flow
- How the settings influence the tooltip generation
- How ModValue interacts with the tooltip system
- Demonstrate the configuration flow from settings to display

b) Component Responsibilities
- Brief notes about key interactions

##### Implementation Notes

- Use UML notation for class relationships
- Cardinality where relevant
- Async operations or performance-critical paths

- Settings management and inheritance
- Mod value calculation flow
- Weapon DPS integration
- Item level and mod processing

Remember to:

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Core Component]:::core
        L2[Settings Component]:::settings
        L3[Data Model]:::data
        L4[Settings Directory]:::directory
    end

    subgraph Core
        FM["FastModsModule"]:::core
        AT["AdvancedTooltip"]:::core
        MV["ModValue"]:::data
    end

    subgraph Settings
        direction TB
        SD["Settings Management"]:::directory
        ATS["AdvancedTooltipSettings"]:::settings
        ILS["ItemLevelSettings"]:::settings
        IMS["ItemModsSettings"]:::settings
        WDS["WeaponDpsSettings"]:::settings
    end

    FM --> AT
    AT <--> MV
    SD --> ATS
    ATS --> ILS
    ATS --> IMS
    ATS --> WDS

    classDef core fill:#2374ab,stroke:#2374ab,color:#fff
    classDef settings fill:#57a773,stroke:#57a773,color:#fff
    classDef data fill:#ff8c42,stroke:#ff8c42,color:#fff
    classDef directory fill:#808080,stroke:#808080,color:#fff

    click FM "https://github.com/TehCheat/AdvancedTooltip/blob/master/FastModsModule.cs"
    click AT "https://github.com/TehCheat/AdvancedTooltip/blob/master/AdvancedTooltip.cs"
    click MV "https://github.com/TehCheat/AdvancedTooltip/blob/master/ModValue.cs"
    click ATS "https://github.com/TehCheat/AdvancedTooltip/blob/master/Settings/AdvancedTooltipSettings.cs"
    click ILS "https://github.com/TehCheat/AdvancedTooltip/blob/master/Settings/ItemLevelSettings.cs"
    click IMS "https://github.com/TehCheat/AdvancedTooltip/blob/master/Settings/ItemModsSettings.cs"
    click WDS "https://github.com/TehCheat/AdvancedTooltip/blob/master/WeaponDpsSettings.cs"
    click SD "https://github.com/TehCheat/AdvancedTooltip/tree/master/Settings/"
```
