# shinayakae/forzaluna architecture

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

- Interactive diagram: https://gitdiagram.com/shinayakae/forzaluna
- Repository: https://github.com/shinayakae/forzaluna

## Overview

Luna is a Windows companion for Forza Horizon 6, with a WinForms interface for live driving tools, garage/database controls, teleportation, photo mode, tuning, and role-play features. The user works through feature-specific pages; some act on live game state, while preset and location workflows also use bundled data. The sampled code confirms Photo Mode and role-play UI calls into RemoteDatabase, and shows preset handling in the driving and teleport pages. Other subsystem links are left out where the excerpts do not establish their wiring.

Main entry points: [`src/Forza Horizon Luna Open Source.cs`](https://github.com/shinayakae/forzaluna/blob/main/src/Forza%20Horizon%20Luna%20Open%20Source.cs) (Luna app), [`src/RemoteDatabase.RolePlayGas.cs`](https://github.com/shinayakae/forzaluna/blob/main/src/RemoteDatabase.RolePlayGas.cs) (Game runtime access), [`src/Sections/MainForm.DrivingEditor.cs`](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DrivingEditor.cs) (Driving editor), [`src/Sections/MainForm.RolePlay.cs`](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.RolePlay.cs) (Role-play tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["App interface"]
  node_mainform["Luna app"]
  node_hub["Hub<br/>[MainForm.Hub.cs]"]
  node_connect["Connection"]
  node_settings["Settings"]
  node_featureconfig["Feature config"]
end

subgraph group_live["Live game tools"]
  node_features["Live features"]
  node_driving["Driving editor"]
  node_roleplay["Role-play tools"]
  node_remote["Game runtime access"]
  node_teleport["Teleport tools"]
  node_photo["Photo mode"]
  node_autoshow["Autoshow"]
end

subgraph group_data["Database and presets"]
  node_dbtools["Database tools"]
  node_localdb[("Local database")]
  node_drivingpresets["Driving presets"]
  node_teleportlists["Teleport lists"]
  node_databaseextras["Database utilities"]
end

subgraph group_support["App support"]
  node_console["Console"]
  node_feedback["Bug feedback"]
  node_tutorial["Tutorial"]
  node_credits["Credits"]
  node_donate["Donations<br/>[MainForm.Donate.cs]"]
  node_openresults["Open results"]
  node_localization["UI translations"]
  node_credittranslations["Credits translations"]
end

node_user(("Player"))

node_user -->|"uses"| node_mainform
node_mainform -.->|"presents"| node_hub
node_roleplay -->|"sets gas hook"| node_remote
node_photo -->|"applies effects"| node_remote
node_driving -->|"loads presets"| node_drivingpresets
node_teleport -->|"extracts lists"| node_teleportlists

click node_mainform "https://github.com/shinayakae/forzaluna/blob/main/src/Forza%20Horizon%20Luna%20Open%20Source.cs"
click node_hub "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Hub.cs"
click node_connect "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Connect.cs"
click node_settings "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Settings.cs"
click node_featureconfig "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.FeatureConfig.cs"
click node_features "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Features.cs"
click node_driving "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DrivingEditor.cs"
click node_roleplay "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.RolePlay.cs"
click node_remote "https://github.com/shinayakae/forzaluna/blob/main/src/RemoteDatabase.RolePlayGas.cs"
click node_teleport "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Teleport.cs"
click node_photo "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.PhotoMode.cs"
click node_autoshow "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Autoshow.cs"
click node_dbtools "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DatabaseTools.cs"
click node_drivingpresets "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DrivingEditor.cs"
click node_teleportlists "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Teleport.cs"
click node_console "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Console.cs"
click node_feedback "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.FeedbackBug.cs"
click node_tutorial "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Tutorial.cs"
click node_credits "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Credits.cs"
click node_donate "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Donate.cs"
click node_openresults "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.OpenResults.cs"
click node_localization "https://github.com/shinayakae/forzaluna/blob/main/src/LocalizationDetailGenerated.cs"
click node_credittranslations "https://github.com/shinayakae/forzaluna/blob/main/src/CreditsTranslations.cs"
click node_databaseextras "https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DatabaseTools.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_mainform,node_hub,node_connect,node_settings,node_featureconfig toneBlue
class node_features,node_driving,node_roleplay,node_remote,node_teleport,node_photo,node_autoshow toneAmber
class node_dbtools,node_localdb,node_drivingpresets,node_teleportlists,node_databaseextras toneMint
class node_console,node_feedback,node_tutorial,node_credits,node_donate,node_openresults,node_localization,node_credittranslations toneRose
class node_user toneIndigo
```

## Components

### App interface

- [Luna app](https://github.com/shinayakae/forzaluna/blob/main/src/Forza%20Horizon%20Luna%20Open%20Source.cs): `src/Forza Horizon Luna Open Source.cs`
- [Hub](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Hub.cs): `src/Sections/MainForm.Hub.cs`
- [Connection](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Connect.cs): `src/Sections/MainForm.Connect.cs`
- [Settings](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Settings.cs): `src/Sections/MainForm.Settings.cs`
- [Feature config](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.FeatureConfig.cs): `src/Sections/MainForm.FeatureConfig.cs`

### Live game tools

- [Live features](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Features.cs): `src/Sections/MainForm.Features.cs`
- [Driving editor](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DrivingEditor.cs): `src/Sections/MainForm.DrivingEditor.cs`
- [Role-play tools](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.RolePlay.cs): `src/Sections/MainForm.RolePlay.cs`
- [Game runtime access](https://github.com/shinayakae/forzaluna/blob/main/src/RemoteDatabase.RolePlayGas.cs): `src/RemoteDatabase.RolePlayGas.cs`
- [Teleport tools](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Teleport.cs): `src/Sections/MainForm.Teleport.cs`
- [Photo mode](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.PhotoMode.cs): `src/Sections/MainForm.PhotoMode.cs`
- [Autoshow](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Autoshow.cs): `src/Sections/MainForm.Autoshow.cs`

### Database and presets

- [Database tools](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DatabaseTools.cs): `src/Sections/MainForm.DatabaseTools.cs`
- **Local database**
- [Driving presets](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DrivingEditor.cs): `src/Sections/MainForm.DrivingEditor.cs`
- [Teleport lists](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Teleport.cs): `src/Sections/MainForm.Teleport.cs`
- [Database utilities](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.DatabaseTools.cs): `src/Sections/MainForm.DatabaseTools.cs`

### App support

- [Console](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Console.cs): `src/Sections/MainForm.Console.cs`
- [Bug feedback](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.FeedbackBug.cs): `src/Sections/MainForm.FeedbackBug.cs`
- [Tutorial](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Tutorial.cs): `src/Sections/MainForm.Tutorial.cs`
- [Credits](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Credits.cs): `src/Sections/MainForm.Credits.cs`
- [Donations](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.Donate.cs): `src/Sections/MainForm.Donate.cs`
- [Open results](https://github.com/shinayakae/forzaluna/blob/main/src/Sections/MainForm.OpenResults.cs): `src/Sections/MainForm.OpenResults.cs`
- [UI translations](https://github.com/shinayakae/forzaluna/blob/main/src/LocalizationDetailGenerated.cs): `src/LocalizationDetailGenerated.cs`
- [Credits translations](https://github.com/shinayakae/forzaluna/blob/main/src/CreditsTranslations.cs): `src/CreditsTranslations.cs`

### Other components

- **Player**

## Connections

- Player → Luna app: uses (evidence: `README.md`)
- Luna app → Hub: presents
- Role-play tools → Game runtime access: sets gas hook (evidence: `src/Sections/MainForm.RolePlay.cs`)
- Photo mode → Game runtime access: applies effects (evidence: `src/Sections/MainForm.PhotoMode.cs`)
- Driving editor → Driving presets: loads presets (evidence: `src/Sections/MainForm.DrivingEditor.cs`)
- Teleport tools → Teleport lists: extracts lists (evidence: `src/Sections/MainForm.Teleport.cs`)
