# nhantc-skibidi/plaguelibdich2000s architecture

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

- Interactive diagram: https://gitdiagram.com/nhantc-skibidi/plaguelibdich2000s
- Repository: https://github.com/nhantc-skibidi/plaguelibdich2000s

## Overview

PlagueLib-Dich2000s is a BepInEx plugin that adds custom-language support to Plague Inc: Evolved. Its primary workflow is plugin startup and configuration, loading language-pack text and applying translations in-game; optional pack images and custom-font handling extend that workflow, with an injected About screen as a supporting UI feature. The README only documents installation, so runtime relationships below rely on sampled source references and explicit code comments; unsampled capabilities are represented only where the tree supports them.

Main entry points: [`PlagueLibDich2000s/Main.cs`](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs) (Plugin lifecycle), [`PlagueLibDich2000s/FontLoader.cs`](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontLoader.cs) (Font loading), [`PlagueLibDich2000s/ConfigManager.cs`](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/ConfigManager.cs) (Mod configuration), [`PlagueLibDich2000s/TranslationFileLoader.cs`](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/TranslationFileLoader.cs) (Translation files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Plugin runtime"]
  node_plugin["Plugin lifecycle<br/>[Main.cs]"]
  node_config["Mod configuration<br/>[ConfigManager.cs]"]
  node_version["Plugin version<br/>[Version.cs]"]
end

subgraph group_language["Language packs"]
  node_translation["Translation files"]
  node_language_switch["Language switching<br/>[Main.cs]"]
  node_text_hooks["Text translation hooks<br/>[Main.cs]"]
end

subgraph group_presentation["Game presentation"]
  node_about["About screen<br/>[AboutModScreen.cs]"]
  node_images["Language images<br/>[LangImages.cs]"]
end

subgraph group_fonts["Custom fonts"]
  node_font_loader["Font loading<br/>[FontLoader.cs]"]
  node_font_family["Font family reader"]
  node_font_restore["Font restoration<br/>[FontRestore.cs]"]
  node_font_registration["Windows font registration"]
end

node_player(("Player"))
node_bepinex["BepInEx"]
node_game["Plague Inc"]

node_player -->|"installs plugin through"| node_bepinex
node_bepinex -.->|"loads plugin"| node_plugin
node_plugin -->|"initializes"| node_config
node_plugin -->|"coordinates"| node_language_switch
node_language_switch -->|"loads files with"| node_translation
node_language_switch -.->|"refreshes"| node_text_hooks
node_translation -->|"reads settings from"| node_config
node_plugin -.->|"provides UI"| node_about
node_plugin -.->|"coordinates"| node_images
node_plugin -->|"loads fonts"| node_font_loader
node_font_loader -->|"reads settings from"| node_config
node_font_loader -->|"uses language data"| node_translation
node_font_loader -->|"reads family names with"| node_font_family
node_font_loader -->|"registers fonts through"| node_font_registration
node_plugin -->|"restores fonts"| node_font_restore
node_font_restore -->|"reads settings from"| node_config
node_plugin -.->|"patches runtime"| node_game
node_text_hooks -.->|"translates UI text"| node_game
node_images -.->|"replaces UI images"| node_game
node_about -.->|"adds in-game screen"| node_game

click node_plugin "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs"
click node_config "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/ConfigManager.cs"
click node_translation "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/TranslationFileLoader.cs"
click node_language_switch "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs"
click node_text_hooks "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs"
click node_about "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/AboutModScreen.cs"
click node_images "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/LangImages.cs"
click node_font_loader "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontLoader.cs"
click node_font_family "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontFamilyReader.cs"
click node_font_restore "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontRestore.cs"
click node_font_registration "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/WindowsFontRegistrar.cs"
click node_version "https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Version.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_plugin,node_config,node_version toneBlue
class node_translation,node_language_switch,node_text_hooks toneAmber
class node_about,node_images toneMint
class node_font_loader,node_font_family,node_font_restore,node_font_registration toneRose
class node_player,node_bepinex,node_game toneIndigo
```

## Components

### Plugin runtime

- [Plugin lifecycle](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs): `PlagueLibDich2000s/Main.cs`
- [Mod configuration](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/ConfigManager.cs): `PlagueLibDich2000s/ConfigManager.cs`
- [Plugin version](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Version.cs): `PlagueLibDich2000s/Version.cs`

### Language packs

- [Translation files](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/TranslationFileLoader.cs): `PlagueLibDich2000s/TranslationFileLoader.cs`
- [Language switching](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs): `PlagueLibDich2000s/Main.cs`
- [Text translation hooks](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/Main.cs): `PlagueLibDich2000s/Main.cs`

### Game presentation

- [About screen](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/AboutModScreen.cs): `PlagueLibDich2000s/AboutModScreen.cs`
- [Language images](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/LangImages.cs): `PlagueLibDich2000s/LangImages.cs`

### Custom fonts

- [Font loading](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontLoader.cs): `PlagueLibDich2000s/FontLoader.cs`
- [Font family reader](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontFamilyReader.cs): `PlagueLibDich2000s/FontFamilyReader.cs`
- [Font restoration](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/FontRestore.cs): `PlagueLibDich2000s/FontRestore.cs`
- [Windows font registration](https://github.com/nhantc-skibidi/plaguelibdich2000s/blob/master/PlagueLibDich2000s/WindowsFontRegistrar.cs): `PlagueLibDich2000s/WindowsFontRegistrar.cs`

### Other components

- **Player**
- **BepInEx**
- **Plague Inc**

## Connections

- Player → BepInEx: installs plugin through (evidence: `README.md`)
- BepInEx → Plugin lifecycle: loads plugin
- Plugin lifecycle → Mod configuration: initializes (evidence: `PlagueLibDich2000s/ConfigManager.cs`)
- Plugin lifecycle → Language switching: coordinates (evidence: `PlagueLibDich2000s/Main.cs`)
- Language switching → Translation files: loads files with (evidence: `PlagueLibDich2000s/Main.cs`)
- Language switching → Text translation hooks: refreshes (evidence: `PlagueLibDich2000s/Main.cs`)
- Translation files → Mod configuration: reads settings from (evidence: `PlagueLibDich2000s/TranslationFileLoader.cs`)
- Plugin lifecycle → About screen: provides UI
- Plugin lifecycle → Language images: coordinates
- Plugin lifecycle → Font loading: loads fonts (evidence: `PlagueLibDich2000s/Main.cs`)
- Font loading → Mod configuration: reads settings from (evidence: `PlagueLibDich2000s/FontLoader.cs`)
- Font loading → Translation files: uses language data (evidence: `PlagueLibDich2000s/FontLoader.cs`)
- Font loading → Font family reader: reads family names with (evidence: `PlagueLibDich2000s/FontLoader.cs`)
- Font loading → Windows font registration: registers fonts through (evidence: `PlagueLibDich2000s/FontLoader.cs`)
- Plugin lifecycle → Font restoration: restores fonts (evidence: `PlagueLibDich2000s/Main.cs`)
- Font restoration → Mod configuration: reads settings from (evidence: `PlagueLibDich2000s/FontRestore.cs`)
- Plugin lifecycle → Plague Inc: patches runtime
- Text translation hooks → Plague Inc: translates UI text
- Language images → Plague Inc: replaces UI images
- About screen → Plague Inc: adds in-game screen
