# chaolunner/ue4framework architecture

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

- Interactive diagram: https://gitdiagram.com/chaolunner/ue4framework
- Repository: https://github.com/chaolunner/ue4framework

## Overview

This repository is an Unreal Engine project combining a Blueprint-based third-person jewel game with reusable C++ framework utilities and a JSON/HTTP plugin. The apparent player-facing stages are menu, gameplay, and success/failure feedback, but the README only points to external documentation and the Blueprint assets are binary; their wiring and detailed gameplay flow cannot be verified here. The graph therefore shows those product areas without invented call edges, and limits confirmed relationships to the sampled C++ code.

Main entry points: [`Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp`](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp) (Event Blueprint library), [`Source/UE4Framework/Core/GameInstanceAssembler.cpp`](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/GameInstanceAssembler.cpp) (Game instance assembler), [`Source/UE4Framework/Core/EventSystem.cpp`](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/EventSystem.cpp) (Event system), [`Source/UE4Framework/UIs/GridLayoutGroup.cpp`](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/UIs/GridLayoutGroup.cpp) (Grid layout group)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Game content"]
  node_player["Player character"]
  node_player_state["Player state"]
  node_menu_mode["Menu mode"]
  node_game_mode["Game mode"]
  node_menu_ui["Menu UI<br/>[BP_MainMenu.uasset]"]
  node_quickstart_ui["Quick start UI"]
  node_status_ui["Player status UI"]
  node_jewel_ui["Jewel display<br/>[BP_Jewel2D.uasset]"]
  node_jewel["Jewel prop<br/>[BP_Jewel.uasset]"]
  node_drop_protection["Drop protection"]
  node_game_events["Game outcome events"]
  node_get_props["Prop pickup event"]
  node_save_game["Save game data"]
  node_audio_system["Audio system"]
  node_game_audio["Game audio events"]
end

subgraph group_framework["Framework runtime"]
  node_assembler["Game instance assembler"]
  node_event_system["Event system<br/>[EventSystem.cpp]"]
  node_event_library["Event Blueprint library"]
  node_instance_library["Instance Blueprint library"]
  node_math_library["Math Blueprint library"]
  node_grid_layout["Grid layout group"]
end

subgraph group_json["JSON plugin"]
  node_json_data["JSON field data<br/>[jsonfielddata.cpp]"]
  node_json_module["JSON plugin module"]
end

node_http_service(("HTTP service"))
node_size_box["Size box widget"]

node_assembler -->|"creates"| node_event_system
node_event_library -->|"gets instance"| node_assembler
node_event_library -->|"gets event"| node_event_system
node_grid_layout -->|"sets cell size"| node_size_box
node_json_data -->|"sends requests"| node_http_service

click node_player "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Characters/BP_ThirdPersonCharacter.uasset"
click node_player_state "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Characters/BP_PlayerState.uasset"
click node_menu_mode "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/GameModes/BP_MainMenuMode.uasset"
click node_game_mode "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/GameModes/BP_ThirdPersonGameMode.uasset"
click node_menu_ui "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_MainMenu.uasset"
click node_quickstart_ui "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_QuickStart.uasset"
click node_status_ui "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_PlayerStatus.uasset"
click node_jewel_ui "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_Jewel2D.uasset"
click node_jewel "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Props/BP_Jewel.uasset"
click node_drop_protection "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Props/BP_DropProtection.uasset"
click node_game_events "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_GameSuccessEvent.uasset"
click node_get_props "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_GetPropsEvent.uasset"
click node_save_game "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Datas/BP_SaveGameBase.uasset"
click node_audio_system "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Audios/BP_AudioSystem.uasset"
click node_game_audio "https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_PlaySoundEvent.uasset"
click node_assembler "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/GameInstanceAssembler.cpp"
click node_event_system "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/EventSystem.cpp"
click node_event_library "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp"
click node_instance_library "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/GameInstanceFunctionLibrary.cpp"
click node_math_library "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/MathFunctionLibrary.cpp"
click node_grid_layout "https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/UIs/GridLayoutGroup.cpp"
click node_json_data "https://github.com/chaolunner/ue4framework/blob/master/Plugins/JSONQuery/Source/JSONQuery/Private/jsonfielddata.cpp"
click node_json_module "https://github.com/chaolunner/ue4framework/blob/master/Plugins/JSONQuery/Source/JSONQuery/Private/JSONQueryModule.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_player,node_player_state,node_menu_mode,node_game_mode,node_menu_ui,node_quickstart_ui,node_status_ui,node_jewel_ui,node_jewel,node_drop_protection,node_game_events,node_get_props,node_save_game,node_audio_system,node_game_audio toneBlue
class node_assembler,node_event_system,node_event_library,node_instance_library,node_math_library,node_grid_layout toneAmber
class node_json_data,node_json_module toneMint
class node_http_service,node_size_box toneIndigo
```

## Components

### Game content

- [Player character](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Characters/BP_ThirdPersonCharacter.uasset): `Content/Blueprints/Characters/BP_ThirdPersonCharacter.uasset`
- [Player state](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Characters/BP_PlayerState.uasset): `Content/Blueprints/Characters/BP_PlayerState.uasset`
- [Menu mode](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/GameModes/BP_MainMenuMode.uasset): `Content/Blueprints/GameModes/BP_MainMenuMode.uasset`
- [Game mode](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/GameModes/BP_ThirdPersonGameMode.uasset): `Content/Blueprints/GameModes/BP_ThirdPersonGameMode.uasset`
- [Menu UI](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_MainMenu.uasset): `Content/Blueprints/UIs/BP_MainMenu.uasset`
- [Quick start UI](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_QuickStart.uasset): `Content/Blueprints/UIs/BP_QuickStart.uasset`
- [Player status UI](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_PlayerStatus.uasset): `Content/Blueprints/UIs/BP_PlayerStatus.uasset`
- [Jewel display](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/UIs/BP_Jewel2D.uasset): `Content/Blueprints/UIs/BP_Jewel2D.uasset`
- [Jewel prop](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Props/BP_Jewel.uasset): `Content/Blueprints/Props/BP_Jewel.uasset`
- [Drop protection](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Props/BP_DropProtection.uasset): `Content/Blueprints/Props/BP_DropProtection.uasset`
- [Game outcome events](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_GameSuccessEvent.uasset): `Content/Blueprints/Events/BP_GameSuccessEvent.uasset`
- [Prop pickup event](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_GetPropsEvent.uasset): `Content/Blueprints/Events/BP_GetPropsEvent.uasset`
- [Save game data](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Datas/BP_SaveGameBase.uasset): `Content/Blueprints/Datas/BP_SaveGameBase.uasset`
- [Audio system](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Audios/BP_AudioSystem.uasset): `Content/Blueprints/Audios/BP_AudioSystem.uasset`
- [Game audio events](https://github.com/chaolunner/ue4framework/blob/master/Content/Blueprints/Events/BP_PlaySoundEvent.uasset): `Content/Blueprints/Events/BP_PlaySoundEvent.uasset`

### Framework runtime

- [Game instance assembler](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/GameInstanceAssembler.cpp): `Source/UE4Framework/Core/GameInstanceAssembler.cpp`
- [Event system](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Core/EventSystem.cpp): `Source/UE4Framework/Core/EventSystem.cpp`
- [Event Blueprint library](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp): `Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp`
- [Instance Blueprint library](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/GameInstanceFunctionLibrary.cpp): `Source/UE4Framework/Libraries/GameInstanceFunctionLibrary.cpp`
- [Math Blueprint library](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/Libraries/MathFunctionLibrary.cpp): `Source/UE4Framework/Libraries/MathFunctionLibrary.cpp`
- [Grid layout group](https://github.com/chaolunner/ue4framework/blob/master/Source/UE4Framework/UIs/GridLayoutGroup.cpp): `Source/UE4Framework/UIs/GridLayoutGroup.cpp`

### JSON plugin

- [JSON field data](https://github.com/chaolunner/ue4framework/blob/master/Plugins/JSONQuery/Source/JSONQuery/Private/jsonfielddata.cpp): `Plugins/JSONQuery/Source/JSONQuery/Private/jsonfielddata.cpp`
- [JSON plugin module](https://github.com/chaolunner/ue4framework/blob/master/Plugins/JSONQuery/Source/JSONQuery/Private/JSONQueryModule.cpp): `Plugins/JSONQuery/Source/JSONQuery/Private/JSONQueryModule.cpp`

### Other components

- **HTTP service**
- **Size box widget**

## Connections

- Game instance assembler → Event system: creates (evidence: `Source/UE4Framework/Core/GameInstanceAssembler.cpp`)
- Event Blueprint library → Game instance assembler: gets instance (evidence: `Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp`)
- Event Blueprint library → Event system: gets event (evidence: `Source/UE4Framework/Libraries/EventSystemFunctionLibrary.cpp`)
- Grid layout group → Size box widget: sets cell size (evidence: `Source/UE4Framework/UIs/GridLayoutGroup.cpp`)
- JSON field data → HTTP service: sends requests (evidence: `Plugins/JSONQuery/Source/JSONQuery/Private/jsonfielddata.cpp`)
