# flowers-modding/adofai-mod-development-guide architecture

> Architecture diagram of the GitHub repository flowers-modding/adofai-mod-development-guide, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/flowers-modding/adofai-mod-development-guide
- Repository: https://github.com/flowers-modding/adofai-mod-development-guide

## Overview

#### Purpose and Scope
This repository is a Korean-language development guide for creating mods for *A Dance of Fire and Ice* (ADOFAI). It is documentation-first rather than an executable application; the bundled template is the practical code starting point.

Core entry point: `README.md`, which routes readers to six sequential guide chapters and the template archive.

#### Template-Based Project Starting Point
`ModTemplate.zip` is the repository’s only packaged implementation artifact. It is intended to be downloaded/opened alongside the guide and likely contains the mod project structure, dependencies, and build setup described by the documentation.

- `ModTemplate.zip`
- `README.md`

The archive is a distribution boundary: its internal contents are not exposed in the supplied tree, so its runtime entry classes, project files, and dependency versions cannot be verified here.

#### Setup and Mod Host Integration
The first stage establishes a mod development project and its relationship to the ADOFAI mod-loading environment.

- `dev1.md`
- `ModTemplate.zip`

The README separately directs installation users to the external UMM installation/application guides. UMM is therefore a material external runtime/loader dependency for deploying mods, while this repository focuses on authoring them.

#### Runtime Behavior Injection
Method patching is the primary mechanism for altering game behavior, covered in:

- `dev2.md`

This implies a control-flow boundary between the base game’s existing methods and mod-supplied interception/patch logic. Mod behavior is invoked through patches at selected game lifecycle or gameplay method boundaries rather than through a standalone process.

#### User Interface Layer
The guide separates transient GUI display from persistent mod configuration:

- `dev3.md`
- `dev4.md`

`dev3.md` covers presenting GUI within the game runtime. `dev4.md` covers a mod settings window, establishing a configuration UI boundary distinct from gameplay patches. The expected flow is player interaction in the game → mod GUI/settings controls → mod-held configuration/state → patched behavior consuming that state.

#### Build and Deployment Pipeline
Build guidance is isolated in:

- `dev5.md`
- `ModTemplate.zip`

The intended pipeline is: initialize from template → implement patches and UI → build the mod artifact → install/load it through UMM into ADOFAI. Exact compiler, framework, output format, and packaging conventions are not visible in the supplied tree.

#### Game Code Discovery
The final guide stage addresses inspecting ADOFAI code:

- `dev6.md`

This is architecturally important because patch targets depend on understanding the game’s classes and methods. The workflow is game-code inspection → identify an appropriate method boundary → implement patch → build and validate in the mod-hosted game runtime.

#### External Dependencies and Documentation Structure
The repository relies on external GitHub-hosted installation guidance for UMM and publishes its own downloadable template from GitHub. Its main navigational and conceptual structure is:

- `README.md`
- `dev1.md`
- `dev2.md`
- `dev3.md`
- `dev4.md`
- `dev5.md`
- `dev6.md`

No source directories, executable entry points, infrastructure definitions, or test suites are present in the visible repository tree.

Main entry points: [`dev2.md`](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev2.md) (Method patching), [`dev1.md`](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev1.md) (Project setup), [`dev3.md`](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev3.md) (In-game GUI), [`dev4.md`](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev4.md) (Settings UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guides["Guide chapters"]
  node_setup["Project setup<br/>guide chapter<br/>[dev1.md]"]
  node_patching["Method patching<br/>guide chapter<br/>[dev2.md]"]
  node_gui["In-game GUI<br/>guide chapter<br/>[dev3.md]"]
  node_settings["Settings UI<br/>guide chapter<br/>[dev4.md]"]
  node_build["Build and deployment<br/>guide chapter<br/>[dev5.md]"]
  node_discovery["Game code discovery<br/>guide chapter<br/>[dev6.md]"]
end

subgraph group_runtime["External runtime"]
  node_umm{{"UMM<br/>mod loader"}}
  node_adofai["ADOFAI<br/>game host"]
end

node_readme["README<br/>documentation index<br/>[README.md]"]
node_template["Mod template archive<br/>project distribution<br/>[ModTemplate.zip]"]
node_mod["Authored mod<br/>mod artifact"]
node_mod_state[("Mod configuration/state<br/>runtime state")]

node_readme -->|"starts workflow"| node_setup
node_readme -->|"links download"| node_template
node_setup -->|"uses"| node_template
node_setup -->|"then"| node_patching
node_patching -->|"then"| node_gui
node_gui -->|"then"| node_settings
node_settings -->|"then"| node_build
node_build -->|"then"| node_discovery
node_template -->|"initializes"| node_mod
node_patching -->|"implements patches"| node_mod
node_gui -->|"implements GUI"| node_mod
node_settings -->|"manages"| node_mod_state
node_mod_state -->|"drives behavior"| node_mod
node_discovery -->|"identifies targets"| node_patching
node_adofai -.->|"code inspected"| node_discovery
node_build -->|"builds"| node_mod
node_mod -->|"installed and loaded by"| node_umm
node_umm -->|"loads into"| node_adofai
node_mod -->|"patches method boundaries"| node_adofai

click node_readme "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/README.md"
click node_template "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/ModTemplate.zip"
click node_setup "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev1.md"
click node_patching "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev2.md"
click node_gui "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev3.md"
click node_settings "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev4.md"
click node_build "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev5.md"
click node_discovery "https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev6.md"

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_setup,node_patching,node_gui,node_settings,node_build,node_discovery toneBlue
class node_umm,node_adofai toneAmber
class node_readme,node_template,node_mod,node_mod_state toneNeutral
```

## Components

### Guide chapters

Sequential authoring workflow.

- [Project setup](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev1.md): guide chapter · `dev1.md`
- [Method patching](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev2.md): guide chapter · Primary mechanism for injecting mod behavior. · `dev2.md`
- [In-game GUI](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev3.md): guide chapter · `dev3.md`
- [Settings UI](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev4.md): guide chapter · Persistent mod configuration boundary. · `dev4.md`
- [Build and deployment](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev5.md): guide chapter · `dev5.md`
- [Game code discovery](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/dev6.md): guide chapter · Finds suitable game method boundaries for patches. · `dev6.md`

### External runtime

- **UMM**: mod loader · External installation and loading dependency.
- **ADOFAI**: game host · Base-game methods are intercepted by mod patches.

### Other components

- [README](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/README.md): documentation index · Routes readers through the guide and template. · `README.md`
- [Mod template archive](https://github.com/flowers-modding/adofai-mod-development-guide/blob/main/ModTemplate.zip): project distribution · Packaged starting point; internal structure is not visible. · `ModTemplate.zip`
- **Authored mod**: mod artifact · Implemented from the template; format is not documented here.
- **Mod configuration/state**: runtime state

## Connections

- README → Project setup: starts workflow
- README → Mod template archive: links download
- Project setup → Mod template archive: uses
- Project setup → Method patching: then
- Method patching → In-game GUI: then
- In-game GUI → Settings UI: then
- Settings UI → Build and deployment: then
- Build and deployment → Game code discovery: then
- Mod template archive → Authored mod: initializes
- Method patching → Authored mod: implements patches
- In-game GUI → Authored mod: implements GUI
- Settings UI → Mod configuration/state: manages
- Mod configuration/state → Authored mod: drives behavior
- Game code discovery → Method patching: identifies targets
- ADOFAI → Game code discovery: code inspected
- Build and deployment → Authored mod: builds
- Authored mod → UMM: installed and loaded by
- UMM → ADOFAI: loads into
- Authored mod → ADOFAI: patches method boundaries
