# klingaac/worldloader-roblox-plugin architecture

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

- Interactive diagram: https://gitdiagram.com/klingaac/worldloader-roblox-plugin
- Repository: https://github.com/klingaac/worldloader-roblox-plugin

## Overview

WorldLoader is a Roblox Studio plugin for importing real-world places and generating terrain, buildings, roads, and railways. Its documented workflow uses OpenStreetMap and elevation data to produce those outputs; users can also configure generation through the properties tab or editable modules. The repository tree identifies likely implementation areas, but no source excerpts were provided, so internal calls and data flow cannot be verified. Edges below reflect only README-documented relationships.

Main entry points: [`Modules/GenerateWorld.lua`](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/GenerateWorld.lua) (World generation), [`Main.lua`](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Main.lua) (WorldLoader plugin), [`Modules/UI/PropertiesModule.lua`](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/UI/PropertiesModule.lua) (Properties tab), [`Modules/Elevation.lua`](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/Elevation.lua) (Terrain output)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["Plugin and UI"]
  node_plugin["WorldLoader plugin<br/>[Main.lua]"]
  node_properties["Properties tab"]
  node_ui["Plugin UI<br/>[UIManager.lua]"]
end

subgraph group_generation["World Generation"]
  node_world["World generation<br/>[GenerateWorld.lua]"]
  node_terrain["Terrain output<br/>[Elevation.lua]"]
  node_buildings["Building output<br/>[CreatePart.lua]"]
  node_roads["Road output<br/>[WayOperations.lua]"]
  node_railways["Railway output<br/>[WayOperations.lua]"]
end

subgraph group_customization["Customization"]
  node_editable["Editable modules<br/>[WayProperties.lua]"]
end

node_user(("Roblox Studio user"))
node_osm["OpenStreetMap"]
node_elevation["Elevation data"]

node_user -->|"uses"| node_plugin
node_user -->|"configures"| node_properties
node_properties -->|"customizes"| node_editable
node_plugin -->|"uses data"| node_osm
node_plugin -->|"uses data"| node_elevation
node_plugin -->|"generates"| node_world
node_world -->|"generates"| node_terrain
node_world -->|"generates"| node_buildings
node_world -->|"generates"| node_roads
node_world -->|"generates"| node_railways

click node_plugin "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Main.lua"
click node_properties "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/UI/PropertiesModule.lua"
click node_ui "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/UI/UIManager.lua"
click node_world "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/GenerateWorld.lua"
click node_terrain "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/Elevation.lua"
click node_buildings "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/CreatePart.lua"
click node_roads "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/WayOperations.lua"
click node_railways "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/WayOperations.lua"
click node_editable "https://github.com/klingaac/worldloader-roblox-plugin/blob/main/EditableModules/WayProperties.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_plugin,node_properties,node_ui,node_user toneBlue
class node_world,node_terrain,node_buildings,node_roads,node_railways toneAmber
class node_editable toneMint
class node_osm,node_elevation toneIndigo
```

## Components

### Plugin and UI

- [WorldLoader plugin](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Main.lua): `Main.lua`
- [Properties tab](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/UI/PropertiesModule.lua): `Modules/UI/PropertiesModule.lua`
- [Plugin UI](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/UI/UIManager.lua): `Modules/UI/UIManager.lua`

### World Generation

- [World generation](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/GenerateWorld.lua): `Modules/GenerateWorld.lua`
- [Terrain output](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/Elevation.lua): `Modules/Elevation.lua`
- [Building output](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/CreatePart.lua): `Modules/CreatePart.lua`
- [Road output](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/WayOperations.lua): `Modules/WayOperations.lua`
- [Railway output](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/Modules/WayOperations.lua): `Modules/WayOperations.lua`

### Customization

- [Editable modules](https://github.com/klingaac/worldloader-roblox-plugin/blob/main/EditableModules/WayProperties.lua): `EditableModules/WayProperties.lua`

### Other components

- **Roblox Studio user**
- **OpenStreetMap**
- **Elevation data**

## Connections

- Roblox Studio user → WorldLoader plugin: uses (evidence: `README.md`)
- Roblox Studio user → Properties tab: configures (evidence: `README.md`)
- Properties tab → Editable modules: customizes (evidence: `README.md`)
- WorldLoader plugin → OpenStreetMap: uses data (evidence: `README.md`)
- WorldLoader plugin → Elevation data: uses data (evidence: `README.md`)
- WorldLoader plugin → World generation: generates (evidence: `README.md`)
- World generation → Terrain output: generates (evidence: `README.md`)
- World generation → Building output: generates (evidence: `README.md`)
- World generation → Road output: generates (evidence: `README.md`)
- World generation → Railway output: generates (evidence: `README.md`)
