# anotherchocopie/lstmaidengine architecture

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

- Interactive diagram: https://gitdiagram.com/anotherchocopie/lstmaidengine
- Repository: https://github.com/anotherchocopie/lstmaidengine

## Overview

This is a Vulkan-based game-engine project with an editor. The principal workflow is to edit a scene and its assets, then run the scene through engine frame control and render it through the runtime backend. The graph also preserves editor history, picking, resource browsing, scene persistence, and the Vulkan rendering layers. Some subsystem implementations were not sampled; their nodes reflect the file tree, and uncertain connections are omitted.

Main entry points: [`src/Engine/Scene/scene_system.cpp`](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/scene_system.cpp) (Scene Management), [`src/Editor/Core/editor_frame_controller.cpp`](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_frame_controller.cpp) (Editor Frames), [`src/Backends/Vulkan/Render/render_context.cpp`](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/render_context.cpp) (Render Context), [`src/Backends/Vulkan/runtime_backend.cpp`](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/runtime_backend.cpp) (Runtime Backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor"]
  node_app["Editor App<br/>[editor.cpp]"]
  node_editor_frames["Editor Frames"]
  node_editor_ui["Editor UI"]
  node_editor_actions["Editor Actions"]
  node_panels["Scene Panels"]
  node_browser["Resource Browser"]
  node_import["Asset Import<br/>[editor_import.cpp]"]
  node_history["Edit History<br/>[editor_history.cpp]"]
  node_picking["Object Picking<br/>[editor_picking.cpp]"]
end

subgraph group_scene["Scene and Assets"]
  node_scene_system["Scene Management<br/>[scene_system.cpp]"]
  node_objects["Game Objects<br/>[game_object.cpp]"]
  node_persistence["Scene Persistence"]
  node_model_io["Model Loading<br/>[model_io.cpp]"]
end

subgraph group_runtime["Engine Runtime"]
  node_game_frames["Game Frames"]
  node_movement["Character Movement"]
  node_window["Window and Input<br/>[window.cpp]"]
  node_runtime_backend["Runtime Backend"]
end

subgraph group_vulkan["Vulkan Rendering"]
  node_vulkan_device["Vulkan Device<br/>[device.cpp]"]
  node_renderer["Frame Renderer<br/>[renderer.cpp]"]
  node_render_context["Render Context<br/>[render_context.cpp]"]
  node_render_systems["Render Systems"]
  node_vulkan_editor["Editor Rendering"]
end

node_user(("Editor User"))

node_user -->|"uses"| node_app
node_app -.->|"updates"| node_editor_frames
node_editor_frames -->|"updates"| node_scene_system
node_editor_frames -->|"calls update"| node_editor_ui
node_editor_frames -->|"moves camera"| node_movement
node_editor_actions -.->|"edits"| node_scene_system
node_panels -.->|"edits"| node_scene_system
node_browser -.->|"imports assets"| node_import
node_scene_system -->|"manages"| node_objects
node_scene_system -.->|"delegates"| node_persistence
node_scene_system -.->|"loads models"| node_model_io
node_scene_system -->|"snapshots"| node_history
node_editor_ui -.->|"selects objects"| node_picking
node_game_frames -->|"updates"| node_scene_system
node_game_frames -->|"moves character"| node_movement
node_runtime_backend -->|"uses"| node_scene_system
node_runtime_backend -->|"uses"| node_window
node_runtime_backend -.->|"renders through"| node_render_context
node_vulkan_device -->|"creates surface"| node_window
node_renderer -->|"uses"| node_vulkan_device
node_render_context -->|"uses"| node_renderer
node_render_context -->|"dispatches"| node_render_systems
node_vulkan_editor -.->|"uses"| node_render_context

click node_app "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor.cpp"
click node_editor_frames "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_frame_controller.cpp"
click node_editor_ui "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_system_ui.cpp"
click node_editor_actions "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_system_actions.cpp"
click node_panels "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/UI/hierarchy_panel.cpp"
click node_browser "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Workflow/resource_browser_panel.cpp"
click node_import "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Workflow/editor_import.cpp"
click node_history "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/History/editor_history.cpp"
click node_picking "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Tools/editor_picking.cpp"
click node_scene_system "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/scene_system.cpp"
click node_objects "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/game_object.cpp"
click node_persistence "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/scene_persistence.cpp"
click node_model_io "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/IO/model_io.cpp"
click node_game_frames "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Core/game_frame_controller.cpp"
click node_movement "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Gameplay/keyboard_movement_controller.cpp"
click node_window "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Platform/window.cpp"
click node_runtime_backend "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/runtime_backend.cpp"
click node_vulkan_device "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Core/device.cpp"
click node_renderer "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/renderer.cpp"
click node_render_context "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/render_context.cpp"
click node_render_systems "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/simple_render_system.cpp"
click node_vulkan_editor "https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Editor/editor_render_backend.cpp"

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_app,node_editor_frames,node_editor_ui,node_editor_actions,node_panels,node_browser,node_import,node_history,node_picking,node_user toneBlue
class node_scene_system,node_objects,node_persistence,node_model_io toneAmber
class node_game_frames,node_movement,node_window,node_runtime_backend toneMint
class node_vulkan_device,node_renderer,node_render_context,node_render_systems,node_vulkan_editor toneRose
```

## Components

### Editor

- [Editor App](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor.cpp): `src/Editor/Core/editor.cpp`
- [Editor Frames](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_frame_controller.cpp): `src/Editor/Core/editor_frame_controller.cpp`
- [Editor UI](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_system_ui.cpp): `src/Editor/Core/editor_system_ui.cpp`
- [Editor Actions](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Core/editor_system_actions.cpp): `src/Editor/Core/editor_system_actions.cpp`
- [Scene Panels](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/UI/hierarchy_panel.cpp): `src/Editor/UI/hierarchy_panel.cpp`
- [Resource Browser](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Workflow/resource_browser_panel.cpp): `src/Editor/Workflow/resource_browser_panel.cpp`
- [Asset Import](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Workflow/editor_import.cpp): `src/Editor/Workflow/editor_import.cpp`
- [Edit History](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/History/editor_history.cpp): `src/Editor/History/editor_history.cpp`
- [Object Picking](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Editor/Tools/editor_picking.cpp): `src/Editor/Tools/editor_picking.cpp`

### Scene and Assets

- [Scene Management](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/scene_system.cpp): `src/Engine/Scene/scene_system.cpp`
- [Game Objects](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/game_object.cpp): `src/Engine/Scene/game_object.cpp`
- [Scene Persistence](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Scene/scene_persistence.cpp): `src/Engine/Scene/scene_persistence.cpp`
- [Model Loading](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/IO/model_io.cpp): `src/Engine/IO/model_io.cpp`

### Engine Runtime

- [Game Frames](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Core/game_frame_controller.cpp): `src/Engine/Core/game_frame_controller.cpp`
- [Character Movement](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Gameplay/keyboard_movement_controller.cpp): `src/Engine/Gameplay/keyboard_movement_controller.cpp`
- [Window and Input](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Engine/Platform/window.cpp): `src/Engine/Platform/window.cpp`
- [Runtime Backend](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/runtime_backend.cpp): `src/Backends/Vulkan/runtime_backend.cpp`

### Vulkan Rendering

- [Vulkan Device](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Core/device.cpp): `src/Backends/Vulkan/Core/device.cpp`
- [Frame Renderer](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/renderer.cpp): `src/Backends/Vulkan/Render/renderer.cpp`
- [Render Context](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/render_context.cpp): `src/Backends/Vulkan/Render/render_context.cpp`
- [Render Systems](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Render/simple_render_system.cpp): `src/Backends/Vulkan/Render/simple_render_system.cpp`
- [Editor Rendering](https://github.com/anotherchocopie/lstmaidengine/blob/main/src/Backends/Vulkan/Editor/editor_render_backend.cpp): `src/Backends/Vulkan/Editor/editor_render_backend.cpp`

### Other components

- **Editor User**

## Connections

- Editor User → Editor App: uses
- Editor App → Editor Frames: updates
- Editor Frames → Scene Management: updates (evidence: `src/Editor/Core/editor_frame_controller.cpp`)
- Editor Frames → Editor UI: calls update (evidence: `src/Editor/Core/editor_frame_controller.cpp`)
- Editor Frames → Character Movement: moves camera (evidence: `src/Editor/Core/editor_frame_controller.cpp`)
- Editor Actions → Scene Management: edits
- Scene Panels → Scene Management: edits
- Resource Browser → Asset Import: imports assets
- Scene Management → Game Objects: manages
- Scene Management → Scene Persistence: delegates
- Scene Management → Model Loading: loads models
- Scene Management → Edit History: snapshots
- Editor UI → Object Picking: selects objects
- Game Frames → Scene Management: updates (evidence: `src/Engine/Core/game_frame_controller.cpp`)
- Game Frames → Character Movement: moves character
- Runtime Backend → Scene Management: uses
- Runtime Backend → Window and Input: uses
- Runtime Backend → Render Context: renders through
- Vulkan Device → Window and Input: creates surface
- Frame Renderer → Vulkan Device: uses
- Render Context → Frame Renderer: uses
- Render Context → Render Systems: dispatches
- Editor Rendering → Render Context: uses
